khurrum
2008-02-11 12:41:13 UTC
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;
}
}
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;
}
}