wood burning stoves*
The moose likes Servlets and the fly likes Problems trying to send XML over HTTP POST Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problems trying to send XML over HTTP POST" Watch "Problems trying to send XML over HTTP POST" New topic
Author

Problems trying to send XML over HTTP POST

Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I'm trying to implement a servlet which receives XML messages as HTTP POST requests. The problem is that for some reason I'm not able to call the service correctly -- symptoms being that the servlet and/or helper classes are not able to read the request body.
I'd really appreciate the help.
In Tomcat 4.1.27 I get the following stack trace:
In iPlanet 6.0 I get the following stack trace:
And this is what Grinder's TCPSniffer tells me (I'm trying to send both with HttpUnit and Commons HttpClient):


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
No longer a problem. It was a sloppy manual refactoring -- the exceptions were due to me trying to parse the content twice...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems trying to send XML over HTTP POST