src/icepay_api_webservice.php
public function setupClient()
    {
        /* Return if already set */
        if ($this->client)
            return $this;

        /* Set the options for the SOAP request */
        $sslContext = array(
            'ssl' => array(
                'allow_self_signed' => false,
                'verify_peer' => false /* Temporary fix */
            )
        );

        $soapArguments = array(
            'location' => $this->service,
            'encoding' => 'UTF-8',
            'cache_wsdl' => 'WSDL_CACHE_NONE',
            'stream_context' => stream_context_create($sslContext)
        );

        /* Start a new client */
        $this->client = new SoapClient($this->service, $soapArguments);

        /* Client configuration */
        $this->client->soap_defencoding = "utf-8";

        return $this;
    }
public function setupClient()
    {
        /* Return if already set */
        if ($this->client)
            return $this;

        /* Set the options for the SOAP request */
        $sslContext = array(
            'ssl' => array(
                'allow_self_signed' => false,
                'verify_peer' => false /* Temporary fix */
            )
        );

        $soapArguments = array(
            'location' => $this->service,
            'encoding' => 'UTF-8',
            'cache_wsdl' => 'WSDL_CACHE_NONE',
            'stream_context' => stream_context_create($sslContext)
        );

        /* Start a new client */
        $this->client = new SoapClient($this->service, $soapArguments);

        /* Client configuration */
        $this->client->soap_defencoding = "utf-8";

        return $this;
    }
public function setupClient ( ) { /* Return if already set */ if ( $ this -> client ) return $ this ; /* Set the options for the SOAP request */ $ sslContext = array ( 'ssl' => array ( 'allow_self_signed' => false , 'verify_peer' => false /* Temporary fix */ ) ) ; $ soapArguments = array ( 'location' => $ this -> service , 'encoding' => 'UTF-8' , 'cache_wsdl' => 'WSDL_CACHE_NONE' , 'stream_context' => stream_context_create ( $ sslContext ) ) ; /* Start a new client */ $ this -> client = new SoapClient ( $ this -> service , $ soapArguments ) ; /* Client configuration */ $ this -> client -> soap_defencoding = "utf-8" ; return $ this ; }
Make connection with the soap client

@since 2.1.0
@access public
@return \Icepay_Webservice_Base
Make connection with the soap client