Neustar
13 years agoOccasional Contributor
SOAP Response assertion fails when invoked from Java
Hello
I have a SOAP UI test with one step that has a "SOAP Response" assertion in addition to some other assertions. When this test is run from SOAP UI, the test passes. When the same test is called from Java, runner.getStatus reports "FAILED". After some debugging, I see that all assertions pass except the "SOAP Response" assertion. Here is the response from the debug logs that fails the "SOAP Response" assertion when invoked from Java.
10:27:42.820 [main] DEBUG httpclient.wire.content - << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><v01:createPrimaryZoneResponse xmlns:v01='http://webservice.api.ultra.neustar.com/v01/'><result>Successful</result></v01:createPrimaryZoneResponse></env:Body></env:Envelope>"
Below is the response from the SOAP UI tool where the "SOAP Response" assertion passes successfully
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<v01:createPrimaryZoneResponse xmlns:v01="http://webservice.api.ultra.neustar.com/v01/">
<result>Successful</result>
</v01:createPrimaryZoneResponse>
</env:Body>
</env:Envelope
How can I get this resolved and get my "SOAP Response" assertion to pass when the SOAP UI test is called from Java?
I have a SOAP UI test with one step that has a "SOAP Response" assertion in addition to some other assertions. When this test is run from SOAP UI, the test passes. When the same test is called from Java, runner.getStatus reports "FAILED". After some debugging, I see that all assertions pass except the "SOAP Response" assertion. Here is the response from the debug logs that fails the "SOAP Response" assertion when invoked from Java.
10:27:42.820 [main] DEBUG httpclient.wire.content - << "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><v01:createPrimaryZoneResponse xmlns:v01='http://webservice.api.ultra.neustar.com/v01/'><result>Successful</result></v01:createPrimaryZoneResponse></env:Body></env:Envelope>"
Below is the response from the SOAP UI tool where the "SOAP Response" assertion passes successfully
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<v01:createPrimaryZoneResponse xmlns:v01="http://webservice.api.ultra.neustar.com/v01/">
<result>Successful</result>
</v01:createPrimaryZoneResponse>
</env:Body>
</env:Envelope
How can I get this resolved and get my "SOAP Response" assertion to pass when the SOAP UI test is called from Java?