• Post Reply Bookmark Topic Watch Topic
  • New Topic

deserialization error: unexpected XML reader state.  RSS feed

 
Vinod Awar
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii all,

iam accessing a webservice from a dynamic proxy client.The client can invoke the operations. when i run this client program it blows up this error:


I used Charles web debugging proxy to monitor the request/response.
The request is ok but the response contains the header content-length:0 .
Any ideas on this ?

Thanks and Regards,

Vinod
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The request is ok but the response contains the header content-length:0 .


If there is in fact no XML content in the response, the exact error from the XML reader is meaningless.

Aside from the content-length:0 - what other response headers are sent?

Why are you sure that the request is "ok"?

Bill
 
Vinod Awar
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Response Headers:

HTTP/1.1 302 Found
Date: Thu, 21 Jun 2007 13:24:42 GMT
Server: IBM_HTTP_SERVER
Content-Length: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US

There was Location header also.


Why are you sure that the request is "ok"?



Because i tried by passing invalid parameters and i got AuthenticationException.

Thanks and Regards,
Vinod
 
Vinod Awar
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this have anything to do with wsdl?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Content-Type: text/html; charset=ISO-8859-1


This suggests to me that the request is not in fact getting through to the web service at all. Either the service is down or your addressing is incorrect. The 302 code supposedly indicates that the resource has temporarily been moved - see the Javadocs for HttpServletResponse for a list of http status codes.

Bill
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!