Skip to content

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

Open
@jenyinzy

Description

@jenyinzy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions