Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SubmissionController.php
- //somecode
- $modelFile = new SubmissionFiles;
- if(isset($_POST['SubmissionFiles']))
- {
- $phpLiveDocx = new ZendServiceLiveDocxMailMerge;
- $phpLiveDocx->setUsername('**********')
- ->setPassword('**********');
- $phpLiveDocx->setRemoteTemplate('template.docx');
- //some code
- #AbstractLiveDocx
- // some code
- protected function initSoapClient($endpoint)
- {
- $this->soapClient = new SoapClient();
- $this->soapClient = new SoapClient(null,
- array('uri' => "https://api.livedocx.com/2.1/mailmerge.asmx?wsdl",
- 'location' => "http://localhost:80",
- ));
- $this->soapClient->setWsdl($endpoint);
- }
- // some code
- #0
- C:wampwwwpublicationssrcwebprotectedvendorzendframeworkzendservice-livedocxlibraryZendServiceLiveDocxMailMerge.php(153): ZendServiceLiveDocxAbstractLiveDocx->logIn()
- public function setRemoteTemplate($filename)
- {
- $this->logIn();
- try {
- $this->getSoapClient()->SetRemoteTemplate(array(
- 'filename' => $filename,
- ));
- #1
- –
- C:wampwwwpublicationssrcwebprotectedcontrollersSubmissionController.php(83): ZendServiceLiveDocxMailMerge->setRemoteTemplate("template.docx")
- $phpLiveDocx = new ZendServiceLiveDocxMailMerge;
- $phpLiveDocx->setUsername('*********')
- ->setPassword('*********');
- $phpLiveDocx->setRemoteTemplate('template.docx');
- $modelFile->attributes=$_POST['SubmissionFiles'];
- $uploadedFile=CUploadedFile::getInstance($modelFile,'doc');
- $this->logIn();
- $phpLiveDocx->setRemoteTemplate('template.docx');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement