问题是这样的,调用对法接口发现有两个同名的service方法,调用的时候就会报错:Exception occurred while trying to invoke service method service,使用$client->__getFunctions()查看发现这个服务上有两个同名的service方法,wsdl文件上看只是binding不一样,请问改如何调用这个service方法呢,急!

解决方案 »

  1.   

    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);
      

  2.   

    同一个方法会出错吧
    看看是不是service那边问题。
      

  3.   

    我用java调用是可以的
      

  4.   

    把wsdl改了试试。
    估计wsdl写错了。
      

  5.   

    wsdl地址有IP绑定,你们访问不了,两个service方法就是binding不一样
      

  6.   

    wsdl地址不会有错 我只是随便写了 不方便全部贴出地址  用java可以 用php识别出来是两个方法出错:Exception occurred while trying to invoke service method service