Can't Interoperate between Systems

Lester Carlos Garcia Sierra <[email protected]> Wed, 26 Mar 2003 09:51:48 -0400
Newsgroups gmane.comp.windows.devel.soap.general
Message-ID <000401c2f39e$d9023ca0$da646464@OUT>
Hi,

I have a WebService build in java that uses string as parameters.

The point is that with a java client works fine with Latin letters(those
that include a, n, etc.) but when I use a Delphi client the UTF-8 decoding
is never done in my java server.

I have attached the two different ways that I've tested the webservice and I
don't have good results with both systems.

Is there anything I can do for interoperate my Delphi Client with my Java
Server WebService properly?

Thanks,
Lester

//work fine for java client

public String TestString(String Test)throws Exception{

System.out.println("Test->"+Test);

return Test;

}

//work fine for delphi

public String TestString(String Test)throws Exception{

byte[] cs = Test.getBytes();

Test = new String(cs, "UTF-8");

System.out.println("Test->"+Test);

return Test;

}

===================================
This list is hosted by DevelopMentor  http://www.develop.com
You may be interested in Guerrilla Web Services .NET, 14 April 2003, in Torrance, CA
http://www.develop.com/courses/gwsdotnet

View archives and manage your subscription(s) at http://discuss.develop.com