views:

433

answers:

2

The code below throw a SAXParseException: "mismatched tag":

from suds.client import Client <br>
url = 'http://www.didww.com/api/?wsdl'
client = Client(url, cache=None)      
print client

Is it problem with suds, or there is some errors in wsdl?

+1  A: 

Have you looked at the WSDL file in a browser or XML viewer? That should answer your question as to whether the problem is in the wsdl. The exception suggests there is something up with it.

glenatron
+1  A: 

Seems to work for me, suds 0.3.3 (without cache option - None is not a valid option for cache in my version of suds):

In [4]: from suds.client import Client
In [5]: url = 'https://xml.192.com/IDSearch.cfc?wsdl'
In [6]: c = Client(url)
In [7]: print c

Suds ( https://fedorahosted.org/suds/ )  version: 0.3.3 GA  build:     R413-20081204

Service ( IDSearch ) tns="http://corpwsdl.oneninetwo"
Prefixes (1)
  ns0 = "http://rpc.xml.coldfusion"
Ports (1):
  (IDSearch.cfc)
     Methods (1):
        search(xs:string xml, )
     Types (1):
        ns0:CFCInvocationException
thrope
sorry, i have problem with this wsdl: "http://www.didww.com/api/?wsdl""https://xml.192.com/IDSearch.cfc?wsdl" works fine
equeny