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

Exception: No ports defined: Service - wdsl without binding, how to handle? #63

Open
andreabisello opened this issue Jul 2, 2020 · 0 comments

Comments

@andreabisello
Copy link

andreabisello commented Jul 2, 2020

hi
running this code


from suds.client import Client as SudsClient
client = SudsClient("https://testwslegalmobile.solutiondocondemand.com/Service.svc?singlewsdl")
answer = client.service.Login(
        wspassword="xxx",
        loginParams={
            "username":"username",
            "password":"password"
        }
    )


i obtain

Exception: No ports defined: Service

ah a print(client) give me


Suds ( https://github.com/cackharot/suds-py3 )  version: 1.4.1.0 IN  build: 20200421

Service ( Service ) tns="http://tempuri.org/"
   Prefixes (3)
      ns0 = "http://schemas.datacontract.org/2004/07/WSLegalMobile.Models"
      ns1 = "http://schemas.datacontract.org/2004/07/WSLegalMobile.ModelsRequest"
      ns2 = "http://schemas.microsoft.com/2003/10/Serialization/"
   Ports (0):
--------------------------------------------------------------------------------


same result using soapui windows client,i think the problem is related with the wsdl, there is any binding in the wsdl code, how to handle this situation?

thanks

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