Expand my Community achievements bar.

SOLVED

How to send data to a Webservice

Avatar

Level 2

Hello everyone. I have a very simple example of sending data (2222) to a existing webservice as following:

topmostSubform.Page1.SEND::click - (JavaScript, client)
var url="http://Localhost:8080/4DWSDL";
var serv = SOAP.connect(url);
app.alert("hello ");
serv.MethodeSOAP(2222);
app.alert("hello 2");

However, it works great in Acrobat but not in Reader. Is it possible to make it work?

Also, although in this example the data to send is only the value 2222 but my purpose is to send all the information of the form to a webservice. Anyone has tried it before or is there any other way easier to do this? I will appreciate any suggestion from you. Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Data connections via web service calls will not work in Reader, unless the form has been Reader enabled in LC Reader Extensions ES2:

options.png

I have a summary here:

http://www.assuredynamics.com/index.php/2010/11/using-livecycle-forms-in-acrobat-and-reader/

Hope that helps,

Niall

Assure Dynamics

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Hi,

Data connections via web service calls will not work in Reader, unless the form has been Reader enabled in LC Reader Extensions ES2:

options.png

I have a summary here:

http://www.assuredynamics.com/index.php/2010/11/using-livecycle-forms-in-acrobat-and-reader/

Hope that helps,

Niall

Assure Dynamics

Avatar

Level 2

Thank you a lot buddy. Your summary is very useful to me. I am now considering another way: firstly export all the data in XML into a invisible field on the form, then bind this field to a webservice in order to submit the data. Does this appear possible to you with or without reader extensions? Thank you

Avatar

Level 10

Hi,

I don't think you will get this to work either, as it still requires a WSDL.

Niall

Avatar

Level 2

All right. I think I will have to get the reader extentions. Thank you again.