Re: Passing XML in a RPC Parameter
Peter Thaggard <[email protected]> Tue, 6 Jan 2004 16:59:14 -0500
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <OFACBFC428.298B70A3-ON85256E13.007870EB-85256E13.0078CBD1@freddiemac.com> |
How are you constructing the XML String? We use the Microsoft DOMDocument
object, and then call its .xml method, which
yields a well-formatted String manifestation of the DOMDocument.
"Ryan Champlin"
<ryan.champlin@FIRS To: [email protected]
TLOGIC.COM> cc:
Sent by: Subject: Re: [SOAP] Passing XML in a RPC Parameter
"Discussion of
implementing SOAP
applications today"
<[email protected]
OP.COM>
01/06/2004 02:18 PM
Please respond to
"Discussion of
implementing SOAP
applications today"
That is how we have it defined. However when I pass it as straight XML it
is not being handled correctly by the .Net web serivce.
It seems that in order for it to recognize the XML I need to encode
(Convert
symbols such as "<" to "<" etc..) the entire string.
Then the web service seems to be able to handle the string argument we are
passing. It seems that something on the web service side of things is
expecting to unecode that string parameter and expecting it to be encoded.
I'm trying to find out if that is part of the standard. Should be always
have to encode that entire string to be compliant with the standard?
Thanks,
Ryan
-----Original Message-----
From: Peter Thaggard [mailto:[email protected]]
Sent: Tuesday, January 06, 2004 1:14 PM
To: [email protected]
Subject: Re: [SOAP] Passing XML in a RPC Parameter
Hello,
Yes, we do this all the time; in fact, we convert 40,000-row Excel
spreadsheets into XML,
which is then passed to a Java-based web service.
Just define your Web Service to accept a String argument.
"Ryan Champlin"
<ryan.champlin@FIRS To:
[email protected]
TLOGIC.COM> cc:
Sent by: Subject: [SOAP] Passing
XML in a RPC Parameter
"Discussion of
implementing SOAP
applications today"
<[email protected]
OP.COM>
01/06/2004 01:47 PM
Please respond to
"Discussion of
implementing SOAP
applications today"
Is it possible to pass an XML document in a parameter of an RPC style web
service method that is expecting a string? If so what is the
proper procedure for doing this?
When testing various clients we are finding out that we need to encode the
entire XML string in order for this to work. The web service itself was
developed
using the .Net platform.
Thanks,
Ryan