Robert,
My mistake. I did not read the original question properly. It should
not be encoding a & as &&. Let me look into this some more.
Robert Lowe wrote:
> Why does JAX-RPC encode & as &&, instead of using a standard XML entity such
> as & ?
>
> If a standard XML entity was used then it would surely be possible to
> reverse the encoding unambiguously.
>
>
>
> Best regards,
>
> Robert Lowe
> http://RMLowe.com/
>
>
> -----Original Message-----
> From: Doug Kohlert [mailto:Doug.Kohlert_at_Sun.COM]
> Sent: Thursday, January 15, 2004 4:12 AM
> To: users_at_jax-rpc.dev.java.net
> Subject: Re: JAX-RPC special character (like ampersand) encoding
> question
>
>
> Bubble Lo
> It will encode any special XML character so that when it gets sent of
> the wire it is not interpreted as XML. There currently is no plan to
> address the problem as there is no clear solution.
>
>
> Bubble Lo wrote:
>
>>What other special characters does JAX-RPC replace at runtime? Any plan
>>for JAX-RPC fix this problem?
>>
>> Date: Mon, 12 Jan 2004 09:23:49 -0800
>> From: Doug Kohlert
>> To: users_at_jax-rpc.dev.java.net
>> Subject: Re: JAX-RPC special character (like ampersand) encoding
>> question
>>
>> The problem occurs when the JAX-RPC runtime replaces the '&' with
>> && so it can send it over the wire, on the other end the
>> server/client has no way to determine if the original string was
>> "Peter & Marry" or "Peter && Mary" so it does not try to
>> modify it. If you want the original string back you will need to
>
> convert
>
>> it back yourself.
>>
>> Bubble Lo wrote:
>>
>> > I have a web service that returns a java bean which contains one
>> > property, name. The value set to the name field is "Peter & Marry".
>> >
>> > After the client invokes that web service and gets the java bean,
>> the
>> > value of name is changed to "Peter && Mary".
>> >
>> > Does anyone know have the same problem? Is it caused by JAX-RPC?
>
> How
>
>> > should I fix this problem?
>> >
>> > Thanks in advance
>> >
>> >
>> ----------------------------------------------------------------------
>
> --
>
>> > Do you Yahoo!?
>> > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
>> >
>> >
>>
>> --
>> Doug Kohlert
>> Java Software Division
>> Sun Microsystems, Inc.
>> phone: 503 345-9806
>>
>>------------------------------------------------------------------------
>>Do you Yahoo!?
>>Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
>>
>
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/hotjobs/mail_footer_email/evt=2
> 1482/*http://hotjobs.sweepstakes.yahoo.com/signingbonus>
>
>
> --
> Doug Kohlert
> Java Software Division
> Sun Microsystems, Inc.
> phone: 503 345-9806
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
--
Doug Kohlert
Java Software Division
Sun Microsystems, Inc.
phone: 503 345-9806
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net