我有一个 WSDL 链接.使用nusoap如何沟通?我的代码中出了什么问题


I have a WSDL link.Using nusoap how can i communicate? what is wrong in my Code?

http://tunnel.nno.dk/NNService/1.0/NNService.wsdl

这是 wsdl 链接。我正在使用努肥皂

require_once('nusoap/lib/nusoap.php');
$wsdl="http://tunnel.nno.dk/NNService/1.0/NNService.wsdl";
$client=new soapclient($wsdl, 'wsdl');
$param=array('phone' => '99999999','username' => 'test');
$result = $client->call('lookupSubscribers', $param);

我的代码中有什么问题?它不起作用。我只是在验证我的电话号码。

我收到此错误消息

<errorMessage xsi:type="xsd:string"> not access this service from IP (176.9.60.16) with the username () </ errorMessage>

但是IP地址不是问题,因为使用soap ui它可以工作..但是使用Nusoap它不起作用。我的代码出了什么问题。

找到了....

错误=>

$param=array('phone' => '99999999','username' => 'test'); 

右=>

$param= '<Question_1 xsi:type="typ:SearchQuestion" xmlns:typ="tunnel.nno.dk/NNService/1.0/Types"><phone xsi:type="xsd:string">999999999</phone><username xsi:type="xsd:string">test</username></Question_1>'; 

现在它工作得很好。我必须以XML格式传递.....