jjacksn
asked on
JAX-RPC error
I'm testing a JAX-RPC call running in Sun App Server. All of the methods are working properly except for the method which uses a user-definied object, the stack trace is:
javax.xml.rpc.soap.SOAPFau ltExceptio n: JAXRPCTIE01: caught exception while handling request: deserialization error: deserialization error: unexpected XML reader state. expected: END but found: START: contentType
at com.sun.xml.rpc.client.Str eamingSend er._raiseF ault(Strea mingSender .java:528)
at com.sun.xml.rpc.client.Str eamingSend er._send(S treamingSe nder.java: 307)
at com.sun.xml.rpc.client.dii .CallInvok erImpl.doI nvoke(Call InvokerImp l.java:103 )
at com.sun.xml.rpc.client.dii .BasicCall .invoke(Ba sicCall.ja va:492)
at com.sun.xml.rpc.client.dii .CallInvoc ationHandl er.doCall( CallInvoca tionHandle r.java:121 )
at com.sun.xml.rpc.client.dii .CallInvoc ationHandl er.invoke( CallInvoca tionHandle r.java:85)
Any idea what could be causing this?
javax.xml.rpc.soap.SOAPFau
at com.sun.xml.rpc.client.Str
at com.sun.xml.rpc.client.Str
at com.sun.xml.rpc.client.dii
at com.sun.xml.rpc.client.dii
at com.sun.xml.rpc.client.dii
at com.sun.xml.rpc.client.dii
Any idea what could be causing this?
Perhaps the definition of the object on the other side has changed.
You need to define a custom serializer
ASKER
CEHJ, why/how. Do I just need to override a method or something?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm using JAX-RPC, I was under the impression the generation of the WSDL and the Java wrappers would take care of the serializaiton and deserialization of the object. Am I mistaken?
If you have used WSDL 2 Java from Axis, it should.
ASKER
sorry, what is that? i'm using JAX-RPC which is a bit older, but shoul still be capable of this.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.