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]

Reply via email to