Object to String conversion issue
| From: | Galbreath, Mark A | Date: | Wed, 07 Apr 2004 18:26:20 +0000 |
| Subject: | Object to String conversion issue | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1482@lists.php.net to get a copy of this message | ||
Alls,
I am attempting a simple tutorial for PEAR SOAP in which a simple web
service is created and accessed from the command line client:
$endpoint = 'http://10.12.12.138/webservices/sales.php';
$customer = new SOAP_Client( $endpoint );
$method = 'onsale';
$int1 = ( integer ) $argv[ 0 ];
$int2 = ( integer ) $argv[ 1 ];
$params = array( 'lowprice' => $int1, 'highprice' => $int2 );
$ans = $customer -> call( $method, $params );
printf( $ans );
When "10 100" are submitted as the argv[] array, what gets printed to the
console is:
Object
when my service class method only returns strings. Somebody please clue me?
tia,
Mark