Description: 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)
To Search:
File list (Check if you may need any files):
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