Object to String conversion issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux