使用 Savon 2.0 发出 SOAP 请求,我得到一个带有错误字符串Internal Error (from client)
env:Client
错误代码:
D, [2020-06-09T05:37:51.323537 #8] DEBUG -- : HTTPI TLSv1_2/none POST request to REDACTED (httpclient)
I, [2020-06-09T05:37:51.370053 #8] INFO -- : SOAP response (status 500)
D, [2020-06-09T05:37:51.370636 #8] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<env:Fault>
<faultcode>env:Client</faultcode>
<faultstring>Internal Error (from client)</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
请求本身格式正确,并包含所有必要的请求参数。
WSDL 定义了sequence
元素,而 SOAP 错误是因为请求中参数的顺序与定义的顺序不一致。
https://w3schools.com/xml/el_sequence.asp
就我而言,这是因为错误的肥皂操作网址。