hi

i'm returning the xml as a result of call.invoke. when i write a test client using java the xml is well frmed, however we are also usg an application called laszlo, but when you get the same xml using laszlo that's whe it comes back with the &alt for the angle brackets

would it be possible to lead me to an example of cdata and sending the xml as the body of the message (i think this is what i'm doing but just want to make sure)

thanks for your help


From: Guy Rixon <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: xml with strange characters
Date: Tue, 30 Aug 2005 17:24:35 +0100 (BST)

If I understand you correctly, you're putting data marked up as XML in a
string and then sending that string as an XML element in a SOAP message. In
this usage, Axis has to turn the angle brackets into entity references in
order to make the XML well-formed; you're not allowed to have literal angle
brackets in the value of an XML element.

If you desparately need to send your XML structure as the value of
some XML element, then you can wrap it in a CDATA section so that Axis need not mess with the angle brackets. However, why not just send the XML as the body of the
message (normal document/literal style)?

On Tue, 30 Aug 2005, Plorks mail wrote:
>
> it's not - when the client receives the xml it has &alt instead of < or >
>
> Also when i test my service  get the same characters in the soap message
>
> Thanks
>
>
>
> >From: WAJSBERG Julien RD-BIZZ <[EMAIL PROTECTED]>
> >Reply-To: [email protected]
> >To: [email protected]
> >Subject: Re: xml with strange characters
> >Date: Tue, 30 Aug 2005 14:30:59 +0200
> >
> >Plorks mail a écrit :
> >
> > >
> > > hi all
> > >
> > > i'm retruning a xml string when a method is called.
> > >
> > > When i look at the soap returned xml is formatted with &lt; charactes
> > > instead of < or >
> > >
> > > e.g.
> > >
> > > &lt;ROOT&gt;
> > > ............
> > > &lt;/ROOT&gt;
> > >
> > > can anyone help me to solve this
> > >
> >Why is it a problem ?
> >Axis should deserialize this message correctly on the client side...
> >
>
> _________________________________________________________________
> Want to block unwanted pop-ups? Download the free MSN Toolbar now!
> http://toolbar.msn.co.uk/
>

Guy Rixon                                       [EMAIL PROTECTED]
Institute of Astronomy                          Tel: +44-1223-337542
Madingley Road, Cambridge, UK, CB3 0HA          Fax: +44-1223-337523

_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/

Reply via email to