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

Help with web service call

vgermscheid
Registered: Nov 23 2011
Posts: 7

I'm trying to prototype integration of a web service into a form in Acrobat X and am having problems getting a parameter to pass. If I call a method that has no parameters, the data is returned correctly. When I call a method that requires a parameter, no data comes back.
 
Testing the method by URL is successful - url test:(http://192.168.137.50:8080/FgApp/jaxws/LookupServiceImplEndPoint/findLookupByElement?element=State)
 
The following script "should" do the same, but the response body returned is empty:
var oListURL = "http://sever08dev:8080/FgApp/jaxws/ILookupServiceEndpoint?wsdl";
SOAP.wireDump = true;
 
var service = SOAP.connect(oListURL);
 
var Element = "State"
var Input = {element:Element};
var svcResponse = service.loadLookupsByElement(Input);
 
Is there something I'm doing wrong?

My Product Information:
Acrobat Pro 10.1, Windows
vgermscheid
Registered: Nov 23 2011
Posts: 7
Sorry, that was an old version of the script, it's:

var oListURL = "http://192.168.137.50:8080/FgApp/jaxws/LookupServiceImplEndPoint?wsdl";
SOAP.wireDump = true;

var service = SOAP.connect(oListURL);
var Element = "State"
var Input = {element:Element};
var svcResponse = service.findLookupByElement(Input);

vgermscheid
Registered: Nov 23 2011
Posts: 7
Ok, gotten a bit further. Rather than using SOAP.connect, I've changed to using SOAP.request (below). It brings back the data (as an object type), but I can't seem to use it. The soap wiredump shows the complete SOAP response envelope, but I can't seem to get any further.

Changing cResponseStyle doesn't seem to help.

var oListURL = "http://192.168.137.50:8080/FgApp/jaxws/LookupServiceImplEndPoint";
SOAP.wireDump = false;
var Element = "State"
var Input = {element:Element};
var svcResponse = SOAP.request({
cURL: oListURL,
oRequest: {
"findLookupByElement": Input
},
bEncoded: "false"
});