aspose file tools*
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 Spring in Action this week in the Spring 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: 39394
    
  28
Welcome to JavaRanch

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

Joined: Mar 22, 2005
Posts: 42274
    
  64
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.


Ping & DNS - my free Android networking tools app
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18651
    
    8

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