New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespaces declared in Soap:Envelope ignored when comparing SOAP response with expected value #2469
Labels
Comments
thanks for the repro. you may have seen this already, but a workaround could be to manually strip / modify the namespace data from the XML: https://stackoverflow.com/a/75626292/143475 |
Thanks Peter, I would use that, but in this case we've made a change around the xsi:nil, so I was asked to explicitly test for it being included.
I'm off for Christmas now, but I'll see if I can find a fix when I'm back.
…On Fri, 22 Dec 2023, at 3:12 PM, Peter Thomas wrote:
thanks for the repro. you may have seen this already, but a workaround could be to manually strip / modify the namespace data from the XML: https://stackoverflow.com/a/75626292/143475
—
Reply to this email directly, view it on GitHub <#2469 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA4QSWDZ7OB4XIKR5NJKCSTYKWPNBAVCNFSM6AAAAABA74FH4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRXG44TOOJZGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am testing a soap service which sometimes returns nil elements, defined in xsi namespace. Unlike issue #754, the xsi namespace is defined in the response, it is declared in the soap envelope, so that this test using locally defined xml will pass:
However, a scenario where a SOAP request produces the same XML in the response will fail on the match statement:
This looks like a problem in the handling of the response when used in match, as if it is being treated differently to any other xml document, perhaps by stripping the soap wrapper from both documents before comparing, so that the xsi namespace declaration is lost?
Note that this problem happens regardless of the value of xmlNamespaceAware
The text was updated successfully, but these errors were encountered: