public function getCompanyInfo()
    {
        $currentServiceContext = $this->getServiceContext();
        if (!isset($currentServiceContext) || empty($currentServiceContext->realmId)) {
            throw new SdkException("Please Setup Service Context before making get CompanyInfo call.");
        }
        //The CompanyInfo URL
        $uri = implode(CoreConstants::SLASH_CHAR, array('company', $currentServiceContext->realmId, 'companyinfo', $currentServiceContext->realmId));
        $requestParameters = new RequestParameters($uri, 'GET', CoreConstants::CONTENTTYPE_APPLICATIONXML, null);
        $restRequestHandler = $this->getRestHandler();
        list($responseCode, $responseBody) = $restRequestHandler->sendRequest($requestParameters, null, null, $this->isThrownExceptionOnError());
        $faultHandler = $restRequestHandler->getFaultHandler();
        //$faultHandler now is true or false
        if ($faultHandler) {
            $this->lastError = $faultHandler;
            return null;
        } else {
            $this->lastError = false;
            $parsedResponseBody = $this->getResponseSerializer()->Deserialize($responseBody, true);
            return $parsedResponseBody;
        }
    }
public function getCompanyInfo()
    {
        $currentServiceContext = $this->getServiceContext();
        if (!isset($currentServiceContext) || empty($currentServiceContext->realmId)) {
            throw new SdkException("Please Setup Service Context before making get CompanyInfo call.");
        }
        //The CompanyInfo URL
        $uri = implode(CoreConstants::SLASH_CHAR, array('company', $currentServiceContext->realmId, 'companyinfo', $currentServiceContext->realmId));
        $requestParameters = new RequestParameters($uri, 'GET', CoreConstants::CONTENTTYPE_APPLICATIONXML, null);
        $restRequestHandler = $this->getRestHandler();
        list($responseCode, $responseBody) = $restRequestHandler->sendRequest($requestParameters, null, null, $this->isThrownExceptionOnError());
        $faultHandler = $restRequestHandler->getFaultHandler();
        //$faultHandler now is true or false
        if ($faultHandler) {
            $this->lastError = $faultHandler;
            return null;
        } else {
            $this->lastError = false;
            $parsedResponseBody = $this->getResponseSerializer()->Deserialize($responseBody, true);
            return $parsedResponseBody;
        }
    }
public function getCompanyInfo ( ) { $ currentServiceContext = $ this -> getServiceContext ( ) ; if ( ! isset ( $ currentServiceContext ) || empty ( $ currentServiceContext -> realmId ) ) { throw new SdkException ( "Please Setup Service Context before making get CompanyInfo call." ) ; } //The CompanyInfo URL $ uri = implode ( CoreConstants :: SLASH_CHAR , array ( 'company' , $ currentServiceContext -> realmId , 'companyinfo' , $ currentServiceContext -> realmId ) ) ; $ requestParameters = new RequestParameters ( $ uri , 'GET' , CoreConstants :: CONTENTTYPE_APPLICATIONXML , null ) ; $ restRequestHandler = $ this -> getRestHandler ( ) ; list ( $ responseCode , $ responseBody ) = $ restRequestHandler -> sendRequest ( $ requestParameters , null , null , $ this -> isThrownExceptionOnError ( ) ) ; $ faultHandler = $ restRequestHandler -> getFaultHandler ( ) ; //$faultHandler now is true or false if ( $ faultHandler ) { $ this -> lastError = $ faultHandler ; return null ; } else { $ this -> lastError = false ; $ parsedResponseBody = $ this -> getResponseSerializer ( ) -> Deserialize ( $ responseBody , true ) ; return $ parsedResponseBody ; } }
Get the Company Information
@return IPPCompanyInfo   CompanyInformation
Get the Company Information