Home > Backend Development > PHP Tutorial > webservice有关问题,soap有关问题,响应有关问题-求大神!大神在哪

webservice有关问题,soap有关问题,响应有关问题-求大神!大神在哪

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-17 08:22:49
Original
1004 people have browsed it

webservice问题,soap问题,响应问题-求大神!大神在哪?
怎样判断请求的GetInfo没有给出响应?

<br />$soap = new SoapClient(“http://xxxxxxxxxWSDL”);<br />$xml = $soap->GetInfo($param);<br />
Copy after login

假设我的参数都对,怎么判断webservice没有做出响应?没有给我返回我要的数据?
------解决思路----------------------
try {<br />  $soap = new SoapClient("http://......?WSDL");<br />  $param = array();<br />  $xml = $soap->GetInfo($param);<br />} catch (Exception $e) {<br />  echo $e->getMessage(); //如果出现错误,都会到达这里<br />}
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template