Guys,
if anyone call help me here...i am using this sample service and it
works fine for me but if you see i am using intUserID and intParentID
as class variables.
now when i called the init method they are set what ever i send them
through the params.but when i try to call the getUser function on the
client it gives me null values ,what i think here that SCA is not
supporting the class variable at all ,so if a new function is called
after init ,i cant get the updated public class variables values?
this is serious and need help...look at the below code..
/**
* @service
* @binding.soap
*/
class CommonServices
{
/**
* @var int
*/
public $intUserID;
/**
* @var int
*/
public $intParentID;
/**
* @param int $pUserID
* @param int $pParentID
* @return boolean "
*/
public function init($pUserID,$pParentID)
{
//Setting Class based variables
$this->intUserID=$pUserID;
$this->intParentID=$pParentID;
return false;
}
/**
* @param string $pOption
* @return string "
*/
public function getUser($pOption){
return $this->intUserID.",".$this->intParentID;
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"phpsoa" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---