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
How to connect to protected WebService (Basic Authentication) #5
Comments
I resolved it but i think that the problem is that it is not well documented...
|
I have only a token header and I try with the following lines:
but I encountered a strange error
|
@madEng84 have you any suggestion to call a webservice with an authorization token of this type: "Bearer Xxxx" |
@rmarzocchi84 I cannot find a similar solution to the one i used, but i see in this library code that "authorization" is a not expected key for HttpAuthenticated.init method. Maybe you have to write your own implementation. Before it, try with an approach like this Keep me informed |
Looks like the my_client = Client(
WSDL_URL,
location=WSDL_URL,
cache=NoCache(),
transport=HttpAuthenticated(
headers={"Authorization" : "Bearer 10ac7b40-c252-3544-9b5e-301836e485a5"}
),
) |
I have already tested this solution --> HTTP Error 405: Method Not Allowed |
I try it (removing cache=NoCache()).. and finally I encountered the |
Hi,
I want to connect to a protected webservice (BasicAuthentication)
What is the right approach?
I have tried this
but without luck
Thank you in advance
The text was updated successfully, but these errors were encountered: