i am using apache soap to write a soap client to
access the server which i write using perl soap::lite.
i works well when i use english param.
but when i set the param as a chinese word,it fails to
receive any result.
then i write a client using soap::lite.it works well
when i set param as chinese words.
i look up in google(chinese),someone ever meet the
same question.it seems they cannot solve it too.
in the mailing list archive,i cannot find the answer
too.
can anyone help me?thanks.
my code is as below:
server:
----------------------------
use SOAP::Transport::HTTP;
SOAP::Transport::HTTP::CGI
-> dispatch_to('Demo')
-> handle;
package Demo;
sub echo {
my ($pack,$s,@a)[EMAIL PROTECTED];
return $s." received";
}
client:
--------------------------------
URL url = new URL("http://localhost/test/echo.cgi");
String s = "test";//when i set here a chinese word,it
fails to receive any data.
Call call = new Call();
call.setTargetObjectURI("urn:Demo");
call.setMethodName("echo");
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
Vector params = new Vector();
params.addElement(new Parameter("name", String.class,
s, null));
call.setParams(params);
Response resp = call.invoke(url, "");
Parameter result = resp.getReturnValue();
if(result!=null)System.out.println(result.getValue());
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com