Home > php教程 > php手册 > php soap 调用获取返回信息

php soap 调用获取返回信息

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-25 16:43:11
Original
1097 people have browsed it

php soap 调用获取返回信息,trace soap message,获取 soap返回信息,代码如下:

<?php 
   $ws = "http://www.phprm.com/sd/2001/temperatureservice.wsdl"; 
   $zipcode = "23590"; 
   $client = new soapclient($ws,array(&#39;trace&#39; => 1)); 
   $temperature = $client->gettemp($zipcode); 
   echo htmlspecialchars($client->__getlastrequest()); 
?>
Copy after login

得到函数原型从wsd,代码如下:

<?php 
   $ws = "http://www.www.phprm.com/sd/2001/temperatureservice.wsdl"; 
   $client = new soapclient($ws); 
   var_dump($client->__getfunctions()); 
?>
Copy after login
<?php 
   $ws = "http://www.phprm.com/sd/2001/temperatureservice.wsdl"; 
   $zipcode = "12312"; 
   $client = new soapclient($ws,array(&#39;trace&#39; => 1)); 
   $temperature = $client->gettemp($zipcode); 
   echo htmlspecialchars($client->__getlastresponse()); 
?>
Copy after login


本文地址:

转载随意,但请附上文章地址:-)

Related labels:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template