note 55363 added to ref.soap

From: Date: Mon, 01 Aug 2005 13:04:24 +0000
Subject: note 55363 added to ref.soap
Groups: php.notes 
Request: Send a blank email to php-notes+get-92865@lists.php.net to get a copy of this message
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. ---- Submitter IP: 64.246.30.37 ---- Manual Page -- http://www.php.net/manual/en/ref.soap.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55363 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55363&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55363&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55363&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55363&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55363&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55363&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55363&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92865) next »