views:

53

answers:

0

Trying to implement with gsoap multiple webservices listening to same port. I read through Gsoap user guide http://www.cs.fsu.edu/~engelen/soapdoc2.html section 7.2.8 Where they provide a sample (below) that doesn't actualy work as 1. the soap object is changed after abc.serve so uvw cannot find the method 2. AND when the soap servce doesn't find the method, it faults closing the connection

Has anyone worked a work around?

soapABCService abc; soapUVWService uvw; abc.bind(NULL, 8080, 100); abc.accept(); if (abc.serve() == SOAP_NO_METHOD) { soap_copy_stream(&uvw, &abc); if (uvw.dispatch() == SOAP_NO_METHOD)