python soap库sud存在问题。Wsdl不被理解

python soap库sud存在问题。Wsdl不被理解,python,soap,wsdl,suds,Python,Soap,Wsdl,Suds,下面的代码引发SAXParseException:“不匹配的标记”: 从suds.client导入客户端 url='1〕http://www.didww.com/api/?wsdl' 客户端=客户端(url,缓存=无) 打印客户端 肥皂水有问题,还是wsdl中有一些错误?您是否在浏览器或XML查看器中查看过wsdl文件?这应该回答您关于问题是否在wsdl中的问题。例外情况表明有问题。似乎适合我,suds 0.3.3(无缓存选项-在我的suds版本中,无缓存选项无效): 我试图重现你的问题,但一

下面的代码引发SAXParseException:“不匹配的标记”:

从suds.client导入客户端
url='1〕http://www.didww.com/api/?wsdl' 客户端=客户端(url,缓存=无) 打印客户端

肥皂水有问题,还是wsdl中有一些错误?

您是否在浏览器或XML查看器中查看过wsdl文件?这应该回答您关于问题是否在wsdl中的问题。例外情况表明有问题。

似乎适合我,suds 0.3.3(无缓存选项-在我的suds版本中,无缓存选项无效):


我试图重现你的问题,但一切都对我有效

我用的是肥皂水0.4

运行

from suds.client import Client

client = Client('http://api.didww.com/api/index.php?wsdl', cache=None)

print client
给予

我猜他们有一段时间wsdl文件坏了,但现在一切似乎都好了


希望这能有所帮助

对不起,我对这个wsdl有问题:““”工作正常
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
from suds.client import Client

client = Client('http://api.didww.com/api/index.php?wsdl', cache=None)

print client
Suds ( https://fedorahosted.org/suds/ )  version: 0.4 GA  build: R699-20100913

Service ( DID World Wide ) tns="urn:didww"
Prefixes (2)
  ns0 = "http://schemas.xmlsoap.org/soap/encoding/"
  ns1 = "urn:didww"
Ports (1):
  (DID World WidePort)
     Methods (11):

    buildmapping(xs:string auth_string, xs:int did_id,   xs:string map_proto,s:string map_uri, xs:int add_did, )
        change_mapping(xs:string auth_string, xs:string did_number, xs:string map_proto, xs:string map_uri, xs:int add_did, )
        did_cancel(xs:string auth_string, xs:string did_number, )
        get_did_details(xs:string auth_string, xs:string did_number, )
        get_region_details(xs:string auth_string, xs:string uniq, )
        getcities(xs:string auth_string, xs:int country_id, )
        getcountries(xs:string auth_string, )
        new_order_renew(xs:string auth_string, xs:string did_number, xs:int period, xs:int autorenew, )
        neworder(xs:string auth_string, xs:string hashkey, xs:string uniq, xs:int autorenew, xs:int period, )
        order_autorenew_status(xs:string auth_string, xs:string did_number, xs:int status, )
        order_cancel(xs:string auth_string, xs:string did_number, )
     Types (55):
        ns0:Array
        CitiesArray
        City
        CountriesArray
        Country
        DID
        DID_data
        ns0:ENTITIES
        ns0:ENTITY
        ns0:ID
        ns0:IDREF
        ns0:IDREFS
        ns0:NCName
        ns0:NMTOKEN
        ns0:NMTOKENS
        ns0:NOTATION
        ns0:Name
        ns0:QName
        Region
        ns0:Struct
        ns0:anyURI
        ns0:arrayCoordinate
        ns0:base64
        ns0:base64Binary
        ns0:boolean
        ns0:byte
        ns0:date
        ns0:dateTime
        ns0:decimal
        ns0:double
        ns0:duration
        ns0:float
        ns0:gDay
        ns0:gMonth
        ns0:gMonthDay
        ns0:gYear
        ns0:gYearMonth
        ns0:hexBinary
        ns0:int
        ns0:integer
        ns0:language
        ns0:long
        ns0:negativeInteger
        ns0:nonNegativeInteger
        ns0:nonPositiveInteger
        ns0:normalizedString
        ns0:positiveInteger
        ns0:short
        ns0:string
        ns0:time
        ns0:token
        ns0:unsignedByte
        ns0:unsignedInt
        ns0:unsignedLong
        ns0:unsignedShort