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.
A friendly place for programming greenhorns!
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
Author
Neet to write web services response in file
Ranveer K Kumar
Ranch Hand
Joined: Sep 13, 2009
Posts: 64
posted
Dec 11, 2009 02:29:43
0
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
posted
Dec 11, 2009 04:41:21
0
What kind of client is this? How is it accessing the service?
Android apps
–
ImageJ plugins
–
Java web charts
Ranveer K Kumar
Ranch Hand
Joined: Sep 13, 2009
Posts: 64
posted
Dec 11, 2009 08:32:31
0
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
posted
Dec 11, 2009 09:42:01
0
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter