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]
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]