15 years ago
SoapUI modifying XML namespace info
Dear forum,
I'm creating a test case with several SOAP calls in it, passing the output of one call to the next, and I've got a problem with SoapUI changing the way namespaces are used. One of the services is quite fussy about the namespaces in the data it receives. The output from one service is with inline namespaces:
(where MyResponse, MyResult, and MyData are all in the http://www.blah.com namespace)
In real-world use, this is how the data is passed to the next web service call. However... when using SoapUI and transferring this to a property (MyData), when this gets passed into the request for the next call, it gets changed to a prefix based version:
I understand that this is a valid thing for SoapUI to do, and that the fault lies with the service being called. However, I don't have easy access to the code of the service to make it work properly with namespaces.
Is there a way to make SoapUI transfer the XML data as-is without changing it, or for it to use the xmlns="..." attribute on the data rather than creating a prefix for it?
Thanks for any help that could be offered here,
Regards,
John
I'm creating a test case with several SOAP calls in it, passing the output of one call to the next, and I've got a problem with SoapUI changing the way namespaces are used. One of the services is quite fussy about the namespaces in the data it receives. The output from one service is with inline namespaces:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<MyResponse xmlns="http://www.blah.com/">
<MyResult>
<MyData>....
(where MyResponse, MyResult, and MyData are all in the http://www.blah.com namespace)
In real-world use, this is how the data is passed to the next web service call. However... when using SoapUI and transferring this to a property (MyData), when this gets passed into the request for the next call, it gets changed to a prefix based version:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:blah="http://www.blah.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<blah:MySaveRequest>
<blah:MyData>
I understand that this is a valid thing for SoapUI to do, and that the fault lies with the service being called. However, I don't have easy access to the code of the service to make it work properly with namespaces.
Is there a way to make SoapUI transfer the XML data as-is without changing it, or for it to use the xmlns="..." attribute on the data rather than creating a prefix for it?
Thanks for any help that could be offered here,
Regards,
John