mtom_xop
所属分类:Linux/Unix编程
开发工具:C/C++
文件大小:512KB
下载次数:20
上传日期:2014-11-19 16:43:29
上 传 者:kevin
说明: 通过gsoap实现高效MTOM协议的数据传输,适合linux操作系统(包括嵌入式linux)下通过MTOM协议实现XML数据包及二进制数据同时传输的应用场景,比普通soap+base64方式发送数据更加高效。
调试mtom经验:
这次调试的一点经验供参考:
1)可以根据附件的yoyo.h文件生成代码,参考以下命令:
soapcpp2 -L -C -I/home/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/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,374,2013-12-31
........\mtom_client,440776,2013-12-31
........\mtom_client.cpp,5038,2013-12-31
........\mtom_client.o,11456,2013-12-31
........\soapC.cpp,122150,2013-12-31
........\soapC.o,126888,2013-12-31
........\soapClient.cpp,9289,2013-12-31
........\soapClient.o,12112,2013-12-31
........\soapH.h,59448,2013-12-31
........\soapStub.h,13077,2013-12-31
........\stdsoap2.c,501183,2013-12-31
........\stdsoap2.cpp,501183,2013-12-31
........\stdsoap2.h,96770,2013-12-31
........\stdsoap2.o,528256,2013-12-31
........\yoyo.h,33188,2013-12-31
........\YoyoWebServiceSOAP11Binding.nsmap,670,2013-12-31
........\YoyoWebServiceSOAP11Binding.yoyoInDeviceStatus.req.xml,560,2013-12-31
........\YoyoWebServiceSOAP11Binding.yoyoInDeviceStatus.res.xml,570,2013-12-31
........\YoyoWebServiceSOAP11Binding.yoyoInPassCarInfo.req.xml,752,2013-12-31
........\YoyoWebServiceSOAP11Binding.yoyoInPassCarInfo.res.xml,568,2013-12-31
近期下载者:
相关文件:
收藏者: