Hi, I am wondering if gSoap supports running multiple services on the same port. I tried combining 2 wsdls as described in section 18.32 of user guide as follows wsdl2h -s -o abc.h -t typemap.dat xxx.wsdl yyy.wsdl xxx.xsd yyy.xsd
It generates abc.h header file containing methods of both services with different namespace prefixes like n1_add(int a,int b,int& result); // method from service xxx n2_register(int req, int& res); // method from service yyy Now when i run soapcpp2 compiler on this header file to generate server side code as follows soapcpp2 -L -S -a -I /auto/mpbu-eng-unix1/sw/gsoap/2.7/distro/gsoap-2.7/gsoap/import/ -2 abc.h it generated soapxxxObject.h and soapyyyObject.h files for both services and a common soapServer.cpp where it defines serve(),dispatch() methods. now problem is both soapxxxObject.h and soapyyyObject.h are exactly same except the class names and they contains declarations for methods of each services for example both will have declarations of SOAP_FMAC5 int SOAP_FMAC6 __ns1__add(struct soap*, int a, int b ,int& result); SOAP_FMAC5 int SOAP_FMAC6 __ns2__register(struct soap*, int req, int& res); So is it expected behavior or it is an issue with soapcpp2 compiler or there is some problem with our combination of options. Other issue is if i tried to generate c++ specific code with "i" option as follows soapcpp2 -L -i -S -a -I /auto/mpbu-eng-unix1/sw/gsoap/2.7/distro/gsoap-2.7/gsoap/import/ -2 abc.h then it generates separete server file for both services with separate run methods so it looks like we cannot run multiple services on same port if we like to generate c++ specific code. Any response will be greatly appreciated. Thanks Sachin
