Invoking LiveCycle API methods using PHP WebService


hello experts

 

has experience in invoking lc es3 api methods using php webservice?

i chiefly interested in method (renderpdfform think…) render pdf form merging xdp template , corresponding xml data inside browser.

please note prefer avoid writing java code. following:

 

1. setup lc es3 server (with minimal number of modules) serve pdf rendering service merging xdp templates corresponding xml data. reader extend rendered pdf forms (presumably need purchase additionally reader extensions module) users able save data locally prior submitting data server.

 

2. create web application (php backend). application allow users download forms (reader extended pdfs) onto pcs. when user request download of particular form want use php webservice call livecycle server , render (merging template existing data, if applicable) form reader extending it.

 

has got experience in such setup? have found 1 example of such code (i yet try it) did not find documentation on adobe website. examples have found involved coding in java (which avoid).

 

i considering setting php java bridge can call java code php methods. having said that, i'd rather keep simple possible, hence use webservices instead. problem there virtually no examples such integration.

 

i appreciate help/suggestions.

 

regards

michael

i have managed authenticate , consume webservice did not far in terms of getting results method renderpdfform. think there wrong input parameters.

 

my test case if follows:

 

1) xdp template c:\users\michael\desktop\loanapplication\loanapplication.xdp

2) xml data c:\users\michael\desktop\loanapplication\loanapplication.xml

 

i trying merge these 2 calling method renderpdfform (utilizing webservice of module formsservice).

ideally not store templates inside livecycle store them in application using livecycle server rendering engine , reader extensions issuer.

 

i have created following array in php:

 

array(5) {   ["formquery"]=>   string(19) "loanapplication.xdp"   ["indatadoc"]=>   array(1) {     ["remoteurl"]=>     string(60) "c:\users\michael\desktop\loanapplication\loanapplication.xml"   }   ["pdfformrenderspec"]=>   array(6) {     ["cacheenabled"]=>     string(4) "true"     ["locale"]=>     string(5) "en_us"     ["xmldata"]=>     string(4) "true"     ["linearizedpdf"]=>     string(5) "false"     ["standalone"]=>     string(5) "false"     ["taggedpdf"]=>     string(5) "false"   }   ["urlspec"]=>   array(3) {     ["applicationwebroot"]=>     string(33) "http://localhost/loanapplication/"     ["contentrooturi"]=>     string(41) "c:\users\michael\desktop\loanapplication\"     ["targeturl"]=>     string(0) ""   }   ["attachments"]=>   null } 

 

and passing when calling method renderpdfform. sadly, getting error not able decipher:

 

soapfault exception: [soapenv:server.userexception] javax.ejb.ejbexception: runtimeexception in c:\program files (x86)\zend\apache2\htdocs\loanapplication\index.php:33 stack trace: #0 c:\program files (x86)\zend\apache2\htdocs\loanapplication\index.php(33): soapclient->__call('renderpdfform', array) #1 c:\program files (x86)\zend\apache2\htdocs\loanapplication\index.php(33): soapclient->renderpdfform(array) #2 {main} 

 

can me make sense out of message? perhaps need setup trace more information. how can that?

 

can advise me if going in right direction? perhaps should storing these templates inside livecycle repository after all. please note not want use livecycle interface. need create whole new application (both frontend , backend) around lc, using lc rendering engine , reader extensions issuer (as mentioned).

 

any help/advice appreciated.

 

regards

michael



More discussions in LiveCycle APIs


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support