http://tunnel.nno.dk/NNService/1.0/NNService.wsdl
This is the wsdl link.I am using nusoap
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);
What is wrong in my Code?It is not working. I am just validating my telephone no.
I am getting this error message
<errorMessage xsi:type="xsd:string"> not access this service from IP (176.9.60.16) with the username () </ errorMessage>
But the ipaddress is not a problem,because with soap ui it is working ..but with nusoap it is not working..What is wrong in my code.
Found it....
Wrong =>
$param=array('phone' => '99999999','username' => 'test');
Right =>
$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>';
Now it is working Great..I have to pass in Xml Format.....