I just realized that my last response was in error. If you send XML as
a string, then Axis encodes the XML and converts all "<" to "&lt;".

To send XML as XML, then you need to represent the XML in some form of
XML data model, such as DOM or OMElement, and give that to Axis/Axis2
to package into the message. Or you work in Java objects and you use a
Java/XML data binding framework (Axis, ADB, XMLBeans, JiBX, JAXB,
Castor, etc). But don't just pass Axis/Axis2 a String containing XML.

Anne

On 1/27/07, htang27 <[EMAIL PROTECTED]> wrote:
Hi Anne,

How do you specify that you are sending xml rather than string even
when you are sending xml as string?

Thanks.
--- Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

> Typically I would expect the content of the body to look like "<tag>"
> unless you are sending XML as an encoded string (something to avoid)
> rather than as XML.
>
> If you are sending XML as a string, then Axis/Axis2 automatically
> encodes the XML and all open brackets are encoded as "<". The
> close
> brackets are typically left as is.
>
> Anne
>
> On 1/12/07, htang27 <[EMAIL PROTECTED]> wrote:
> > Does anyone know why the tags in the body are expected in the
> following
> > format "& l t ;TAG>" rather than "& l t ;TAG& g t ;"
> >
> > Thanks.
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Bored stiff? Loosen up...
> > Download and play hundreds of games for free on Yahoo! Games.
> > http://games.yahoo.com/games/front
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL


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

Reply via email to