wood burning stoves 2.0*
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
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: 36501
    
  16
Welcome to JavaRanch

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

Joined: Mar 22, 2005
Posts: 39548
    
  27
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 - updated with new look and Ping home screen widget
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18129
    
    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
 
Similar Threads
Get ServletContext of a web app hosted in another server
How to programmatically login to JForum using Crowd Authentication
Unable to upload file using Commons HTTPClient and Commons FileUpload
Reg Manual Creation of new Topics -
Using PostMethod to post from a servlet without capturing the response body