Hello all, I am new to php, currently I am trying to use php to collect data from .net web services.
I have problems when I try to send string as parameter to my .net web service in php.No problem at all if I use nusoap, but I failed by using php5 soap. Can anyone help.. 😕 😕 😕
I've got this msg :
Fatal error: Uncaught SoapFault exception: [soap:Server] Server was unable to process request. --> Object reference not set to an instance of an object. in c:\Inetpub\wwwroot\PHPproject\clientPHP.php:38 Stack trace: #0 [internal function]: SoapClient->__call('test', Array) #1 c:\Inetpub\wwwroot\PHPproject\clientPHP.php(38): SoapClient->test(Array) #2 {main} thrown in c:\Inetpub\wwwroot\PHPproject\clientPHP.php on line 38
this is my code:
$client = new SoapClient("..........");
$params = array();
$params = array( 'license' => 'xxxxxxx', 'queryID' => 'Q0001', 'name' => 'Test', );
$result = $client->test($params);
foreach ($result->Details AS $product)
{
echo "Model = " . $product->MODEL . "<br>";
echo "Unit = " . $product->UNIT . "<br>";
echo "Price = " . $product->PRICE . "<br>";
echo "MESSAGE = " . $product->MESSAGE . "<br>";
}
please help...Thanks..