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 Guang Yang <su...@mail.com> on 2001/01/29 16:15:15 UTC

Return XML for a SOAP function.

I am using MS tookit on server side to return a XML document as a string. It
did return the XML. I verified by using TcpTunnelGui. However, the client
side Apache Soap returns nothing.

I am wondering if the XML document confuse the deserilizer or what should I
do at client side.

Thanks in advance.
Sunny.


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

RE: Return XML for a SOAP function.

Posted by Gus Delgado <gu...@netquotient.com>.
once the string is in your client
do this:
char[] payload = yourString.toCharArray();
XMLParserLiaison xpl = new XercesParserLiaison ();
Document callDoc =
xpl.read("- SOAP HTTP RPC XML -", new CharArrayReader(payload));
Element rootEl = callDoc.getDocumentElement ();

that you convert your string to something useful.

-----Original Message-----
From: Guang Yang [mailto:sunlight_yang@mail.com]
Sent: Monday, January 29, 2001 9:15 AM
To: soap-user@xml.apache.org
Subject: Return XML for a SOAP function.


I am using MS tookit on server side to return a XML document as a string. It
did return the XML. I verified by using TcpTunnelGui. However, the client
side Apache Soap returns nothing.

I am wondering if the XML document confuse the deserilizer or what should I
do at client side.

Thanks in advance.
Sunny.


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: Return XML for a SOAP function.

Posted by Gus Delgado <gu...@netquotient.com>.
once the string is in your client
do this:
char[] payload = yourString.toCharArray();
XMLParserLiaison xpl = new XercesParserLiaison ();
Document callDoc =
xpl.read("- SOAP HTTP RPC XML -", new CharArrayReader(payload));
Element rootEl = callDoc.getDocumentElement ();

that you convert your string to something useful.

-----Original Message-----
From: Guang Yang [mailto:sunlight_yang@mail.com]
Sent: Monday, January 29, 2001 9:15 AM
To: soap-user@xml.apache.org
Subject: Return XML for a SOAP function.


I am using MS tookit on server side to return a XML document as a string. It
did return the XML. I verified by using TcpTunnelGui. However, the client
side Apache Soap returns nothing.

I am wondering if the XML document confuse the deserilizer or what should I
do at client side.

Thanks in advance.
Sunny.


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org