axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Dick <adrian.d...@uk.ibm.com>
Subject Re: Known exception
Date Mon, 10 Apr 2006 07:55:21 GMT
Hi,

You don't mention which version of Axis C++, but I shall assume the 1.6Beta
for the moment.

There is an error in the Calculator sample, on line 45 of Client.cpp the
endpoint is incorrectly capitalized, Calculator should start with an upper
case 'C'.  This is why the server is returning an exception, as it is
unable to find the corresponding service.
As for getting the message: "Exception: Cannot deserialize the requested
element." this is as a result of a problem in the stubs generated by
WSDL2Ws for rpc/encoded WSDLs, I believe this may now be fixed in the
nightly builds.

Regards,
Adrian
_______________________________________
Adrian Dick (adrian.dick@uk.ibm.com)


Atanacio Reyes <areyesv@yahoo.com> wrote on 08/04/2006 19:04:43:

> Hi.
>
> I'm trying to deploy the calculator example, and on
> client side, I have the next error.
>
> Exception: Cannot deserialize the requested element.
>
> the request soap message is:
>
> POST /axis/calculator HTTP/1.1
> Host: localhost:80
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: "Calculator#add"
> Content-Length: 405
>
>
> <?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:add
> xmlns:ns1="http://localhost/axis/Calculator">
>                         <in0
> xsi:type="xsd:int">20</in0>
>                         <in1
> xsi:type="xsd:int">20</in1>
>                 </ns1:add>
>         </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> And the response from simple_axis_server is:
>
> HTTP/1.1 200 OK
> Server: Apache Axis C++/1.6.a
> Connection: close
> Content-Length: 345
> Content-Type: text/xml
>
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope>
> <SOAP-ENV:Body>
> <SOAP-ENV:Fault>
> <faultcode>SOAP-ENV:Server</faultcode>
> <faultstring>Unknown exception</faultstring>
> <faultactor>areyes:80</faultactor>
> <detail><appSpecific>Unknown Exception has
> occurred</appSpecific>
> </detail>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com


Mime
View raw message