users@jax-rpc.java.net

Re: JAX-RPC special character (like ampersand) encoding question

From: Bubble Lo <mybubblelo_at_yahoo.com>
Date: Thu, 15 Jan 2004 19:21:29 -0800 (PST)

Hi Arun,
 
I just tested the HelloWorld example, and it returned the correct string which is "Mary & Paul".
 
Unfortunately, it doesn't give me the correct string after I added a handler which runs at the client side. The returned string is "Mary &amp;&amp; Paul".
 
I attached the my handler class. The handler doesn't do anything because I tried to narrow down what causes that happens.

Could you please take a look and test it again with the attached handler class?

Arun Gupta <Arun.Gupta_at_Sun.COM> wrote:
Hi Bubble,

Let me help you with this.

I changed the string in client code of jaxrpc sample shipped along with
JWSDP 1.3 in JWSDP_HOME/jaxrpc/samples directory from "JAXRPC Sample" to
"Mary & Paul" and received the same string back. On the server side as
well, it showed "In sayHello for WSDL : Mary & Paul".

Can you please try it and let me know ?

Thanks,
-Arun

Bubble Lo wrote:

> I am using JWSDP 1.3 version.
>
> Doug Kohlert wrote:
>
> Bubble Lo,
> I decided to do some testing on this. Using JWSDP 1.3 I was able to
> send "Mary & Paul" to a service which simply returns the string and I
> successfully got "Mary & Paul" back. What version of JAXRPC are you
> using?
>
> 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
> >
> >
>
> --
> 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
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
>



-- 
got Web Services ?
Download Java Web Services Developer Pack from
http://java.sun.com/webservices
---------------------------------------------------------------------
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
---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes



---------------------------------------------------------------------
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