获取服务类型
Get service types
将 Client
实例作为 client
我可以执行 print client
并获取 Client 对象的字符串表示形式,即:
Suds ( https://fedorahosted.org/suds/ ) version: 0.4 GA build: R699-20100913
Service ( RoutingService ) tns="http://tempuri.org/"
Prefixes (11)
ns0 = "http://schemas.datacontract.org/2004/07/Microsoft.Dynamics.AX.Framework.Services"
ns1 = "http://schemas.microsoft.com/2003/10/Serialization/"
ns2 = "http://schemas.microsoft.com/2003/10/Serialization/Arrays"
ns3 = "http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKey"
ns4 = "http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKeyList"
ns5 = "http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria"
ns6 = "http://schemas.microsoft.com/dynamics/2008/01/documents/Fault"
ns7 = "http://schemas.microsoft.com/dynamics/2008/01/documents/LTExchCurrency"
ns8 = "http://schemas.microsoft.com/dynamics/2008/01/sharedtypes"
ns9 = "http://schemas.microsoft.com/dynamics/2010/01/datacontracts"
ns10 = "http://tempuri.org"
Ports (2):
(serviceEndpoint)
Methods (0):
Types (2949):
ns6:AifFault
ns6:ArrayOfFaultMessage
ns6:ArrayOfFaultMessageList
ns0:ArrayOfInfologMessage
...
我想知道如何在不手动重新解析此字符串的情况下在 Python 对象中获取类型命名空间?
例如 ns6
代表 AifFault
类型。
怎么样:
print client.wsdl.tns
将 Client
实例作为 client
我可以执行 print client
并获取 Client 对象的字符串表示形式,即:
Suds ( https://fedorahosted.org/suds/ ) version: 0.4 GA build: R699-20100913
Service ( RoutingService ) tns="http://tempuri.org/"
Prefixes (11)
ns0 = "http://schemas.datacontract.org/2004/07/Microsoft.Dynamics.AX.Framework.Services"
ns1 = "http://schemas.microsoft.com/2003/10/Serialization/"
ns2 = "http://schemas.microsoft.com/2003/10/Serialization/Arrays"
ns3 = "http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKey"
ns4 = "http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKeyList"
ns5 = "http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria"
ns6 = "http://schemas.microsoft.com/dynamics/2008/01/documents/Fault"
ns7 = "http://schemas.microsoft.com/dynamics/2008/01/documents/LTExchCurrency"
ns8 = "http://schemas.microsoft.com/dynamics/2008/01/sharedtypes"
ns9 = "http://schemas.microsoft.com/dynamics/2010/01/datacontracts"
ns10 = "http://tempuri.org"
Ports (2):
(serviceEndpoint)
Methods (0):
Types (2949):
ns6:AifFault
ns6:ArrayOfFaultMessage
ns6:ArrayOfFaultMessageList
ns0:ArrayOfInfologMessage
...
我想知道如何在不手动重新解析此字符串的情况下在 Python 对象中获取类型命名空间?
例如 ns6
代表 AifFault
类型。
怎么样:
print client.wsdl.tns