Do you really want he ouput as XML? I haven't done anything with literal
XML, but can you desrialize that to a String or should it be some kind of
XML dom element? The message looks to me like you should just be able to
register it as a soap encoding to a java string using the
StringDeserializer.
Rick Hansen
-----Original Message-----
From: St�phane Trottier [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 1:53 PM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: 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 .