Thanks!

I wondered if I can overload Soap services?

Anping

Sanjiva Weerawarana wrote:

> 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 &lt; and &gt;
> > > > 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....
> > > >
> > > > &lt;obj&gt;&lt;description&gt;<![CDATA[Obj
> > > > Description]]>&lt;/description&gt;&lt;/obj&gt;
> > > >
> > > > -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]
begin:vcard 
n:Wang;Anping
tel;home:1 650 631 7344
tel;work:1 650 607 5608
x-mozilla-html:FALSE
url:www.oracle.com
org:Oracle Corporation;CRM Service Fulfillment
adr:;;500 Oracle Parkway;Redwood City;California;94065;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Software Developer
fn:Anping Wang
end:vcard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to