-
Notifications
You must be signed in to change notification settings - Fork 58
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
SOAP: WSDL with targetNamespace and messages without namespace prefix parsing issue #569
Labels
Comments
driesva
added a commit
to driesva/imposter
that referenced
this issue
May 14, 2024
* Function to resolve the targetNamespace from the WSDL-document. If such a target namespace is declared and e.g. the element attribute of the message part has no namespace prefix, use that target namespace to construct a qualified name. * Adapt random test WSDLs to have no namespace prefix fixes outofcoffee#569
outofcoffee
pushed a commit
to driesva/imposter
that referenced
this issue
May 18, 2024
* Function to resolve the targetNamespace from the WSDL-document. If such a target namespace is declared and e.g. the element attribute of the message part has no namespace prefix, use that target namespace to construct a qualified name. * Adapt random test WSDLs to have no namespace prefix fixes outofcoffee#569
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We received a WSDL with a
targetNamespace
attribute. That namespace has not been added to the WSDL with a prefix (as one usually would do). As such the WSDL contains messages where the parts have elements without namespace prefix.This can be reproduced with modifying the existing samples in the tests (that have a prefix configured for the tns):
Currently the parsing fails (using latest version 3.39.0):
When getting the element attribute, the target namespace should be taken into account in function
getAttributeValueAsQName
The text was updated successfully, but these errors were encountered: