This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes Problems trying to send XML over HTTP POST Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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
 
Similar Threads
new to servlet
Problem in declaring a bean in JSP page
problem with compiling of jsp
Mails not being sent without SMTP authentication
Mails not being sent without SMTP authentication