<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Connecting to a Web Service</title>
	<atom:link href="http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<lastBuildDate>Fri, 12 Mar 2010 02:03:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Manish</title>
		<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/comment-page-2/#comment-63125</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Sun, 27 Dec 2009 20:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/#comment-63125</guid>
		<description>I had found another way of achieving the above where i&#039;m only using the javascript(i.e. No Data connection wizard).


form1.#subform[0].Button1[0]::click – (JavaScript, client)

var myDoc= event.target;
myDoc.importDataObject(”file”);

--------------


 form1.#subform[0].Button1[0]::click - (JavaScript, client)
///
var myDoc= event.target;
var con = myDoc.getDataObjectContents(&quot;file&quot;);
var myProxy = SOAP.connect(&quot;http://10.10.129.176:8080/soap/services/Webservices?wsdl&quot;);
var myObject = {soapType: &quot;SOAP-ENC:base64&quot; ,soapAttachment: true,soapValue: con};
var result = myProxy.invoke({doc:myObject}); 
console.println(&quot;Result is &quot; + result); 
-----------------------------------------------
&quot;doc&quot; refer to the variable used in workbench an a input variable of type document.
&quot;invoke&quot; is a method in it.
However if try to do the same for input type varibles (xsd:int) or (xsd:string) by making any other services then it works fine.

However, when i try to attach the document then i get the following error in acroabt debeggur:
SOAPError: No such operation &#039;invoke&#039;
SOAP.request:1:XFA:form1[0]:#subform[0]:Button1[0]:click

above error comes if change the type from soapType: &quot;SOAP-ENC:base64&quot; to &quot;impl:BLOB&quot;

Further i removed soapAttachment: true from myObject and i got the following error:

SOAPError: The input BLOB object should have attachmentID, remoteURL, or binaryData field specified.
SOAP.request:1:XFA:form1[0]:#subform[0]:Button1[0]:click
 
which gives me a sense that almost everything here is fine but somewhere somethings is missing.

Kindly suggest.

Regards,
Manish</description>
		<content:encoded><![CDATA[<p>I had found another way of achieving the above where i&#8217;m only using the javascript(i.e. No Data connection wizard).</p>
<p>form1.#subform[0].Button1[0]::click – (JavaScript, client)</p>
<p>var myDoc= event.target;<br />
myDoc.importDataObject(”file”);</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p> form1.#subform[0].Button1[0]::click &#8211; (JavaScript, client)<br />
///<br />
var myDoc= event.target;<br />
var con = myDoc.getDataObjectContents(&#8220;file&#8221;);<br />
var myProxy = SOAP.connect(&#8220;http://10.10.129.176:8080/soap/services/Webservices?wsdl&#8221;);<br />
var myObject = {soapType: &#8220;SOAP-ENC:base64&#8243; ,soapAttachment: true,soapValue: con};<br />
var result = myProxy.invoke({doc:myObject});<br />
console.println(&#8220;Result is &#8221; + result);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8220;doc&#8221; refer to the variable used in workbench an a input variable of type document.<br />
&#8220;invoke&#8221; is a method in it.<br />
However if try to do the same for input type varibles (xsd:int) or (xsd:string) by making any other services then it works fine.</p>
<p>However, when i try to attach the document then i get the following error in acroabt debeggur:<br />
SOAPError: No such operation &#8216;invoke&#8217;<br />
SOAP.request:1:XFA:form1[0]:#subform[0]:Button1[0]:click</p>
<p>above error comes if change the type from soapType: &#8220;SOAP-ENC:base64&#8243; to &#8220;impl:BLOB&#8221;</p>
<p>Further i removed soapAttachment: true from myObject and i got the following error:</p>
<p>SOAPError: The input BLOB object should have attachmentID, remoteURL, or binaryData field specified.<br />
SOAP.request:1:XFA:form1[0]:#subform[0]:Button1[0]:click</p>
<p>which gives me a sense that almost everything here is fine but somewhere somethings is missing.</p>
<p>Kindly suggest.</p>
<p>Regards,<br />
Manish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/comment-page-2/#comment-63117</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Sun, 27 Dec 2009 16:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/#comment-63117</guid>
		<description>Hi ALL,

In LiveCycle 8.2.1 , i had created a wokkflow to convert a document to PDF and storing it to some location on the server itself( by using writedata operation).
work fine for watch folder end point( to confirm that there is no errors in workflow)

Now, i had one input type variable inDoc(as Document)

i want to send the attached document in PDF file through WSDL to the LiveCycle server by creating Data Connection in Designer (http://servername:port/soap/services/[servicename]?wsdl).

Now i had attach the document( .txt for example) by following command in button&#039;s click event:

form1.#subform[0].Button1[0]::click - (JavaScript, client)

var myDoc= event.target;
myDoc.importDataObject(&quot;file&quot;);

in data connection i see four text fields  for input document ( contentType,BinaryData,attachmentID,remoteURL) dragged only contentType and BinaryData TextFields on the page.


also dragged the invoke button (invokeBtn) which is now in invisible mode.

i used the following script to retrive the data form the attachment and try to send it to livecycle input variable(indoc). 

form1.#subform[0].Button1[1]::click - (JavaScript, client)

var myDoc= event.target;
var con = myDoc.getDataObjectContents(&quot;file&quot;);
var cFile = util.stringFromStream(con , &quot;utf-8&quot;);
// assigning data to textfield dragged form data connection
binaryData.rawValue=cFile;


invokeBtn.execEvent(&quot;click&quot;);

Before excuting the above command i had supplied value for contentType as well to &#039;application/msword&#039;.

Now i went back to the workbench and saw (in recordings) that document had been recieved from the pdf file as mentioned above.
However, as you can noticed that i had converted the binary data to simple string before sending it to server, so the characters in the document are altogether diffrent( as it would be treating it a binary data and converting them again to some different format)
i did so as i was unable to send the binary stream directly using binaryData(since its  a textfield and we can&#039;t assign binary data to it.)

However, i&#039;m getting the following error:

2009-12-27 22:11:37,043 INFO  [org.apache.axis.EXCEPTIONS] AxisFault:
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace:ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
	at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.transientInvoke(WorkflowDSCInvoker.java:367)
	at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:157)
	at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)
	at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTransactionCMTAdapterBean.java:342)


Kindly suggest me on it as i had to send the attachment from the PDF file as an input variable using LiveCycle WSDL.

Regards,
Manish</description>
		<content:encoded><![CDATA[<p>Hi ALL,</p>
<p>In LiveCycle 8.2.1 , i had created a wokkflow to convert a document to PDF and storing it to some location on the server itself( by using writedata operation).<br />
work fine for watch folder end point( to confirm that there is no errors in workflow)</p>
<p>Now, i had one input type variable inDoc(as Document)</p>
<p>i want to send the attached document in PDF file through WSDL to the LiveCycle server by creating Data Connection in Designer (<a href="http://servername:port/soap/services/servicename?wsdl" rel="nofollow">http://servername:port/soap/services/servicename?wsdl</a>).</p>
<p>Now i had attach the document( .txt for example) by following command in button&#8217;s click event:</p>
<p>form1.#subform[0].Button1[0]::click &#8211; (JavaScript, client)</p>
<p>var myDoc= event.target;<br />
myDoc.importDataObject(&#8220;file&#8221;);</p>
<p>in data connection i see four text fields  for input document ( contentType,BinaryData,attachmentID,remoteURL) dragged only contentType and BinaryData TextFields on the page.</p>
<p>also dragged the invoke button (invokeBtn) which is now in invisible mode.</p>
<p>i used the following script to retrive the data form the attachment and try to send it to livecycle input variable(indoc). </p>
<p>form1.#subform[0].Button1[1]::click &#8211; (JavaScript, client)</p>
<p>var myDoc= event.target;<br />
var con = myDoc.getDataObjectContents(&#8220;file&#8221;);<br />
var cFile = util.stringFromStream(con , &#8220;utf-8&#8243;);<br />
// assigning data to textfield dragged form data connection<br />
binaryData.rawValue=cFile;</p>
<p>invokeBtn.execEvent(&#8220;click&#8221;);</p>
<p>Before excuting the above command i had supplied value for contentType as well to &#8216;application/msword&#8217;.</p>
<p>Now i went back to the workbench and saw (in recordings) that document had been recieved from the pdf file as mentioned above.<br />
However, as you can noticed that i had converted the binary data to simple string before sending it to server, so the characters in the document are altogether diffrent( as it would be treating it a binary data and converting them again to some different format)<br />
i did so as i was unable to send the binary stream directly using binaryData(since its  a textfield and we can&#8217;t assign binary data to it.)</p>
<p>However, i&#8217;m getting the following error:</p>
<p>2009-12-27 22:11:37,043 INFO  [org.apache.axis.EXCEPTIONS] AxisFault:<br />
AxisFault<br />
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException<br />
 faultSubcode:<br />
 faultString: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.<br />
 faultActor:<br />
 faultNode:<br />
 faultDetail:<br />
	{http://xml.apache.org/axis/}stackTrace:ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.<br />
	at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.transientInvoke(WorkflowDSCInvoker.java:367)<br />
	at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:157)<br />
	at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)<br />
	at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTransactionCMTAdapterBean.java:342)</p>
<p>Kindly suggest me on it as i had to send the attachment from the PDF file as an input variable using LiveCycle WSDL.</p>
<p>Regards,<br />
Manish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/comment-page-2/#comment-63116</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Sun, 27 Dec 2009 16:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/#comment-63116</guid>
		<description>Hi ALL,

In LiveCycle 8.2.1 , i had created a wokkflow to convert a document to PDF and storing it to some location on the server itself( by using writedata operation).
work fine for watch folder end point( to confirm that there is no errors in workflow)

Now, i had one input type variable inDoc(as Document)

i want to send the attached document in PDF file through WSDL to the LiveCycle server by creating Data Connection in Designer (http://servername:port/soap/services/[servicename]?wsdl).

Now i had attach the document( .txt for example) by following command in button&#039;s click event:

form1.#subform[0].Button1[0]::click - (JavaScript, client)

var myDoc= event.target;
myDoc.importDataObject(&quot;file&quot;);

in data connection i see four text fields  for input document ( contentType,BinaryData,attachmentID,remoteURL) dragged only contentType and BinaryData TextFields on the page.


also dragged the invoke button (invokeBtn) which is now in invisible mode.

i used the following script to retrive the data form the attachment and try to send it to livecycle input variable(indoc). 

form1.#subform[0].Button1[1]::click - (JavaScript, client)

var myDoc= event.target;
var con = myDoc.getDataObjectContents(&quot;file&quot;);
var cFile = util.stringFromStream(con , &quot;utf-8&quot;);
// assigning data to textfield dragged form data connection
binaryData.rawValue=cFile;


invokeBtn.execEvent(&quot;click&quot;);

Before excuting the above command i had supplied value for contentType as well to &#039;application/msword&#039;.

Now i went back to the workbench and saw (in recordings) that document had been recieved from the pdf file as mentioned above.
However, as you can noticed that i had converted the binary data to simple string before sending it to server, so the characters in the document are altogether diffrent( as it would be treating it a binary data and converting them again to some different format)
i did so as i was unable to send the binary stream directly using binaryData(since its  a textfield and we can&#039;t assign binary data to it.)

However, i&#039;m getting the following error:
java.lang.NullPointerException
	at com.adobe.pdfg.GeneratePDFImpl.createPDFCommon(GeneratePDFImpl.java:373)
	at com.adobe.pdfg.GeneratePDFImpl.createPDF2(GeneratePDFImpl.java:143)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)
	at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)
	at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doBMT(EjbTransactionBMTAdapterBean.java:197)
	at sun.reflect.GeneratedMethodAccessor310.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
	at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
	at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
	at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
	at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
	at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
	at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:158)
	at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
	at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
	at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
	at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
	at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
	at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
	at org.jboss.ejb.Container.invoke(Container.java:873)
	at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
	at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
	at $Proxy194.doBMT(Unknown Source)
	at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvider.java:95)
	at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInterceptor.java:72)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStrategyInterceptor.java:55)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateInterceptor.java:37)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterceptor.java:132)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
	at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
	at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:91)
	at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:215)
	at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:57)
	at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
	at com.adobe.workflow.engine.PEUtil.invokeAction(PEUtil.java:724)
	at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.transientInvoke(WorkflowDSCInvoker.java:346)
	at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:157)
	at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)
	at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTransactionCMTAdapterBean.java:342)
	at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doRequiresNew(EjbTransactionCMTAdapterBean.java:284)
	at sun.reflect.GeneratedMethodAccessor246.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
	at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
	at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
	at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
	at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
	at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
	at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
	at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:389)
	at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
	at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
	at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
	at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
	at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
	at org.jboss.ejb.Container.invoke(Container.java:873)
	at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
	at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
	at $Proxy193.doRequiresNew(Unknown Source)
	at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvider.java:143)
	at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInterceptor.java:72)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStrategyInterceptor.java:55)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateInterceptor.java:37)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterceptor.java:132)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
	at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
	at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
	at com.adobe.idp.dsc.provider.impl.soap.axis.AdobeAxisServiceProvider.invokeMethod(AdobeAxisServiceProvider.java:222)
	at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
	at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
	at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java:43)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
	at java.lang.Thread.run(Thread.java:595)



Kindly suggest me on it as i had to send the attachment from the PDF file as an input variable using LiveCycle WSDL.

Regards,
Manish</description>
		<content:encoded><![CDATA[<p>Hi ALL,</p>
<p>In LiveCycle 8.2.1 , i had created a wokkflow to convert a document to PDF and storing it to some location on the server itself( by using writedata operation).<br />
work fine for watch folder end point( to confirm that there is no errors in workflow)</p>
<p>Now, i had one input type variable inDoc(as Document)</p>
<p>i want to send the attached document in PDF file through WSDL to the LiveCycle server by creating Data Connection in Designer (<a href="http://servername:port/soap/services/servicename?wsdl" rel="nofollow">http://servername:port/soap/services/servicename?wsdl</a>).</p>
<p>Now i had attach the document( .txt for example) by following command in button&#8217;s click event:</p>
<p>form1.#subform[0].Button1[0]::click &#8211; (JavaScript, client)</p>
<p>var myDoc= event.target;<br />
myDoc.importDataObject(&#8220;file&#8221;);</p>
<p>in data connection i see four text fields  for input document ( contentType,BinaryData,attachmentID,remoteURL) dragged only contentType and BinaryData TextFields on the page.</p>
<p>also dragged the invoke button (invokeBtn) which is now in invisible mode.</p>
<p>i used the following script to retrive the data form the attachment and try to send it to livecycle input variable(indoc). </p>
<p>form1.#subform[0].Button1[1]::click &#8211; (JavaScript, client)</p>
<p>var myDoc= event.target;<br />
var con = myDoc.getDataObjectContents(&#8220;file&#8221;);<br />
var cFile = util.stringFromStream(con , &#8220;utf-8&#8243;);<br />
// assigning data to textfield dragged form data connection<br />
binaryData.rawValue=cFile;</p>
<p>invokeBtn.execEvent(&#8220;click&#8221;);</p>
<p>Before excuting the above command i had supplied value for contentType as well to &#8216;application/msword&#8217;.</p>
<p>Now i went back to the workbench and saw (in recordings) that document had been recieved from the pdf file as mentioned above.<br />
However, as you can noticed that i had converted the binary data to simple string before sending it to server, so the characters in the document are altogether diffrent( as it would be treating it a binary data and converting them again to some different format)<br />
i did so as i was unable to send the binary stream directly using binaryData(since its  a textfield and we can&#8217;t assign binary data to it.)</p>
<p>However, i&#8217;m getting the following error:<br />
java.lang.NullPointerException<br />
	at com.adobe.pdfg.GeneratePDFImpl.createPDFCommon(GeneratePDFImpl.java:373)<br />
	at com.adobe.pdfg.GeneratePDFImpl.createPDF2(GeneratePDFImpl.java:143)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
	at java.lang.reflect.Method.invoke(Method.java:585)<br />
	at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)<br />
	at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)<br />
	at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doBMT(EjbTransactionBMTAdapterBean.java:197)<br />
	at sun.reflect.GeneratedMethodAccessor310.invoke(Unknown Source)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
	at java.lang.reflect.Method.invoke(Method.java:585)<br />
	at org.jboss.invocation.Invocation.performCall(Invocation.java:345)<br />
	at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)<br />
	at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)<br />
	at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)<br />
	at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)<br />
	at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)<br />
	at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:158)<br />
	at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)<br />
	at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)<br />
	at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)<br />
	at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)<br />
	at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)<br />
	at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)<br />
	at org.jboss.ejb.Container.invoke(Container.java:873)<br />
	at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)<br />
	at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)<br />
	at $Proxy194.doBMT(Unknown Source)<br />
	at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvider.java:95)<br />
	at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInterceptor.java:72)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStrategyInterceptor.java:55)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateInterceptor.java:37)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterceptor.java:132)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)<br />
	at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)<br />
	at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:91)<br />
	at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:215)<br />
	at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:57)<br />
	at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)<br />
	at com.adobe.workflow.engine.PEUtil.invokeAction(PEUtil.java:724)<br />
	at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.transientInvoke(WorkflowDSCInvoker.java:346)<br />
	at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:157)<br />
	at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)<br />
	at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTransactionCMTAdapterBean.java:342)<br />
	at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doRequiresNew(EjbTransactionCMTAdapterBean.java:284)<br />
	at sun.reflect.GeneratedMethodAccessor246.invoke(Unknown Source)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
	at java.lang.reflect.Method.invoke(Method.java:585)<br />
	at org.jboss.invocation.Invocation.performCall(Invocation.java:345)<br />
	at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)<br />
	at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)<br />
	at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)<br />
	at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)<br />
	at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)<br />
	at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)<br />
	at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:389)<br />
	at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)<br />
	at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)<br />
	at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)<br />
	at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)<br />
	at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)<br />
	at org.jboss.ejb.Container.invoke(Container.java:873)<br />
	at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)<br />
	at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)<br />
	at $Proxy193.doRequiresNew(Unknown Source)<br />
	at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvider.java:143)<br />
	at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInterceptor.java:72)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStrategyInterceptor.java:55)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateInterceptor.java:37)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterceptor.java:132)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)<br />
	at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)<br />
	at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)<br />
	at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)<br />
	at com.adobe.idp.dsc.provider.impl.soap.axis.AdobeAxisServiceProvider.invokeMethod(AdobeAxisServiceProvider.java:222)<br />
	at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)<br />
	at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)<br />
	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)<br />
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)<br />
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)<br />
	at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)<br />
	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)<br />
	at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)<br />
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br />
	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)<br />
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)<br />
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br />
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />
	at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java:43)<br />
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)<br />
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br />
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)<br />
	at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)<br />
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)<br />
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)<br />
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)<br />
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)<br />
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)<br />
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<br />
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)<br />
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)<br />
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)<br />
	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)<br />
	at java.lang.Thread.run(Thread.java:595)</p>
<p>Kindly suggest me on it as i had to send the attachment from the PDF file as an input variable using LiveCycle WSDL.</p>
<p>Regards,<br />
Manish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/comment-page-2/#comment-61588</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 03 Dec 2009 17:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/#comment-61588</guid>
		<description>Jalal Mohtashami,

These are limitations imposed by Reader. If you knew all the users of your form(s) would have at least Acrobat Standard on their desktop, then you wouldn&#039;t have a need for LC Forms (for what you can do with server-side rendering) and/or RE (enabling various features in Reader that are basically considered too valuable to give away for free).

If you&#039;re looking for a programmatic workaround, then I would suggest something like the &lt;a href=&quot;http://forms.stefcameron.com/2006/10/20/using-url-requests-in-pdf-forms/&quot; rel=&quot;nofollow&quot;&gt;URL request&lt;/a&gt; tutorial I pointed you to (not secure, to say the least, but it works for an online form).</description>
		<content:encoded><![CDATA[<p>Jalal Mohtashami,</p>
<p>These are limitations imposed by Reader. If you knew all the users of your form(s) would have at least Acrobat Standard on their desktop, then you wouldn&#8217;t have a need for LC Forms (for what you can do with server-side rendering) and/or RE (enabling various features in Reader that are basically considered too valuable to give away for free).</p>
<p>If you&#8217;re looking for a programmatic workaround, then I would suggest something like the <a href="http://forms.stefcameron.com/2006/10/20/using-url-requests-in-pdf-forms/" rel="nofollow">URL request</a> tutorial I pointed you to (not secure, to say the least, but it works for an online form).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jalal Mohtashami</title>
		<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/comment-page-2/#comment-60717</link>
		<dc:creator>Jalal Mohtashami</dc:creator>
		<pubDate>Fri, 20 Nov 2009 22:24:27 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/#comment-60717</guid>
		<description>Sorry, let me correct my typing error:

 Regarding data binding, is this limitation also coming from the EULA of LiveCycle Designer or is it simply that these solutions are needed to facilitate the connection.

I ask because my manager is asking me to look into a programmatic work around of this limitation.</description>
		<content:encoded><![CDATA[<p>Sorry, let me correct my typing error:</p>
<p> Regarding data binding, is this limitation also coming from the EULA of LiveCycle Designer or is it simply that these solutions are needed to facilitate the connection.</p>
<p>I ask because my manager is asking me to look into a programmatic work around of this limitation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jalal Mohtashami</title>
		<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/comment-page-2/#comment-60715</link>
		<dc:creator>Jalal Mohtashami</dc:creator>
		<pubDate>Fri, 20 Nov 2009 22:22:13 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/#comment-60715</guid>
		<description>Okay, so I hate to ask because it feels like I&#039;m just asking the same question again.  I was checking the LiveCycle Forums and I read that for 2D Barcodes the limitation requiring LC Reader Extensions is in the EULA.  Regarding data binding, is this limitation also coming from the EULA of LiveCycle Designer or is it simply that these solutions are needed to connection

I ask because my manager asking me to look into a programmatic work around of this limitation.</description>
		<content:encoded><![CDATA[<p>Okay, so I hate to ask because it feels like I&#8217;m just asking the same question again.  I was checking the LiveCycle Forums and I read that for 2D Barcodes the limitation requiring LC Reader Extensions is in the EULA.  Regarding data binding, is this limitation also coming from the EULA of LiveCycle Designer or is it simply that these solutions are needed to connection</p>
<p>I ask because my manager asking me to look into a programmatic work around of this limitation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/comment-page-2/#comment-59865</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sun, 08 Nov 2009 23:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/#comment-59865</guid>
		<description>Jalal Mohtashami,

LC Forms ES can be used to import and export data into/from a form and this is done server-side. LC Reader Extensions ES is used to enable Reader to do this client-side which, by default, it cannot do.

The only thing Reader can do, without LC Forms in the background or a reader-enabled PDF, is submit XML data by &lt;a href=&quot;http://forms.stefcameron.com/2008/08/28/submitting-form-data-by-email/&quot; rel=&quot;nofollow&quot;&gt;email&lt;/a&gt; or &lt;a href=&quot;http://forms.stefcameron.com/2008/09/15/http-submit/&quot; rel=&quot;nofollow&quot;&gt;HTTP&lt;/a&gt;. That being said, there are ways, which aren&#039;t necessarily secure, to get data into Reader. &lt;a href=&quot;http://forms.stefcameron.com/2006/10/20/using-url-requests-in-pdf-forms/&quot; rel=&quot;nofollow&quot;&gt;This is one&lt;/a&gt; that I have explored.</description>
		<content:encoded><![CDATA[<p>Jalal Mohtashami,</p>
<p>LC Forms ES can be used to import and export data into/from a form and this is done server-side. LC Reader Extensions ES is used to enable Reader to do this client-side which, by default, it cannot do.</p>
<p>The only thing Reader can do, without LC Forms in the background or a reader-enabled PDF, is submit XML data by <a href="http://forms.stefcameron.com/2008/08/28/submitting-form-data-by-email/" rel="nofollow">email</a> or <a href="http://forms.stefcameron.com/2008/09/15/http-submit/" rel="nofollow">HTTP</a>. That being said, there are ways, which aren&#8217;t necessarily secure, to get data into Reader. <a href="http://forms.stefcameron.com/2006/10/20/using-url-requests-in-pdf-forms/" rel="nofollow">This is one</a> that I have explored.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jalal Mohtashami</title>
		<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/comment-page-2/#comment-59662</link>
		<dc:creator>Jalal Mohtashami</dc:creator>
		<pubDate>Fri, 06 Nov 2009 20:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/#comment-59662</guid>
		<description>This is probably pretty obvious but I just want to clarify.   LC Forms ES or LC Reader Extensions ES are only needed to import data from a server to a form, correct?  That is to say forms created in LC Designer can freely submit data using xml schema, web services or database connections, right?

If this is the case, is there a way for Reader users to receive a submission confirmation that would not require a reader extended form?

Thanks</description>
		<content:encoded><![CDATA[<p>This is probably pretty obvious but I just want to clarify.   LC Forms ES or LC Reader Extensions ES are only needed to import data from a server to a form, correct?  That is to say forms created in LC Designer can freely submit data using xml schema, web services or database connections, right?</p>
<p>If this is the case, is there a way for Reader users to receive a submission confirmation that would not require a reader extended form?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/comment-page-2/#comment-56509</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sun, 27 Sep 2009 14:09:53 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/#comment-56509</guid>
		<description>vlada,

First, it&#039;s not possible to programatically load XML data into a form due to security restrictions. If you could, you would do it with xfa.host.importData(file.xml) however this will not work unless the script executing this statement is &quot;trusted&quot; (which means it&#039;s in a special JavaScript folder on the user&#039;s system). Otherwise, you&#039;ll get the file picker dialog where the user can choose an XML file to load (or cancel the dialog altogether) -- assuming they&#039;re using Acrobat or the PDF has been extended, using &lt;a href=&quot;http://www.adobe.com/products/livecycle/readerextensions/&quot; rel=&quot;nofollow&quot;&gt;LiveCycle Reader Extensions&lt;/a&gt;, to permit &lt;a href=&quot;http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/&quot; rel=&quot;nofollow&quot;&gt;data import&lt;/a&gt; in Reader.

Using a web service is an alternative, as you can have a method on that service that returns an URL-encoded XML string which you can decode, using the JavaScript decode() function, and then load into the form&#039;s Data DOM. You could do this by &lt;a href=&quot;http://forms.stefcameron.com/2009/03/23/pre-process-web-service-responses/&quot; rel=&quot;nofollow&quot;&gt;pre-processing the web service response&lt;/a&gt;. That being said, you&#039;ll still run into problems doing this using Reader because the PDF will need to be extended to allow data import privileges using LiveCycle Reader Extensions.</description>
		<content:encoded><![CDATA[<p>vlada,</p>
<p>First, it&#8217;s not possible to programatically load XML data into a form due to security restrictions. If you could, you would do it with xfa.host.importData(file.xml) however this will not work unless the script executing this statement is &#8220;trusted&#8221; (which means it&#8217;s in a special JavaScript folder on the user&#8217;s system). Otherwise, you&#8217;ll get the file picker dialog where the user can choose an XML file to load (or cancel the dialog altogether) &#8212; assuming they&#8217;re using Acrobat or the PDF has been extended, using <a href="http://www.adobe.com/products/livecycle/readerextensions/" rel="nofollow">LiveCycle Reader Extensions</a>, to permit <a href="http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/" rel="nofollow">data import</a> in Reader.</p>
<p>Using a web service is an alternative, as you can have a method on that service that returns an URL-encoded XML string which you can decode, using the JavaScript decode() function, and then load into the form&#8217;s Data DOM. You could do this by <a href="http://forms.stefcameron.com/2009/03/23/pre-process-web-service-responses/" rel="nofollow">pre-processing the web service response</a>. That being said, you&#8217;ll still run into problems doing this using Reader because the PDF will need to be extended to allow data import privileges using LiveCycle Reader Extensions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vlada</title>
		<link>http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/comment-page-2/#comment-56156</link>
		<dc:creator>vlada</dc:creator>
		<pubDate>Wed, 23 Sep 2009 06:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/#comment-56156</guid>
		<description>Hi, sorry for wasting your time again. I need an advice. We have simple project:
- we have created PDF template (document)
- we have created XML data file
- we would like to use acrobat reader as a client
- it is possible to programatically load XML data into PDF without LifeCycle server? (for example using wsdl connection or better another trick which works without server - XML data connection???)
- the data are submitted back using http submit (it seems to work without problem)
Have a nice day
Ing. Vladimír Pravenec</description>
		<content:encoded><![CDATA[<p>Hi, sorry for wasting your time again. I need an advice. We have simple project:<br />
- we have created PDF template (document)<br />
- we have created XML data file<br />
- we would like to use acrobat reader as a client<br />
- it is possible to programatically load XML data into PDF without LifeCycle server? (for example using wsdl connection or better another trick which works without server &#8211; XML data connection???)<br />
- the data are submitted back using http submit (it seems to work without problem)<br />
Have a nice day<br />
Ing. Vladimír Pravenec</p>
]]></content:encoded>
	</item>
</channel>
</rss>
