You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Stéphane Trottier <St...@onyx.com> on 2001/06/20 20:52:50 UTC

Java Client Deserializer

Hi,
    I'm trying to use a java client to talk to a Microsoft.NET Web Service.
It seams like the client is getting the proper data back from the web
service but it fails to Deserialize the returned xml. How do I create a
Deserializer for this xml?
 
sample return
---
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/
<http://schemas.xmlsoap.org/soap/envelope/> " xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance> " xmlns:xsd="
http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema> ">
  <soap:Body>
    <HelloWorldResponse xmlns=" http://tempuri.org/ <http://tempuri.org/> ">
      <HelloWorldResult>Hello World</HelloWorldResult>
    </HelloWorldResponse>
  </soap:Body>
</soap:Envelope>
---
 
I've tried adding a deserializer like the following code and it still didn't
work
---
SOAPMappingRegistry smr = call.getSOAPMappingRegistry();
StringDeserializer sd = new StringDeserializer();
smr.mapTypes (Constants.NS_URI_LITERAL_XML, new QName ("",
"HelloWorldResult"), null, null, sd);
---
 
Thanks in advance for your help,
Mr. Stéphane Trottier

Senior Software Development Engineer

Onyx Software

 

www.onyx.com <http://www.onyx.com/> 

 

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

B   u   s   i   n   e   s   s  .       C   u   s   t   o   m   e   r   s  .
V   a   l   u   e  .       N   o   w .