Your best-bet for an example is the addressbook sample.  The last method,
getEntireList(?) does exactly what you want.  Just remember that you need to
specify "literalxml" encoding type:

http://xml.apache.org/xml-soap/literalxml

for the response in your SOAP requestor envelope.

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Code Made Fresh DailyT
----- Original Message -----
From: "William Brogden" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 08, 2002 3:22 PM
Subject: RE: Send XML file via SOAP


>
> > -----Original Message-----
> > From: Maris Orbidans [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 08, 2002 1:33 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Send XML file via SOAP
> >
> >
> >
> > It is more specific  :-)
> >
> > My question is - how to send my own XML files.
> >
> > I know how to do RPCs with simple datatypes like this:
> >
> >             Parameter ret = resp.getReturnValue();
> >             Object val = ret.getValue();
> >
> >             int res = ((Integer) val).intValue();
> >
> > But what to do if I want to get XML files:
> >
> >             Parameter ret = resp.getReturnValue();
> >             Object val = ret.getValue();
> >
> >             XMLFILE res = (XMLFILE) val;
> >
> >             What should I write instead of XMLFILE ?   Or
> > should I use different API ?
> >
> >
> > Maris Orbidans
>
>  You can't serialize a DOM Document but you can serialize the
> root Element. Look at the XMLParameterSerializer in the
> org.apache.soap.encoding.literalXML package.
>
> [EMAIL PROTECTED]
> Author of Soap Programming with Java - Sybex; ISBN: 0782129285
>
>

Reply via email to