wood burning stoves 2.0*
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
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: 39551
    
  27
What kind of client is this? How is it accessing the service?


Ping & DNS - updated with new look and Ping home screen widget
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: 39551
    
  27
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
 
Similar Threads
Need to access a Third Party API
Design problem
doubt in web service composition
RPC mapping file
WSDL to Java