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

https not working #56

Open
simzacks opened this issue Feb 21, 2022 · 1 comment
Open

https not working #56

simzacks opened this issue Feb 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@simzacks
Copy link
Contributor

simzacks commented Feb 21, 2022

One of our non-red hat users (who does not have a github account) has been having trouble with suds always changing from https to http. This is not something I could recreate, but he did succeed in connecting through suds by using an HttpAuthenticated transport, as can be seen in the script below. A colleague of his has also succeeded in interacting with the WSDL using zeep, which we already have an issue to swap suds for zeep #42
Can we look into what needs to happen to support this user?

from suds.client import Client
from suds.transport.https import HttpAuthenticated
url = 'https://DOMAIN_URL/polarion/ws/services/SessionWebService?wsdl'
credentials = dict(username='***',password='***')
t = HttpAuthenticated(**credentials)
client = Client(url, location='https://DOMAIN_URL/polarion/ws/services',transport=t)

@leelavg
Copy link
Collaborator

leelavg commented Mar 22, 2022

  • the issue is expected, we are not sending transport kwarg to Client and so it'll pick up empty HttpAuthenticated transport which is http
  • I tried providing the creds here when there's no enclosing session (~sessionwebservice) however hitting some issues
    self._suds_client = suds.client.Client(
    url,
    plugins=[plugin],
    timeout=timeout)
  • will re-visit once again if possible

@leelavg leelavg added the bug Something isn't working label Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants