php wsdl错误:由于EndpointDispatcher上的AddressFilter不匹配,无法在接收方处理带有To'的消息 [英] php wsdl error:The message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher

查看:278
本文介绍了php wsdl错误:由于EndpointDispatcher上的AddressFilter不匹配,无法在接收方处理带有To'的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<?php
header("Content-type: text/html; charset=utf-8");
$client = new SoapClient('http://183.63.194.18:2000/TTS/Services/CodeService.svc?wsdl',array('soap_version' => SOAP_1_2));
$actionHeader = new SoapHeader('http://www.w3.org/2005/08/addressing',
                           'Action',
                           'http://tempuri.org/ICodeService/GetCodeBatches');
$client->__setSoapHeaders($actionHeader);
echo '<xmp>';
echo "提供的方法\n";
print_r( $client->__getFunctions ()); 
echo "相关的数据结构\n";
print_r($client->__getTypes () ); 
echo '</xmp>';
$parameters = array( "codeId" => "208x6XBJ140000080" );
//$res = $client->__call('GetCodeBatches',array( 'codeId' => $parameters));
$res = $client->__call('GetCodeBatches',array('parameters' => $parameters));
//$res = $client->GetCodeBatches($parameters);
print_r($res);
?>





这是我的代码,我我是一个新的专家;



当我运行此代码时,它抛出一个错误是致命错误:未捕获的SoapFault异常:[s:发件人]带有To的消息 '由于EndpointDispatcher上的AddressFilter不匹配,无法在接收方处理。



检查发送方和接收方的EndpointAddresses是否同意



D:\ wamp \ #\\\test.php:20堆栈跟踪:#0 D:\ wamp \\\test.php(20):SoapClient-> __调用('GetCodeBatches',数组)在第20行的D:\ wamp \\\ test.php中抛出#1 {main}



我没有想法如何解决,请帮助我,谢谢。



This is my code,I am a new phper;

When I run this code,it throw a error is "Fatal error: Uncaught SoapFault exception: [s:Sender] The message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher.

Check that the sender and receiver's EndpointAddresses agree in

D:\wamp\www\test.php:20 Stack trace: #0 D:\wamp\www\test.php(20): SoapClient->__call('GetCodeBatches', Array) #1 {main} thrown in D:\wamp\www\test.php on line 20"

I have no idea how to solve it,please help me,thanks.

推荐答案

客户 = SoapClient(' http://183.63.194.18:2000/TTS/Services/CodeService.svc?wsdl',array(' soap_version' => SOAP_1_2));
client = new SoapClient('http://183.63.194.18:2000/TTS/Services/CodeService.svc?wsdl',array('soap_version' => SOAP_1_2));


actionHeader = new SoapHeader(' http://www.w3.org/2005/08/addressing'
' Action'
' < span class =code-string> http://tempuri.org/ICodeService/GetCodeBatches');
actionHeader = new SoapHeader('http://www.w3.org/2005/08/addressing', 'Action', 'http://tempuri.org/ICodeService/GetCodeBatches');


client-> __ setSoapHeaders(
client->__setSoapHeaders(


这篇关于php wsdl错误:由于EndpointDispatcher上的AddressFilter不匹配,无法在接收方处理带有To'的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆