This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes how to submit and receive the responce of XML through java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "how to submit and receive the responce of XML through java" Watch "how to submit and receive the responce of XML through java" New topic
Author

how to submit and receive the responce of XML through java

sahej aggarwal
Greenhorn

Joined: May 11, 2009
Posts: 6
I am submiting the XML content throught java code against which one response is generated by the server. On submiting the request to the server the status by "client.executeMethod(method)" is 200

When I am using this method I am not getting the respoce from the server as this is returning a blank string "method.getResponseBodyAsString()" .

for your reference I am pastig the code below : -
here dataParameter is containig the XML code in DTD format as a string.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 41576
    
  31
Welcome to JavaRanch

That question is too difficult for the beginner's forum. Moving.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
Well, *IS* the server returning anything but a blank response? You can use an HTTP proxy like tcpmon to check what is actually going over the wire.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 19357
    
  10

Seems to me that it doesn't matter whether the data you are sending happens to be XML. You have a question about Apache HttpClient (it is Apache, right? You didn't mention that...) so let's not hide it in the XML forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to submit and receive the responce of XML through java