zoukankan      html  css  js  c++  java
  • axis2c

    官网:http://axis.apache.org/axis2/c/core/index.html

    设置AXIS2C_HOME路径:
    export AXIS2C_HOME=xxx
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AXIS2C_HOME/lib

    设置wsdl2c.sh路径:

    export AXIS2_HOME=xxx

    export PATH=$PATH:/opt/eucalyptus/packages/axis2c-1.6.0/bin/tools/wsdl2c/

    server端,生成so动态库:

      gcc -olibhello.so -I$AXIS2C_HOME/include/axis2-1.6.0/ -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread -laxis2_http_sender -laxis2_http_receiver hello_svc.c -fPIC -shared

    client端,生成执行文件:

      gcc -o hello -I$AXIS2C_HOME/include/axis2-1.6.0/ -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread -laxis2_http_sender -laxis2_http_receiver hello.c -ldl -Wl,--rpath -Wl,$AXIS2C_HOME/lib

    wsdl文件生成代码

    server端:

      sh WSDL2C.sh -uri Calculator.wsdl -sd -ss -d adb -u -f -o server
    将生成的build.sh修改下:
    gcc -g -fPIC -shared -olibCalculator.so -I $AXIS2C_HOME/include/axis2-1.6.0/ -Isrc -L$AXIS2C_HOME/lib  -laxutil  -laxis2_axiom  -laxis2_engine  -laxis2_parser   -lpthread     -laxis2_http_sender     -laxis2_http_receiver     -lguththila     *.c

    client端:

      sh WSDL2C.sh -uri Calculator.wsdl -g -ss -d adb -u -f -o client
    gcc -o cal_add -I$AXIS2C_HOME/include/axis2-1.6.0/ -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread -laxis2_http_sender -laxis2_http_receiver *.c -ldl -Wl,--rpath -Wl,$AXIS2C_HOME/lib

  • 相关阅读:
    Execution Contexts (执行上下文)
    OOP—ECMAScript实现详解
    requireJS入门
    SqlServer 傲娇的表变量
    CSharp进阶 引用类型引发的血案
    CSharp进阶 都是请求惹的祸
    z-index问题
    js中事件(自定义事件)
    做了个后末日朋克风的梦
    昨晚的梦
  • 原文地址:https://www.cnblogs.com/BloodAndBone/p/1933686.html
Copyright © 2011-2022 走看看