• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

deserialization error: unexpected XML reader state.

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does this have anything to do with wsdl?
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It wasn't my idea to go to some crazy nightclub in the middle of nowhere. I just wanted to stay home and cuddle with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic