PHP通过soap调用web服务

PHP开启soap扩展

$client = new \SoapClient(Config::get('wsadd'));

$params = array("txtIP" => $txtIP, "txtPort" => $txtPort, "bflag" => $bflag);

$response = $client->__soapCall("EnableUser", array($params));

$response->EnableUserResult

 

'wsadd' => 'http://localhost:2416/sts/WebService.asmx?WSDL'

 

posted @ 2018-05-31 15:53  亦星  阅读(180)  评论(0编辑  收藏  举报