Skip to content
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

API used successfully in Python 2.7 application does not work in Python 3.6 #201

Open
dschreyergill opened this issue Mar 2, 2022 · 0 comments

Comments

@dschreyergill
Copy link

I have an application written in python 2.7 that uses pysimplesoap successfully. I am in the process of migrating that app to Python 3.6, and have found that the pysimplesoap module is behaving differently in at least one case. Here is a SOAP request sent by the 2.7 application:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://fprint.net/PAC">
<soapenv:Header/>
<soapenv:Body>
    <**tns:viewServer**>
        <username>L3cdnc</username><password>!@l3cndc714</password><ServerID>185216</ServerID>
    </**tns:viewServer**>
</soapenv:Body>
</soapenv:Envelope>

The next one is what is sent by the python 3 code:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://fprint.net/PAC">\n
<soapenv:Header/>\n
<soapenv:Body>
    <**viewServer**>
        <username>L3cdnc</username><password>!@l3cndc714</password><ServerID>212788</ServerID>
    </**viewServer**>
</soapenv:Body>
</soapenv:Envelope>

The way the application uses pysimplesoap has not changed. The differences above are in bold. What is causing the ns to not be prepended to the viewServer tag in Python 3, and how can I get around it?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant