Hi,

I wrote a simple client against an axis (java) server.

the wsdl file is located at http://soap1.bind.ca/bind.wsdl

here is my code:

#include "BINDSOAPPort.hpp"
#include <axis/AxisException.hpp>
#include <iostream>

int main(int argc,char **argv)
{
       try {
               BINDSOAPPort port;
               cout << port.isServiceAlive() << endl;
               cout << port.getSoftwareVersion() << endl;
       } catch(AxisException& e) {
               printf("Exception : %s\n", e.what());
               printf("Exception Code: %d\n", e.getExceptionCode());
       } catch(exception& e) {
               printf("Unknown exception has occured\n");
       } catch(...) {
               printf("Unknown exception has occured\n");
       }

       return 0;
}


here is the results: ./bindsoap 0 Exception : Cannot deserialize the requested element Exception Code: 70



here is the request:
POST /bindsoap/services/BINDSOAP HTTP/1.1
Host: localhost:9010
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:#getSoftwareVersion"
Content-Length: 349

<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<SOAP-ENV:Body>
<ns1:getSoftwareVersion xmlns:ns1="urn:BINDSOAP">
</ns1:getSoftwareVersion>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>




here is the response:
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=6DF554A70E0DC8E2CC54804D52F4DDBC; Path=/bindsoap
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 15 Mar 2005 15:55:59 GMT
Server: Apache-Coyote/1.1

1dd
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Body><ns1:getSoftwareVersionResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="urn:BINDSOAP"><version xsi:type="xsd:string">No Version Assigned</version></ns1:getSoftwareVersionResponse></soapenv:Body></soapenv:Envelope>


0



Any help would be greatly appreciated,
Marc Dumontier






Reply via email to