Пример #1
0
 /**
  * Instance constructor. Contains a hard-coded CH XMLGW URL and additional
  * schema location.  Adds a channel route identifying the use of this
  * extension.
  *
  * @param string $govTalkSenderId GovTalk sender ID.
  * @param string $govTalkPassword GovTalk password.
  */
 public function __construct($govTalkSenderId, $govTalkPassword)
 {
     parent::__construct('http://xmlgw.companieshouse.gov.uk/v1-0/xmlgw/Gateway', $govTalkSenderId, $govTalkPassword);
     $this->setSchemaLocation('http://xmlgw.companieshouse.gov.uk/v1-1/schema/Egov_ch-v2-0.xsd');
     $this->setSchemaValidation(false);
     $this->setMessageAuthentication('alternative');
     $this->setMessageQualifier('request');
 }
Пример #2
0
 /**
  * Instance constructor. Contains a hard-coded CH XMLGW URL and additional
  * schema location.  Adds a channel route identifying the use of this
  * extension.
  *
  * @param string $govTalkSenderId GovTalk sender ID.
  * @param string $govTalkPassword GovTalk password.
  * @param string $service The service to use ('tpvs', 'vsips', or 'live').
  */
 public function __construct($govTalkSenderId, $govTalkPassword, $service = 'live')
 {
     switch ($service) {
         case 'tpvs':
             parent::__construct('https://www.tpvs.hmrc.gov.uk/HMRC/VATDEC', $govTalkSenderId, $govTalkPassword);
             $this->setTestFlag(true);
             break;
         case 'vsips':
             parent::__construct('https://secure.dev.gateway.gov.uk/submission', $govTalkSenderId, $govTalkPassword);
             $this->setTestFlag(true);
             break;
         default:
             parent::__construct('https://secure.gateway.gov.uk/submission', $govTalkSenderId, $govTalkPassword);
             break;
     }
     $this->setMessageAuthentication('clear');
 }
Пример #3
0
 /**
  * Instance constructor. Simply passes the arguments on to the main GovTalk
  * GovTalk constructor. Anything clever should be done in at the level above
  * this.
  *
  * @param string $govTalkServer GovTalk server URL.
  * @param string $govTalkSenderId GovTalk sender ID.
  * @param string $govTalkPassword GovTalk password.
  */
 public function __construct($govTalkServer, $govTalkSenderId, $govTalkPassword)
 {
     parent::__construct($govTalkServer, $govTalkSenderId, $govTalkPassword);
 }