Meaningless Drivel is fun!
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 Building Microservices this week in the Design 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: 44048
    
  33
Welcome to JavaRanch

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

Joined: Mar 22, 2005
Posts: 42958
    
  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
Sheriff

Joined: Oct 14, 2005
Posts: 19728
    
  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.
 
Have you checked out Aspose?
 
subject: how to submit and receive the responce of XML through java
 
It's not a secret anymore!