EdZilla
15 years agoNew Contributor
Need a webservice example that returns XML in the response
I've been trying to develop a webservice that will process a TestNG suite and then return the testng-response xml in the SOAP response.
This is a lot more difficult than I'd though, and I've hit walls at ever turn. The best I've done is to return the xml as a string in the response, but when I do that, it wraps it in the CDATA tag, and that fails XML response validation in the required client (QTP).
Can anyone point me to a web service example that will return xml in the response? or to some forum or resource where I can look?
I've been experimenting with annotating the response object using @XmlRootElement and @XmlAnyElement, with no luck:
"Unable to create JAXBContext"
Thanks
This is a lot more difficult than I'd though, and I've hit walls at ever turn. The best I've done is to return the xml as a string in the response, but when I do that, it wraps it in the CDATA tag, and that fails XML response validation in the required client (QTP).
Can anyone point me to a web service example that will return xml in the response? or to some forum or resource where I can look?
I've been experimenting with annotating the response object using @XmlRootElement and @XmlAnyElement, with no luck:
"Unable to create JAXBContext"
Thanks