【发布时间】:2020-04-23 09:20:46
【问题描述】:
目前,我基于 Spyne 的 WSGI 应用程序为如下请求生成 XSD:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aso="asoapns">
<soapenv:Header/>
<soapenv:Body>
<aso:findSpace>
<aso:Volume>?</aso:Volume>
<aso:Area>?</aso:Area>
<aso:Atmosphere>?</aso:Atmosphere>
<aso:Location>?</aso:Location>
</aso:findSpace>
</soapenv:Body>
</soapenv:Envelope>
是否可以在没有命名空间的情况下指定输入参数?即例如:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aso="asoapns">
<soapenv:Header/>
<soapenv:Body>
<aso:findSpace>
<Volume>?</Volume>
<Area>?</Area>
<Atmosphere>?</Atmosphere>
<Location>?</Location>
</aso:findSpace>
</soapenv:Body>
</soapenv:Envelope>
或者这是 SOAP API 的自然要求?
【问题讨论】:
标签: python web-services soap xsd spyne