【发布时间】:2022-08-17 17:00:30
【问题描述】:
Twinfield SOAP XML Web 服务返回以下错误,我们能否从 wsdl 中找到操作方法( https://api.accounting2.twinfield.com/webservices/finder.asmx?wsdl) 或者我应该给出什么操作方法?
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unable to handle request without a valid action parameter. Please supply a valid soap action.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
curl --location --request POST \'https://api.accounting2.twinfield.com/webservices/finder.asmx?wsdl\' \\
--header \'AccessToken: eyJ0eXAiOiJKV1QiLCJhbGciOiJ...\' \\
--header \'Content-Type: application/xml\' \\
--data-raw \' <soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:twin=\"http://www.twinfield.com/\">
<soapenv:Header>
<twin:Header> <twin:AccessToken>eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1Ni....</twin:AccessToken>
<twin:CompanyCode>
#####
</twin:CompanyCode>
</twin:Header>
</soapenv:Header>
<soapenv:Body>
<twin:ProcessXmlDocument>
<twin:xmlRequest><list xmlns=\"\"><type>offices</type></list></twin:xmlRequest>
</twin:ProcessXmlDocument>
</soapenv:Body>
</soapenv:Envelope>\'
标签: xml web-services soap twinfield