suds-community / suds

Suds is a lightweight SOAP python client for consuming Web Services. A community fork of the jurko fork.
https://suds.readthedocs.io/
GNU Lesser General Public License v3.0
173 stars 56 forks source link

Suds makes underscores in front of parsed fields #98

Closed aleksejs-fomins closed 7 months ago

aleksejs-fomins commented 7 months ago

Dear Suds developers,

Project I am working with a legacy code that is using a slightly older version suds-py3>=1.4.1, I am planning to migrate it to the current version soon.

The project uses WSDL read queries to a SOAP API in our organization.

I am encountering a behaviour where some of the fields, that appear in the raw XML as "id" and "project" to appear in the non-raw response (i.e. XMLResponse) as "_id" and "_project". Why is this happening? Is there a way to switch this behaviour off? Is this still the case in the current version?

I am happy to provide any details you require on request.

phillbaker commented 7 months ago

Hello - please confirm what version of suds you're seeing this issue in? Please also provide a wsdl that reproduces this.

aleksejs-fomins commented 7 months ago

Hi.

suds.__version__ says '1.4.5.0' The WSDL is https://fgcz-bfabric-test.uzh.ch/bfabric/user?wsdl

I expect that you would not be able to make queries without a username and a password, which I don't have permission to share.

phillbaker commented 7 months ago

suds.__version__ says '1.4.5.0'

That's not a version released by this library. suds-py3 is a separate fork and bugs in suds-py3 could not be addressed here.

If you're using this package and seeing this error, please share the version of this library in which you're seeing the issue you describe.

aleksejs-fomins commented 7 months ago

Sorry, I will send the bug to suds-py3