A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
How to make XML file from WebService responses?
Joined: Aug 18, 2008
Nov 04, 2009 04:42:43
I get parts of XML document from a web service calls. I have to make an XML out of it so that I can give it to XSLT for transformation.
The response is somewhat like this
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <getRollingEntitiesResponse xmlns="urn:TBEWebAPI"> <getRollingEntitiesReturn xmlns=""> <array/> </getRollingEntitiesReturn> </getRollingEntitiesResponse> </soapenv:Body> </soapenv:Envelope>
Can someone suggest me a good design as it has to be repeated for a number of elements.
SCJP 5 SCWCD 5
Author and all-around good cowpoke
Joined: Mar 22, 2000
Nov 04, 2009 06:58:29
Just capture the whole thing. SOAP responses must be legal XML documents.
Java Resources at
I agree. Here's the link:
subject: How to make XML file from WebService responses?
digest value mismatch and disabling pretty printing/formatting of soap message
WebSphere V5.1 Application Server SOAP Response
.Net Client for Axis Web services
SOAP Validation Help Requested
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014