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

How username and password can be set? #1

Open
yoosofan opened this issue Jul 19, 2016 · 2 comments
Open

How username and password can be set? #1

yoosofan opened this issue Jul 19, 2016 · 2 comments

Comments

@yoosofan
Copy link

I need to set username and password for soap. Haw can I set them in the following sample.

import osa
cl = osa.Client("url?wsdl")
print(cl.types)
print('heellll')
print(cl.service)
@marceltschoppch
Copy link
Owner

The osa client does not yet support any SOAP authentication methods like WSS or Basic Authentication. Pull Requests are welcome!

@yoosofan
Copy link
Author

Thank you,
It is okay. I don't really need it. because the server doesn't such authentication, it uses simple field for authentication like this:

import osa,datetime
cl = osa.Client("http://IP_ADDRESS_OF_SERVER/Service/limsapi.asmx?wsdl")
msg=cl.service.GetResultsByID(username="Something",password="Something" ,
          other_fields="ddddd", date_field=datetime.datetime(2016,6,1) )
print(msg)

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

2 participants