Php 对的SOAP调用出错http://onepointdemo.myfarebox.com/V2/OnePoint.svc

Php 对的SOAP调用出错http://onepointdemo.myfarebox.com/V2/OnePoint.svc,php,web-services,wsdl,postman,Php,Web Services,Wsdl,Postman,我有来自的SOAP代码 帐号 帐户密码 测试 帐户\用户名 但是使用邮递员我得到了这个错误 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <s:Fault> <faultcode xmlns:a="http://schemas.microsoft.com/

我有来自的SOAP代码


帐号
帐户密码
测试
帐户\用户名
但是使用邮递员我得到了这个错误

 <s:Envelope      xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">     
     <s:Body>     
         <s:Fault>     
             <faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode>     
             <faultstring xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter      mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and           receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same      contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring>
         </s:Fault>
     </s:Body>
 </s:Envelope>

答:行动不受支持
由于EndpointDispatcher上的ContractFilter不匹配,无法在接收器上处理具有操作“”的消息。这可能是因为合同不匹配(发送方和接收方之间的操作不匹配)或发送方和接收方之间的绑定/安全不匹配。检查发送方和接收方是否具有相同的合同和相同的绑定(包括安全要求,例如消息、传输、无)。
所以我在stackoverflow和其他博客上读了一些例子,我得到了这段代码

但它给出了这个错误

致命错误:SOAP-error:解析WSDL:在中找不到 "在 /var/www/api/index.php,第4行

我不熟悉SOAP,它似乎根本不起作用。

最后一个错误

致命错误:SOAP-error:解析WSDL:在中找不到

"在 /var/www/api/index.php,第4行

在您的代码中,您应该通过向URL添加
?wsdl
来指向wsdl:

$wsdl = http://onepointdemo.myfarebox.com/V2/OnePoint.svc?wsdl

你能用SOAP和邮递员界面上的请求图片更新这个问题吗?
$wsdl = http://onepointdemo.myfarebox.com/V2/OnePoint.svc?wsdl