????1. gSOAP??????????????????????????????c/c++?????SOAP?????????????????????????xml??SOAPЭ??????
????wsdl2h.exe: ????wsdl???????c/c++????
????-o ?????????????????
????-n ??????? ????????ns
????-c ??????C??????????C++????
????-s ??????STL????
????-t ??????????type map?????????typemap.dat
????-e ????enum??????????????
????soapcpp2.exe: gSOAP?????????????????????????????????????c/c++???????????STL?????stlvector.h??
????-C ?????????????
????-S ????????????????
????-L ???????soapClientLib.c??soapServerLib.c???
????-c ??????C??????????C++????(???????й?)
????-I ???import·???????????
????-x ???????XML??????
????-i ????C++???????????xxxxProxy.h(.cpp)???????????xxxxService.h(.cpp)
????2. ??????????????????
????wsdl2h -o xx.h http://192.168.40.8:88/GMM?wsdl
???????? wsdl2h -o xx.h http://js.gps163.com:8994/Server/CsService.svc?wsdl
????soapcpp2 -C -L -x -i xx.h ??soapcpp2 xx.h -C -I D:gsoap-2.7gsoapimport??
????3. ???????????????????????
????soapStub.h??soapH.h??stdsoap2.h
????soapC.cpp??soapClient.cpp??stdsoap2.cpp
????soapBasicHttpBinding_USCOREIGMMProxy.cpp
????soapBasicHttpBinding_USCOREIGMMProxy.cpp
????BasicHttpBinding_USCOREIGMM.nsmap
????wsock32.lib
????4. ????
#include "soapBasicHttpBinding_USCOREIGMMProxy.h"
#include "BasicHttpBinding_USCOREIGMM.nsmap"
//?????????ò?????????
//struct soap xxSoap;
//soap_init(&xxSoap);
//?????????
xxWebServiceSoap xxProxy;
//????????
//SOAP_ENV__Header envHeader;
//xxProxy.soap->header = &envHeader;
//web???????
_ns1__xx xx;
//web??????????
_ns1__xxResponse xxResponse;
//????WebService????