This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes Neet to write web services response in file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Neet to write web services response in file" Watch "Neet to write web services response in file" New topic
Author

Neet to write web services response in file

Ranveer K Kumar
Ranch Hand

Joined: Sep 13, 2009
Posts: 64
Hi All,

I am very new in Web Services.

I need to receive response.

for example:

http://www.example.com/getDataAll

after requesting above URL I am receiving response in xml format.

Now I need to write the response in file.(whatever response is coming).

please suggest..

thanks
Ranveer K
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
What kind of client is this? How is it accessing the service?


Ping & DNS - my free Android networking tools app
Ranveer K Kumar
Ranch Hand

Joined: Sep 13, 2009
Posts: 64
Ulf Dittmer wrote:What kind of client is this? How is it accessing the service?


I am using using http post.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
Then you can get at the response as shown here: http://www.exampledepot.com/egs/java.net/Post.html Then it's just a matter of writing the data from the Stream/Reader to a file.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Neet to write web services response in file