php调用java WebService 
java服务端方法getExecution("0303","2013-1-3")
参数都是字符串类型php客服端调用方法  $client->getExecution("1001","2013-1-3")服务端总是得不到 传递的参数,请高手帮忙解决。

解决方案 »

  1.   

    查看一下请求的xml是否符合格式
    $client->__getLastRequest();相关的函数还有getLastResponse等~
      

  2.   

    注意在new SoapClient第二个参数里,加上trace=>1,详细参看手册~
      

  3.   

    麻烦具体点了  我代码是 
    $client = new SoapClient('http://127.0.0.1:8080/myws/services/ReceiveProjectImplPort?wsdl');    
        $client->soap_defencoding = 'utf-8';
        $client->xml_encoding = 'utf-8';    $i=$client->getExecution("1001","2013-1-3","xiw")
      

  4.   

    无法显示 XML 页。 
    使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。 
    --------------------------------------------------------------------------------文档的顶层无效。处理资源 'http://zzsc/test.php' 时出错。第 1 行,位置: 434 <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" x...
      

  5.   

      <?xml version="1.0" encoding="utf-8" ?> 
    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <soapenv:Body>
    - <getExecutionResponse xmlns="http://webservice.moa.taiji.com/">
      <return xmlns="">nullnullnullnullnullnullnullnullnullnullnullnullnullnullnull</return> 
      </getExecutionResponse>
      </soapenv:Body>
      </soapenv:Envelope>
      

  6.   

    你PHP引用服务的地址 不要加.wsdl哦 检查你的XML文档, 可以尝试用c#去调用JAVA的试试,c#有工具生成调用代码
      

  7.   

    $i = $client->getExecution( array("1001","2013-1-3","xiw") );在 soap 中多个参数被声明为结构(对应php数组)具体结构要看 wsdl
    应该还需要键名,应从 wsdl 中获取