Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 1.18 KB

UPGRADE-3.0.md

File metadata and controls

43 lines (37 loc) · 1.18 KB

UPGRADE FROM 2.* to 3.*

The main change is that the property $soapClient in the abstract class AbstractSoapClientBase is no more static.

Previously:

class MyService extends AbstractSoapClientBase
{
    public function CreateQueue(\Api\StructType\ApiCreateQueue $body)
    {
        try {
            $this->setResult(self::getSoapClient()->CreateQueue($body));
            return $this->getResult();
        } catch (\SoapFault $soapFault) {
            $this->saveLastError(__METHOD__, $soapFault);
            return false;
        }
    }
}

self::getSoapClient() was used to access the SoapClient instance.

Now:

class MyService extends AbstractSoapClientBase
{
    public function CreateQueue(\Api\StructType\ApiCreateQueue $body)
    {
        try {
            $this->setResult($this->getSoapClient()->CreateQueue($body));
            return $this->getResult();
        } catch (\SoapFault $soapFault) {
            $this->saveLastError(__METHOD__, $soapFault);
            return false;
        }
    }
}

$this->getSoapClient() is now used to access the SoapClient instance.

The PackageBase version is now >= 2.0.