目前,我的基于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的自然要求?
发布于 2020-04-27 17:57:17
在应用程序规范中指定“soft”验证而不是“lxml”允许请求不需要列出特定的名称空间。
application = Application( [API],
tns = soap_namespace,
in_protocol=Soap11(validator='soft'),
out_protocol=Soap11())https://stackoverflow.com/questions/61383645
复制相似问题