xml-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Symons" <gsym...@researchfed.com>
Subject RE: Service Response is ok but desirialize error
Date Thu, 13 Jun 2002 14:56:06 GMT
You're mapping is slightly off... you should be mapping PingResult, not
PingResponse. I'm also not entirely sure that the StringDeserializer
will work in this case, either. Your best bet may be to use the
XMLDeserializer instead.

 __________________________________
|                                  \
|  Greg Symons                     /
|  Systems Analyst                 \
|  Research Federal Credit Union   /
|  (586) 264-8710 x1234            \
|__________________________________/ 

> -----Original Message-----
> From: Tom Leuntjens [mailto:Tom.Leuntjens@korfina.be] 
> Sent: Thursday, June 13, 2002 9:44 AM
> To: soap-user@xml.apache.org
> Subject: Service Response is ok but desirialize error
> 
> 
> 
> Hi All,
> I've got a new problem ...
> 
> I keep getting this error when  invoking the call 
> 
> Caught SOAPException (SOAP-ENV:Client): No Deserializer found 
> to deserialize a &apos;http://xxx/core23:PingResult&apos; 
> using encoding style &apos;null&apos;.
> 
> But when I intercept the call using tcpviewer I get a 
> response from the service that is OK ... (a .NET service response) ...
> 
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope 
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><Version
> Identification="DATASWITCH" Major="2" Minor="3" Build="863" 
> Revision="14832" xmlns="http://xxx/core23" 
> /></soap:Header><soap:Body><PingResponse
> xmlns="http://xxx/core23"><PingResult
> Code="OK"><Message>Pong.</Message></PingResult></PingResponse>
> </soap:Bod
> y></soap:Envelope>
> 
> 
> This is my code for the time being
> 
> 
> // build the call.
> Call call = new Call ();
> call.setSOAPTransport(st);
> call.setSOAPMappingRegistry (smr);
> call.setTargetObjectURI ("http://schemas.dataswitch.be/core23");
> call.setMethodName("Ping");
> call.setEncodingStyleURI ("Constants.NS_URI_SOAP_ENC"); 
> call.setHeader(header);
> 
> 
> SOAPMappingRegistry smr = new SOAPMappingRegistry(); 
> StringDeserializer sd = new StringDeserializer (); 
> //smr.mapTypes (Constants.NS_URI_SOAP_ENC, new 
> QName("http://schemas.dataswitch.be/core23/Ping", 
> "PingResponse"), null, null , sd); //smr.mapTypes 
> ("http://schemas.dataswitch.be/core23/Ping", > new QName(), 
> null, null, sd);
> 
> 
> I've been trying different things but still I get the same .. 
> How do I retrieve the response .. either in XML format , I'll 
> parse it .. myself if I have too ..
> 
> The values important to me are in the <soap:Body> (duh) ;.
> 
> Thanx in advance,
> I hope someone can share lite on the matter ...
> 
> 
> 
> 
> 
> 
> 

Mime
View raw message