jax-rpc 1.6 deserialization error

Hi,

I try to create a web client for remote web service. I got wsdl file and IDE (Sun Java Studio Enterprise 8.1) successfully build java files out of wsdl. Everything looks simple and good except 1 little thing. When I run the client it throws an exception below.

--

java.rmi.RemoteException: Runtime exception; nested exception is:

deserialization error: unexpected XML reader state. expected: END but found: START:

--

The exception is thrown at

result = servPort.list(timestamp);

The source code is simple and looks like:

--

String timestamp = "01/01/2000";

service = new RTService_Impl();

port = (RTServicePort_Stub)service.getRTServicePort();

stub = (Stub)port;

stub._setProperty(Stub.USERNAME_PROPERTY,"username");

stub._setProperty(Stub.PASSWORD_PROPERTY,"password");

try {

RTServicePort_Stub servPort = ((RTServicePort_Stub)stub);

result = servPort.list(timestamp);

}

catch(Exception e) {

System.out.println("Exception in RT - e = "+e.toString());

}

-

Can anyone tell me what to do to fix the problem as it looks like I am stuck on it?

my problem looks similar but still is slightly different from

http://forum.java.sun.com/thread.jspa?threadID=737308&messageID=4234294

Please help.

Dmitry

[1377 byte] By [dimka71a] at [2007-11-27 10:29:02]
# 1

OK.

I found what went wrong with in this case. Maybe it will be helpful for some else in my situation.

I used 2 webservices to retrieve some data and store it. It happen to be in my case that the developers of those services used the same name of serialised classes in different services. Sure enough that the classes were incompatible and deserialization happen in wrong order.

So, this is not an rpc error but rather implementation error (or poor naming should I say).

Hope that helps.

dimka71a at 2007-7-28 17:55:12 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...