This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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: 35241
    
    7
What kind of client is this? How is it accessing the service?


Android appsImageJ pluginsJava web charts
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: 35241
    
    7
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
RPC mapping file
Design problem
WSDL to Java
Need to access a Third Party API
doubt in web service composition