用 mongosoft\soapclient 擴展web
實例:vim
$webservice = new Client([
'url' => 'http://xxxx?wsdl',
]);
$xmlResult = $webservice->LoginCheck([
'key'=>'value', //config
]);url
LoginCheck 是接口的方法spa
錯誤:SOAP-ERROR: Parsing WSDL: Couldn't load fromxml
我這個錯誤是 本機的認不得他的域名接口
首先ping 他的域名(不要http(s)://) 知道他的IP ,而後給加增長個主機 vim /etc/hosts 增長一條 : ip 域名ip
就能夠了webservice