webservice有两个同名的方法,php要怎么调用(请不吝赐教) 问题是这样的,调用对法接口发现有两个同名的service方法,调用的时候就会报错:Exception occurred while trying to invoke service method service,使用$client->__getFunctions()查看发现这个服务上有两个同名的service方法,wsdl文件上看只是binding不一样,请问改如何调用这个service方法呢,急! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Exception occurred while trying to invoke service method service 问题是会报这个错误 调不了 调用代码是这样:$client = new SoapClient("http://114.255.29.204:7135/SaveService?wsdl",array('soap_version'=> SOAP_1_2));$data=array( "UserCode"=>"G4L@123", "Password"=>"G4@123", "SystemCode"=>"GJL", "RequestType"=>"01", "ProposalNo"=>"910022017310089000041", "InsuredName"=>"664", "InsuredIdentityType"=>"01", "InsuredIdentityNo"=>"02", )$res=$client->service($data); 同一个方法会出错吧看看是不是service那边问题。 我用java调用是可以的 把wsdl改了试试。估计wsdl写错了。 wsdl地址有IP绑定,你们访问不了,两个service方法就是binding不一样 wsdl地址不会有错 我只是随便写了 不方便全部贴出地址 用java可以 用php识别出来是两个方法出错:Exception occurred while trying to invoke service method service 求伪静态一个 不知道怎么写了 php 生成图片。中文显示乱码 点击页面上的链接 URL传递参数写数据库 如何防止 投票作弊 各位都给我点意见咯,有关于学习PHP...... sql语句问题 php 能否实现这样的全局变量? 关于“相关链接”已贴出概略设计。现在又遇到了个难题:如何从标题中自动提取关键字? 寻最优算法~~~~~~~~ php中对数据库进行插入数据操作返回null值 绝大多数都是外国人网站访问,服务器应该怎么配置? Windows+Apache+PHP+MySQL的学习思路是什么?有好的框架吗?
$client = new SoapClient("http://114.255.29.204:7135/SaveService?wsdl",array('soap_version'=> SOAP_1_2));
$data=array(
"UserCode"=>"G4L@123",
"Password"=>"G4@123",
"SystemCode"=>"GJL",
"RequestType"=>"01",
"ProposalNo"=>"910022017310089000041",
"InsuredName"=>"664",
"InsuredIdentityType"=>"01",
"InsuredIdentityNo"=>"02",
)
$res=$client->service($data);
看看是不是service那边问题。
估计wsdl写错了。