如何修改 WSDL 文件并将其传递给 SOAP 请求

How to modify WSDL file and pass the same to SOAP request

我想修改 WSDL 文件,说里面的 "soap:address" 元素。

<service name="SessionCreateRQService">
   <port name="SessionCreatePortType" binding="tns:SessionCreateSoapBinding">
       <soap:address location="https://webservices.sabre.com"/>
   </port>
</service>

完成后,在 SOAP 请求调用期间传递修改后的 WSDL 文件。

谢谢

终于找到了。

您需要做的就是在进行客户端调用时将位置作为参数传递。

Client(URL, location='https://sws-crt.cert.sabre.com/')

无需编辑 WSDL 文件