因为是调用接口,对方说是方法使用有问题,请问有遇到过此问题的同学麻烦指导指导,第一次使用这个方法,百度各种都不好使 $client = new SoapClient('http://xxx:8017/BaseInfoService.svc?wsdl'); $client->SendSalesLeads(json_encode($data)); SendSalesLeads 为对方提供的方法,要求传入 json 数据;
1
starsriver 2019-07-18 20:54:02 +08:00 via Android
官方方法
$client = new SoapClient("some.wsdl", array( 'login' => "some_name", 'password' => "some_password" )); |
2
tmf4ck 2019-07-18 20:57:58 +08:00
$client = new SoapClient('http://xxx:8017/BaseInfoService.svc?wsdl');
$param = array('servername' => $this->_serverName, 'appkey' => $this->_appKey, 'xml' => $xmlData); $result = $client->__soapCall(SendSalesLeads, array('parameters' => $param)); print_r($result->SendSalesLeadsResult); |