After call,
String ret = (String) call.invoke(new Object[] { "10" });
Try,
call.getMessageContext().getMessage().writeTo(System.out); // whatever
OutputStreamIf you are starting out, it is better you take a look at Axis2. Upul On 10/9/07, loredana loredana <[EMAIL PROTECTED]> wrote: > > how to save it isn't the hard part...obtaining that xml is. How do I > obtain the whole response?? > because in my web service client if I call invoke method, that returns > directly the result(10) not the whole xml response. > > ----- Original Message ---- > From: Antonio Muñiz <[EMAIL PROTECTED]> > To: [email protected] > Sent: Tuesday, October 9, 2007 1:49:52 PM > Subject: Re: saving web service result as an xml file > > Use FileWriter class in java.io > > 2007/10/9, loredana loredana <[EMAIL PROTECTED]>: > > > > Ok, long story short. a web service result is an xml file of this type: > > > > <?xml version="1.0" encoding="utf-8"?> > > > > <soap:Body> > > > > <CelsiusToFahrenheitResult>10</CelsiusToFahrenheitResult> > > </CelsiusToFahrenheitResponse> > > </soap:Body> > > </soap:Envelope> > > > > I want to know if there is any way to save this response directly in a > > web client... > > So in other words, I can do a web service client in java which queries > > the web service and returns me the response(10 in that case). > > But I would actually need to save the resulted xml(like the one above) > > on my local drive. Is there any way to do this? > > 10x in advance > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > > Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's > > updated for today's economy) at Yahoo! Games. > > http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > ------------------------------ > Building a website is a piece of cake. > Yahoo! Small Business gives you all the tools to get > online.<http://us.rd.yahoo.com/evt=48251/*http://smallbusiness.yahoo.com/webhosting/?p=PASSPORTPLUS> >
