Home >Backend Development >PHP Tutorial >webservice问题,soap问题,响应问题-求大神!大神在哪?
怎样判断请求的GetInfo没有给出响应?
$soap = new SoapClient(“http://xxxxxxxxxWSDL”);$xml = $soap->GetInfo($param);
?其他??了??
?其他??了??
?其他??了??
怎样判断请求的GetInfo没有给出响应?
$soap = new SoapClient(“http://xxxxxxxxxWSDL”);$xml = $soap->GetInfo($param);
try { $soap = new SoapClient("http://......?WSDL"); $param = array(); $xml = $soap->GetInfo($param);} catch (Exception $e) { echo $e->getMessage(); //如果出现错误,都会到达这里}
try { $soap = new SoapClient("http://......?WSDL"); $param = array(); $xml = $soap->GetInfo($param);} catch (Exception $e) { echo $e->getMessage(); //如果出现错误,都会到达这里}
try { $soap = new SoapClient("http://......?WSDL"); $param = array(); $xml = $soap->GetInfo($param);} catch (Exception $e) { echo $e->getMessage(); //如果出现错误,都会到达这里}
怎样判断请求的GetInfo没有给出响应?
$soap = new SoapClient(“http://xxxxxxxxxWSDL”);$xml = $soap->GetInfo($param);
怎样判断请求的GetInfo没有给出响应?
$soap = new SoapClient(“http://xxxxxxxxxWSDL”);$xml = $soap->GetInfo($param);
try catch看看有什么问题。
try { $soap = new SoapClient("http://......?WSDL"); $param = array(); $xml = $soap->GetInfo($param);} catch (Exception $e) { echo $e->getMessage(); //如果出现错误,都会到达这里}谢谢,我就是这么干的。
怎样判断请求的GetInfo没有给出响应?
$soap = new SoapClient(“http://xxxxxxxxxWSDL”);$xml = $soap->GetInfo($param);
try { $soap = new SoapClient("http://......?WSDL"); $param = array(); $xml = $soap->GetInfo($param);} catch (Exception $e) { echo $e->getMessage(); //如果出现错误,都会到达这里}