出现This service does not provide a Web description的提示

出现这种情况,第一,可能没定义命名空间。第二,没有创建客户端。

$server->configureWSDL(<webservicename>, <namespace>);

nusoap定义客户端。

<?php
// Pull in the NuSOAP code
require_once('lib/nusoap.php');
// Create the client instance
$client = new nusoap_client('your server url'); // using nosoap_client
// Call the SOAP method
$result = $client->call('hello', array('name' => 'Pingu'));
// Display the result
print_r($result)
?>

猜你喜欢

转载自blog.csdn.net/u010261924/article/details/80340422