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.SOAPFaultException: 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.StreamingSender._raiseFault(StreamingSender.java:528)

      at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307)

      at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:103)

      at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:492)

      at com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocationHandler.java:121)

      at com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocationHandler.java:85)

Any idea what could be causing this?
LVL 5
jjacksnAsked:
Who is Participating?
 
Mayank SAssociate Director - Product EngineeringCommented:
Perhaps the definition of the object on the other side has changed.
0
 
CEHJCommented:
You need to define a custom serializer
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
jjacksnAuthor Commented:
CEHJ, why/how.  Do I just need to override a method or something?
0
 
jjacksnAuthor Commented:
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?

0
 
Mayank SAssociate Director - Product EngineeringCommented:
If you have used WSDL 2 Java from Axis, it should.
0
 
jjacksnAuthor Commented:
sorry, what is that?  i'm using JAX-RPC which is a bit older, but shoul still be capable of this.
0
 
Mayank SConnect With a Mentor Associate Director - Product EngineeringCommented:
0
All Courses

From novice to tech pro — start learning today.