You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by htang27 <ht...@yahoo.com> on 2007/01/12 22:57:19 UTC

Axis2 soap body content

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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 soap body content

Posted by Anne Thomas Manes <at...@gmail.com>.
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 <ht...@yahoo.com> 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 <at...@gmail.com> 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 <ht...@yahoo.com> 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: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
>
> ____________________________________________________________________________________
> Get your own web address.
> Have a HUGE year through Yahoo! Small Business.
> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 soap body content

Posted by Anne Thomas Manes <at...@gmail.com>.
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 "&lt;". The close
brackets are typically left as is.

Anne

On 1/12/07, htang27 <ht...@yahoo.com> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org