I am trying a simple web service in php,soap and wsdl using Nusoap toolkit . The sum function is correctly registered at server.php and the web service is already created however, to consume the service using client.php it shows the following error message:
Notice: Array to string conversion in C:\wamp\www\my\client.php on line 6. Thank you for sharing your experience.
service.php
<?php
function sum($number1,$number2)
{
$result= $number1+$number2;
return $result;
}
?>
client.php
<?php
require('lib/nusoap.php');
$client=new nusoap_client("http://localhost/my/server.php?wsdl");
$value1=200;
$value2=300;
$result=$client->call('sum',array('number1'=>"$value1",'number2'=>"$value2"));
echo $result;
?>