Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/SudsLibrary/clientmanagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class _ClientManagementKeywords(object):

def create_soap_client(self, url_or_path, alias=None, autoblend=False, timeout='90 seconds'):
def create_soap_client(self, url_or_path, alias=None, autoblend=False, timeout='90 seconds', username=None, password=None):
"""Loads a WSDL from the given URL/path and creates a Suds SOAP client.

Returns the index of this client instance which can be used later to
Expand All @@ -46,6 +46,10 @@ def create_soap_client(self, url_or_path, alias=None, autoblend=False, timeout='
url = self._get_url(url_or_path)
autoblend = to_bool(autoblend)
kwargs = {'autoblend': autoblend}
if username!=None:
kwargs['username']=username
if password:
kwargs['password']=password
imports = self._imports
if imports:
self._log_imports()
Expand Down