Forum Discussion

EdZilla's avatar
EdZilla
New Contributor
15 years ago

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

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    Here's very simple a currency converter that takes and returns XML: Currency converter. You can import this WSDL directly into soapUI by selecting "Add WSDL" and entering the URL in the popup.

    Regards,
    Dain
    eviware.com