Example #1
0
 /**
  * Simple getter from API sessions's variables
  * @param $paramName
  * @return string
  */
 public function getValue($paramName)
 {
     $headers = array(new \SoapHeader('http://www.w3.org/2005/08/addressing', 'Action', $this->_getMethodUrl('GetValue'), 0), new \SoapHeader('http://www.w3.org/2005/08/addressing', 'To', $this->_getServiceUrl(), 0));
     $this->__setSoapHeaders($headers);
     $result = parent::GetValue(array('pNazwaParametru' => $paramName));
     return trim($result->GetValueResult);
 }