I'm having a problem with SUDS.CLIENT, I can't select a method

Viewed 18

So I'm trying to consume a SOAP WebService with Lib Suds.Client, I'm having some problems:

from suds.client import Client
client = Client(url='https://www.portalctf.com.br/portalcopias/wscopia.asmx?wsdl')
print(client)

Where this is returned:

   Ports (2):
  (WsCopiaSoap)
     Methods (2):
        ListarTemplatesDisponiveis()
        RecuperarCopia(ParametrosCopia parametroCopia)
     Types (3):
        ParametrosCopia
        SoapLogin
        VO
  (WsCopiaSoap12)
     Methods (2):
        ListarTemplatesDisponiveis()
        RecuperarCopia(ParametrosCopia parametroCopia)
     Types (3):
        ParametrosCopia
        SoapLogin
        VO

But when I try to access the ListarTemplatesAvailables method, it returns this:

from suds.client import Client
client = Client(url='https://www.portalctf.com.br/portalcopias/wscopia.asmx?wsdl')
print(client.service.ListarTemplatesDisponiveis)

<suds.client.Method object at 0x000002B60FA8ADD0>
0 Answers
Related