note 55363 deleted from ref.soap by victor
| From: | victor@php.net | Date: | Tue, 16 Aug 2005 15:29:11 +0000 |
| Subject: | note 55363 deleted from ref.soap by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93748@lists.php.net to get a copy of this message | ||
Note Submitter: anish at kcc dot edu dot np
----
SOAP worked great in cases when the data type is primitive. But i have faced a problem when the data
type is object.
I have 2 classes.
1. class A
2. Class Conn
Class Conn goes like this.
<?
Class Conn
{
// some vars
function Conn()
{
// make connection
}
function connect()
{
// return connection to database
}
} // end of class Conn
?>
Class A goes like this
<?
class A
{
// some vars
var $conn; // $conn is an object
var $id
function A($conn,$id)
{
// perform some operation
$this->__dispatch_map['getStatus'] =
array('in' => array(),
'out' => array('status' => 'boolean'),
);
}
function getStatus()
{
// return the status of id
}
} // end of class A
//required for creating web service
$server = new SOAP_Server();
$connect=new Conn;
$conn=$connect->connect();
$webservice = new Category($conn,1);
............................
...........
?>
I am not able to get the correct output as i have desired. It returns an object. (like, Object id #
9).
How can i solve this problem?
Helps are much appreciated.