marceltschoppch / osa

A clone of the small but lovely SOAP library "osa" by Sergey A. Bozhenkov (https://bitbucket.org/sboz/osa/overview).
GNU Lesser General Public License v3.0
1 stars 0 forks source link

How username and password can be set? #1

Open yoosofan opened 8 years ago

yoosofan commented 8 years ago

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 commented 8 years ago

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

yoosofan commented 8 years ago

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)