在此wsdl中 https://sslegaltest.solutiondocondemand.com/SolutionDoc/Service_SolutionDoc_Main.asmx?wsdl 这些方法:
- SolutionDOC_EliminaDocumento
- 解决方案DOC_EliminaDocumentoControllaPermessi
在soapui中获得了相同的名字
,当使用python zeep或suds-py3 enter link description here时,您调用方法 SolutionDOC_EliminaDocumento ,库将调用 SolutionDOC_EliminaDocumentoControllaPermessi
,如果您调用 SolutionDOC_EliminaDocumentoControllaPermessi ,则会得到“未定义的方法”。
我想调用方法的 SolutionDOC_EliminaDocumento 版本
h3。我尝试过的
我试图做
suds_client.service.SolutionDOC_EliminaDocumento.method.soap.action = "http://tempuri.org/SolutionDOC_EliminaDocumento"
为了强制更改操作,
但使用
print(suds_client.last_sent())
我了解客户端一直在发送SolutionDOC_EliminaDocumentoControllaPermessi而不是SolutionDOC_EliminaDocumento所需的架构
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://tempuri.org/">
<SOAP-ENV:Header/>
<ns0:Body>
<ns1:SolutionDOC_EliminaDocumentoControllaPermessi>
<ns1:Alias_Utente>IT2019001QA</ns1:Alias_Utente>
<ns1:Password>b'73694D795D3C4B98BAD54116ABA0A102'</ns1:Password>
<ns1:idUtente>59671</ns1:idUtente>
<ns1:idDocumenti>
<ns1:anyType>148928</ns1:anyType>
</ns1:idDocumenti>
<ns1:controllaPermessi/>
<ns1:eliminaSoloFileFisico/>
</ns1:SolutionDOC_EliminaDocumentoControllaPermessi>
</ns0:Body>
</SOAP-ENV:Envelope>
如何更改肥皂方法的作用?