0

我想知道soapAction(url)是什么,如果它给出如下:

<soap:operation soapAction="urn:technicalGetData" style="document"/>

即:瓮:技术获取数据

无法获取响应并出现错误

string(56) "<faultstring>Failed to submit the response</faultstring>"

我正在使用 post 方法。

请指导,

谢谢

更新:(客户端调用部分)

curl_setopt($ch, CURLOPT_URL, 'http://blablabla/service');

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml; charset=utf-8','SOAPAction: technicalGetData'));

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_VERBOSE, 1); // 1 = for debugging purpose & 0 = production

curl_setopt($ch, CURLOPT_POSTFIELDS, $soaprequest);

$output = curl_exec($ch);
4

0 回答 0