-
Notifications
You must be signed in to change notification settings - Fork 56
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
Fix to avoid the randomness of the namespacing #31
base: master
Are you sure you want to change the base?
Conversation
Thanks! Would you be able to pull some of the examples from the issue/SO
into a test for this?
…On Mon, Jan 27, 2020 at 12:36 PM Avner Cohen ***@***.***> wrote:
This is taken from the fix from Alex Miro in this stackoverflow question:
https://stackoverflow.com/questions/10207167/python-suds-wrong-namespace-prefix-in-soap-request
Without this, when there is ComplexType in the xsd, the namespace creation
is faulty and random.
The same issue is also repeated here - cackharot/suds-py3#41
<cackharot/suds-py3#41>
------------------------------
You can view, comment on, or merge this pull request online at:
#31
Commit Summary
- Fiz to avoid the randomness of the namespacing
File Changes
- *M* suds/xsd/sxbase.py
<https://github.com/suds-community/suds/pull/31/files#diff-0> (4)
Patch Links:
- https://github.com/suds-community/suds/pull/31.patch
- https://github.com/suds-community/suds/pull/31.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31?email_source=notifications&email_token=AAAXCKPQH2C6U6OWYZ74YH3Q74LR7A5CNFSM4KMFHW7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4II7XB7A>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAXCKND3FS5Q4ZMAJAH4BLQ74LR7ANCNFSM4KMFHW7A>
.
|
@phillbaker I afraid I do not have enough understanding of the issue or suds to be able to cleanly recreate a repro and test. What I can only share is that this is a result of an issue sending a soap request to this public wsdl: We could see that on some payloads, specifically on python3.7.4, the namespacing of the fields was created in a wrong way to generate an invalid XML. I guess there are three options moving forward:
Would love to see this merged or picked up by someone who understands better what may have happened. |
@AvnerCohen sorry for the slow response here. In order for folks to take a further look can you share a simple code snippet that reproduces this problem? Especially, what service method in the linked wsdl is being called that generates this issue? |
To clarify, I think this is actually adding functionality to support complex types defined by the |
@phillbaker I was hoping the provided wsdl could help with that, but I couldn't really create a lean and specific reproduction steps. I also suspect that there is some complexity here around python version (py2 is had random dict order while py3 is more consistent). So it's a tricky one indeed. |
@AvnerCohen can you confirm the version and/or fork of suds you're using? |
This was tested with suds-community 0.8.4 - https://pypi.org/project/suds-community/0.8.4/ |
Very odd - it looks like this test should be capturing this behavior: suds/tests/test_request_construction.py Lines 445 to 446 in 7deb66a
However, putting a Looking at the request output, I actually see that there is no namespace prefix. @AvnerCohen I've looked at the wsdl you provided, and the only |
I've noticed this in the notes of the other people facing this issue: Is this exact scenario covered here - suds/tests/test_request_construction.py Lines 445 to 446 in 7deb66a
|
Right, that's why I'm confused! |
Maybe I am missing something, but I see only one Or am I missing something? |
Thanks for the effort @phillbaker . |
This is taken from the fix from Alex Miro in this stackoverflow question:
https://stackoverflow.com/questions/10207167/python-suds-wrong-namespace-prefix-in-soap-request
Without this, when there is ComplexType in the xsd, the namespace creation is faulty and random.
The same issue is also repeated here - cackharot/suds-py3#41