• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deserialization Error in WebService Client

 
Geetha Gubendran
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to invoke a method from a remote webservice thro' RPC. I tried it using netbeans. When I invoke the method I am getting the below error.

deserialization error: unexpected element type: expected={http://www.w3.org/2001/XMLSchema}string, actual={http://schemas.xmlsoap.org/soap/encoding/}string

My Understandings;

1. The api is invoked successfully and the response is returned.
2. But we are not able to interpret the response from the webservice. Because we are not able to deserialize the response.

Question:

Can someone please help me to resolve this issue? I am finding really hard time with this issue?

Thanks and Regards,
Geetha.


 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Geetha,

deserialization error: unexpected element type: expected={http://www.w3.org/2001/XMLSchema}string, actual={http://schemas.xmlsoap.org/soap/encoding/}string


I think there should be a mismatch between WSDL client is using to generate stubs and WSDL exposed by the webservice. The string "actual" in question, did you check if it is present on both sides' (client and server) WSDL and of same datatype? Are you sure when you are getting this problem (1) Failing to parse SOAP message sent by client on webserivce side or (2) Failing to parse reply SOAP message on client side? Detailed stack trace might help us to assist you more.

Cheers,
Naren
------------------------------
SCJP
SCDJWS
SCWCD
------------------------------
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!