These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Sending and receiving form data from simple web server

Scharioth
Registered: Feb 21 2008
Posts: 2

Hello,
i have a problem with sending and receiving data (i.e xml- data).
Sending data as xml with a button to my Perl Script works fine. After processing the data i would like to send data back to the forms to fill a textfield with a message.
I haven't found any example or description for this problem, which shows a solution without SOAP Server, Livecycle Server or something similar big. I just have a IIS Server with Perl Scripting.

In Acrobat 8, i can use FDF- data transfer for both direction, which works fine for Acrobat but not for livecycle Forms.
If i try xfdf or xml transfer i only get an error message or nothing happens.
i think , if it works at all, the definition of the data structure and the http header is important. But i cannot find any description.
So, if anybody has information or even an example ......

Thanks

Jürgen

My Product Information:
LiveCycle Designer, Windows
lsutton
Expert
Registered: Nov 15 2005
Posts: 51
You can manually script your service call instead of using a data connection:

Here's a snippet of some code I use to call a service that provides me with an LDAP lookup:

var cText = approvalSearch.rawValue;
var cURL = "http://stuff.example.com/soap/services/LDAPLookup?wsdl";
SOAP.wireDump = false; // no log to console (turn this on for some GREAT debugging details on the console)
var service = SOAP.connect(cURL);
var theRequest = {lookupString:cText}
var result = service.invoke(theRequest);

var myXML=XMLData.parse(result.document,false);

xPathPhrase = "//people/person";
var a = XMLData.applyXPath(myXML,xPathPhrase);

var numberOfPeopleFound = 0;

try{numberOfPeopleFound = parseInt(a.length);}
catch(e){numberOfPeopleFound = 0;}

I also add an xPath expression to get to the data I am looking for.