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
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.