Sure it does .. you can send stuff using different encoding styles:
you can use soapenc for 3 params, literal xml for 2 and something
else for n more and return one value in whichever encoding you
want. See the sample GetAllListings in addressbook for how to
control the return encoding style.
Note that Java methods can only return one value. So if you want to
*return* more than one value then you need to use a different
provider than RPCJavaProvider.
Sanjiva.
----- Original Message -----
From: "Anping Wang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 12, 2001 8:35 PM
Subject: Re: Parameter Encoding Problem
> The dom element serializer only works when the soap service only has dom
element
> as variables and return variable. It wont work if you have other types of
> variables in your service.
>
> Eric Grace wrote:
>
> > Let me see if I get this.......I create a class that implements
> > org.w3c.dom.Element........
> >
> > public class XMLData
> > extends org.apache.xerces.dom.ElementImpl
> > implements org.w3c.dom.Element
> > {
> > public XMLData() {}
> > }
> >
> > Then create a parameter using the new Element
> > Parameter parameter = new
> > Parameter("xmldata",XMLData.class,contentHandler.getXMLResponse() ,
> > Constants.NS_URI_LITERAL_XML);
> >
> > ???
> >
> > I'm getting the following error...
> >
> > <faultstring>I only know how to serialize an
> > 'org.w3c.dom.Element'.</faultstring>
> >
> > What am I missing here?
> >
> > -eric
> >
> > "Das, Kuntal" wrote:
> >
> > > U can, create an Element object with that string, like a normal xml
file,
> > > and then pass the Element object as a parameter, with
"NS_URI_LITERAL_XML"
> > > encoding.
> > >
> > > Thanks,
> > > Kuntal Das
> > > Charles Schwab & Co., Inc.
> > > Wireless Technology
> > > 45 Fremont, SF
> > > Email : [EMAIL PROTECTED]
> > > Phone : (415)667-4322
> > > Live life to the brim.................
> > >
> > > -----Original Message-----
> > > From: Eric Grace [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 12, 2001 2:50 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Parameter Encoding Problem
> > >
> > > How do I embed and xml string of the following nature into a Parameter
> > > without the '<' and '>' characters being encoded into < and >
> > > characters???
> > >
> > > I am attempting with the following without luck....
> > >
> > > String xmldata = "<obj> <description><![CDATA[ Obj Description]]>
> > > </description></obj> ";
> > > String respEncStyle = Constants.NS_URI_SOAP_ENC;
> > > Parameter parameter = new Parameter("xmldata",String.class, xmldata,
> > > respEncStyle);
> > >
> > > The result is....
> > >
> > > <obj><description><![CDATA[Obj
> > > Description]]></description></obj>
> > >
> > > -eric
> > >
> > > "The box said to install NT 4.0 or better, so I installed Solaris"
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]