本文整理汇总了Python中SOAPpy.SOAPProxy.namespace方法的典型用法代码示例。如果您正苦于以下问题:Python SOAPProxy.namespace方法的具体用法?Python SOAPProxy.namespace怎么用?Python SOAPProxy.namespace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SOAPpy.SOAPProxy
的用法示例。
在下文中一共展示了SOAPProxy.namespace方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: SOAPProxy
# 需要导入模块: from SOAPpy import SOAPProxy [as 别名]
# 或者: from SOAPpy.SOAPProxy import namespace [as 别名]
#############################################################################
from SOAPpy import SOAPProxy
from SOAPpy import Types
url = 'http://localhost:8180/mondrian/xmla'
n= 'urn:schemas-microsoft-com:xml-analysis'
server = SOAPProxy(url,n)
# if you want to see the SOAP message exchanged
# uncomment the two following lines
server.config.dumpSOAPOut = 1
#server.config.dumpSOAPIn = 1
server.namespace='ns1'
server.Discover({'ns1:RequestType':Types.untypedType('MDSCHEMA_CUBES')})
###
### Genera la peticion
# <?xml version="1.0" encoding="UTF-8"?>
# <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
# <SOAP-ENV:Body>
# <ns1:Discover xmlns:ns1="ns1" SOAP-ENC:root="1">
# <v1>
# <ns1:RequestType>MDSCHEMA_CUBES</ns1:RequestType>
# </v1>
# </ns1:Discover>
# </SOAP-ENV:Body>
# </SOAP-ENV:Envelope>