Description
from requests import Session
from requests.auth import AuthBase, HTTPBasicAuth # or HTTPDigestAuth, or OAuth1, etc.
from zeep import Client
from zeep.transports import Transport
session = Session()
session.auth = HTTPBasicAuth('name', 'pw')
session.verify = False
wsdl_url = 'https://xxxx/xxx_service/services/publish.wsdl'
soap_client = Client(wsdl_url,transport=Transport(session=session))
result = soap_client.service.MethodName('John','businesskey','username','hostname')
ERROR:
raise MissingSchema(
requests.exceptions.MissingSchema: Invalid URL '/services/': No scheme supplied. Perhaps you meant https:///services/?
I can see from log the url was called twice from model.py. first time is the correct url https://xxxx.wsdl. but second time called is change to /services/ only, no idea why.
Any one help? bugging for days