/** * Constructor (LiveDocx.MailMerge SOAP Service) * * Optionally, pass an array of options (or Zend\Config\Config object). * * If an option with the key 'soapClient' is provided, that value will be * used to set the internal SOAP client used to connect to the LiveDocx * service. * * Use 'soapClient' in the case that you have a dedicated or (locally * installed) licensed LiveDocx server. For example: * * {code} * $mailMerge = new Zend\Service\LiveDocx\MailMerge( * array ( * 'username' => 'myUsername', * 'password' => 'myPassword', * 'soapClient' => new Zend\Soap\Client('https://api.example.com/path/mailmerge.asmx?WSDL') * ) * ); * {code} * * Replace the URI of the WSDL in the constructor of Zend_Soap_Client with * that of your dedicated or licensed LiveDocx server. * * If you are using the public LiveDocx server, simply pass 'username' and * 'password'. For example: * * {code} * $mailMerge = new Zend\Service\LiveDocx\MailMerge( * array ( * 'username' => 'myUsername', * 'password' => 'myPassword' * ) * ); * {code} * * If you prefer to not pass the username and password through the * constructor, you can also call the following methods: * * {code} * $mailMerge = new Zend\Service\LiveDocx\MailMerge(); * * $mailMerge->setUsername('myUsername') * ->setPassword('myPassword'); * {/code} * * Or, if you want to specify your own SoapClient: * * {code} * $mailMerge = new Zend\Service\LiveDocx\MailMerge(); * * $mailMerge->setUsername('myUsername') * ->setPassword('myPassword'); * * $mailMerge->setSoapClient( * new Zend\Soap\Client('https://api.example.com/path/mailmerge.asmx?WSDL') * ); * {/code} * * @param array|Zend\Config\Config $options * @return void * @throws LiveDocx\Exception * @since LiveDocx 1.0 */ public function __construct($options = null) { $this->_fieldValues = array(); $this->_blockFieldValues = array(); $this->setWSDL(self::WSDL); parent::__construct($options); }
/** * Constructor * * This component implements the LiveDocx.MailMerge SOAP Service * by Text Control GmbH). * * Optionally, pass an array of options (or \Zend\Config\Config object). * * If an option with the key 'soapClient' is provided, that value will be * used to set the internal SOAP client used to connect to the LiveDocx * service. * * Use 'soapClient' in the case that you have a dedicated or (locally * installed) licensed LiveDocx server. For example: * * {code} * $mailMerge = new \Zend\Service\LiveDocx\MailMerge(array ( * 'username' => 'myUsername', * 'password' => 'myPassword', * 'soapClient' => new \Zend\Soap\Client('https://api.example.com/path/mailmerge.asmx?WSDL'), * )); * {code} * * Replace the URI of the WSDL in the constructor of \Zend\Config\Config with * that of your dedicated or licensed LiveDocx server. * * If you are using the public LiveDocx service, simply pass 'username' and * 'password'. For example: * * {code} * $mailMerge = new \Zend\Service\LiveDocx\MailMerge(array ( * 'username' => 'myUsername', * 'password' => 'myPassword', * )); * {code} * * If you prefer to not pass the username and password through the * constructor, you can also call the following methods: * * {code} * $mailMerge = new \Zend\Service\LiveDocx\MailMerge(); * * $mailMerge->setUsername('myUsername') * ->setPassword('myPassword'); * {/code} * * Or, if you want to specify your own SoapClient: * * {code} * $mailMerge = new \Zend\Service\LiveDocx\MailMerge(); * * $mailMerge->setUsername('myUsername') * ->setPassword('myPassword'); * * $mailMerge->setSoapClient( * new \Zend\Soap\Client('https://api.example.com/path/mailmerge.asmx?WSDL') * ); * {/code} * * @param array|\Zend\Config\Config $options * @return void * @since LiveDocx 1.0 */ public function __construct($options = null) { $this->setWsdl(self::WSDL); parent::__construct($options); }