library/ServiceCaller.php
protected function callRemoteService($serviceName)
    {
        if (!self::$servicesCopied) {
            self::$servicesCopied = true;
            $this->copyServicesToShop();
        }

        $oCurl = new Curl();

        $this->setParameter('service', $serviceName);

        $oCurl->setUrl($this->getTestConfig()->getShopUrl() . '/Services/service.php');
        $oCurl->setParameters($this->getParameters());

        $sResponse = $oCurl->execute();

        if ($oCurl->getStatusCode() >= 300) {
            $sResponse = $oCurl->execute();
        }

        return $this->unserializeResponse($sResponse);
    }
protected function callRemoteService($serviceName)
    {
        if (!self::$servicesCopied) {
            self::$servicesCopied = true;
            $this->copyServicesToShop();
        }

        $oCurl = new Curl();

        $this->setParameter('service', $serviceName);

        $oCurl->setUrl($this->getTestConfig()->getShopUrl() . '/Services/service.php');
        $oCurl->setParameters($this->getParameters());

        $sResponse = $oCurl->execute();

        if ($oCurl->getStatusCode() >= 300) {
            $sResponse = $oCurl->execute();
        }

        return $this->unserializeResponse($sResponse);
    }
protected function callRemoteService ( $ serviceName ) { if ( ! self :: $ servicesCopied ) { self :: $ servicesCopied = true ; $ this -> copyServicesToShop ( ) ; } $ oCurl = new Curl ( ) ; $ this -> setParameter ( 'service' , $ serviceName ) ; $ oCurl -> setUrl ( $ this -> getTestConfig ( ) -> getShopUrl ( ) . '/Services/service.php' ) ; $ oCurl -> setParameters ( $ this -> getParameters ( ) ) ; $ sResponse = $ oCurl -> execute ( ) ; if ( $ oCurl -> getStatusCode ( ) >= 300 ) { $ sResponse = $ oCurl -> execute ( ) ; } return $ this -> unserializeResponse ( $ sResponse ) ; }
Calls service on remote server.

@param string $serviceName

@throws \Exception

@return string
Calls service on remote server .