文件名称:mtom_xop
- 所属分类:
- Internet/网络编程
- 资源属性:
- [MacOS] [C/C++] [源码]
- 上传时间:
- 2014-11-19
- 文件大小:
- 512kb
- 下载次数:
- 0次
- 提 供 者:
- ke***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
通过gsoap实现高效MTOM协议的数据传输,适合linux操作系统(包括嵌入式linux)下通过MTOM协议实现XML数据包及二进制数据同时传输的应用场景,比普通soap+base64方式发送数据更加高效。
调试mtom经验:
这次调试的一点经验供参考:
1)可以根据附件的yoyo.h文件生成代码,参考以下命令:
soapcpp2 -L -C -I/home/dongruijie/workspace/gsoap-2.8/gsoap/import yoyo.h
2)最好显式设置一下命名空间,客户端代码:
struct soap *soap = soap_new1(SOAP_ENC_MTOM)
soap_set_namespaces(soap, namespaces) //namespaces定义在.nsmap中,直接调用即可
运行Demo例子时:
1)修改mtom_client.cpp中的服务端URL
2)编译
make cl
make
3)运行
./mtom_client-By gsoap MTOM efficient data transmission protocol for linux operating systems (including embedded linux) By implementing XML and binary data packets transmitted simultaneously through MTOM protocol scenarios than ordinary soap+ base64 way to send data more efficiently.
Commissioning mtom Experience:
The commissioning of a little experience for reference:
1) You can generate code based on attachment yoyo.h file, refer to the following command:
soapcpp2-L-C-I/home/dongruijie/workspace/gsoap-2.8/gsoap/import yoyo.h
2) The best look explicitly set the namespace, the client code:
struct soap* soap = soap_new1 (SOAP_ENC_MTOM)
soap_set_namespaces (soap, namespaces) // namespaces defined in .nsmap, a direct call to
When running Demo examples:
1) Modify the server URL mtom_client.cpp
2) compilation
make cl
make
3)
调试mtom经验:
这次调试的一点经验供参考:
1)可以根据附件的yoyo.h文件生成代码,参考以下命令:
soapcpp2 -L -C -I/home/dongruijie/workspace/gsoap-2.8/gsoap/import yoyo.h
2)最好显式设置一下命名空间,客户端代码:
struct soap *soap = soap_new1(SOAP_ENC_MTOM)
soap_set_namespaces(soap, namespaces) //namespaces定义在.nsmap中,直接调用即可
运行Demo例子时:
1)修改mtom_client.cpp中的服务端URL
2)编译
make cl
make
3)运行
./mtom_client-By gsoap MTOM efficient data transmission protocol for linux operating systems (including embedded linux) By implementing XML and binary data packets transmitted simultaneously through MTOM protocol scenarios than ordinary soap+ base64 way to send data more efficiently.
Commissioning mtom Experience:
The commissioning of a little experience for reference:
1) You can generate code based on attachment yoyo.h file, refer to the following command:
soapcpp2-L-C-I/home/dongruijie/workspace/gsoap-2.8/gsoap/import yoyo.h
2) The best look explicitly set the namespace, the client code:
struct soap* soap = soap_new1 (SOAP_ENC_MTOM)
soap_set_namespaces (soap, namespaces) // namespaces defined in .nsmap, a direct call to
When running Demo examples:
1) Modify the server URL mtom_client.cpp
2) compilation
make cl
make
3)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
mtom_xop
........\Makefile
........\YoyoWebServiceSOAP11Binding.nsmap
........\YoyoWebServiceSOAP11Binding.yoyoInDeviceStatus.req.xml
........\YoyoWebServiceSOAP11Binding.yoyoInDeviceStatus.res.xml
........\YoyoWebServiceSOAP11Binding.yoyoInPassCarInfo.req.xml
........\YoyoWebServiceSOAP11Binding.yoyoInPassCarInfo.res.xml
........\mtom_client
........\mtom_client.cpp
........\mtom_client.o
........\soapC.cpp
........\soapC.o
........\soapClient.cpp
........\soapClient.o
........\soapH.h
........\soapStub.h
........\stdsoap2.c
........\stdsoap2.cpp
........\stdsoap2.h
........\stdsoap2.o
........\yoyo.h