php使用NuSoap产生webservice结合WSDL让asp.net调用(32)
来源:未知 责任编辑:责任编辑 发表时间:2014-01-20 07:53 点击:次
	   
	
						相似的, WSDL 客户端不需要使用 soapval 指定参数的名称和数据类型,演示代码如下: 
						<?php
						// Pull in the NuSOAP code
						require_once('nusoap.php');
						// Create the client instance
						$client = new soapclient('http://localhost/phphack/hellowsdl2.php?wsdl', true);
						// Check for an error
						$err = $client->getError();
						if ($err) {
						// Display the error
						echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
						// At this point, you know the call that follows will fail
						}
						// Call the SOAP method
						$person = array('firstname' => 'Willi', 'age' => 22, 'gender' => 'male');
	
相关新闻>>
- 发表评论
 - 
				
 
- 最新评论 进入详细评论页>>
 





![smarty局部缓存技术[源码分析]](/uploads/allimg/130827/11214T939-0-lp.jpg)