Hi all,
a little problem using JAX-RPC...
I rewrote the Hello example in this way:
HelloImpl.java
-------------------------------------------
package helloservice;
public class HelloImpl implements HelloIF {
public String message = "Hello "+(char) 25; // CHANGED HERE ADDING THE CHAR (ASCII=25)
public String sayHello(String s) {
return message + s;
}
}
-------------------------------------------
(I changed the message string adding the char with ASCII code 25)
and running the staticstubstub example I riceived this on my console:
run-client:
[java] Endpoint address =
http://localhost:8080/hello-jaxrpc/hello
[java] java.rmi.RemoteException: Runtime exception; nested exception is:
[java] deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: com.sun.xml.rpc.sp/P-071 19
[java] at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:258)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:240)
[java] at staticstub.HelloIF_Stub.sayHello(HelloIF_Stub.java:68)
[java] at staticstub.HelloClient.main(Unknown Source)
[java] Caused by: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: com.sun.xml.rpc.sp/P-071 19
I made a mistake? Not all ASCII chars can be in a String data type returned by a Web Service? Is there a way to solve this problem?
Thanks in advance,
regards,
Andrea.