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

raise MissingSchema( requests.exceptions.MissingSchema: Invalid URL '/services/': No scheme supplied. Perhaps you meant https:///services/? #1445

Open
jenyinzy opened this issue Nov 20, 2024 · 0 comments

Comments

@jenyinzy
Copy link

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

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

1 participant