Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. #SubmissionController.php
  2. //somecode
  3. $modelFile = new SubmissionFiles;
  4. if(isset($_POST['SubmissionFiles']))
  5. {
  6. $phpLiveDocx = new ZendServiceLiveDocxMailMerge;
  7. $phpLiveDocx->setUsername('**********')
  8. ->setPassword('**********');
  9. $phpLiveDocx->setRemoteTemplate('template.docx');
  10. //some code
  11.  
  12. #AbstractLiveDocx
  13. // some code
  14. protected function initSoapClient($endpoint)
  15. {
  16. $this->soapClient = new SoapClient();
  17. $this->soapClient = new SoapClient(null,
  18. array('uri' => "https://api.livedocx.com/2.1/mailmerge.asmx?wsdl",
  19. 'location' => "http://localhost:80",
  20. ));
  21.  
  22. $this->soapClient->setWsdl($endpoint);
  23. }
  24. // some code
  25.  
  26. #0
  27.  
  28. C:wampwwwpublicationssrcwebprotectedvendorzendframeworkzendservice-livedocxlibraryZendServiceLiveDocxMailMerge.php(153): ZendServiceLiveDocxAbstractLiveDocx->logIn()
  29.  
  30. public function setRemoteTemplate($filename)
  31. {
  32. $this->logIn();
  33.  
  34. try {
  35. $this->getSoapClient()->SetRemoteTemplate(array(
  36. 'filename' => $filename,
  37. ));
  38.  
  39. #1
  40. C:wampwwwpublicationssrcwebprotectedcontrollersSubmissionController.php(83): ZendServiceLiveDocxMailMerge->setRemoteTemplate("template.docx")
  41.  
  42. $phpLiveDocx = new ZendServiceLiveDocxMailMerge;
  43. $phpLiveDocx->setUsername('*********')
  44. ->setPassword('*********');
  45. $phpLiveDocx->setRemoteTemplate('template.docx');
  46. $modelFile->attributes=$_POST['SubmissionFiles'];
  47. $uploadedFile=CUploadedFile::getInstance($modelFile,'doc');
  48.  
  49. $this->logIn();
  50.  
  51. $phpLiveDocx->setRemoteTemplate('template.docx');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement