aspose file tools
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 Groovy Fundamentals video training course this week in the Groovy 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
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
What kind of client is this? How is it accessing the service?
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
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
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