Skip to main content
Sparrowhawk-AES
Known Participant
June 8, 2018
Question

I am looking for a sample of exchanging data using SOAP with a live WSDL.

  • June 8, 2018
  • 2 replies
  • 735 views

I am looking to create a form data exchange to create a new PDF with the imported data, add pages from a PDF repository.  I can build the PDF and prepare it for distribution but the data exchange with SOAP is a whole new world.  I had used ADBC within our network and it worked great.  I am working with our programmer who has already set up the WSDL.  I am just looiking for a solid example of how to connect, request, receive and populate PDF. I believe a web page that managed the front end would work as well - Get the data and open and work with an existing PDF form.  I have downloaded the Acrobat SDK but I haven't found a SOAP exchange sample in the mix.

This topic has been closed for replies.

2 replies

BarlaeDC
Community Expert
Community Expert
June 11, 2018

Hi,

You should be able to use some code similar to below, depending on your wsdl, there will be changes.

// Start Of Code

// This is a service that converts the number to words - e.g. '100' becomes ' One Hundred'

service = Net.SOAP.connect("http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL");

var result = null;

try{

        //the following line makes the web service call, which takes one parameter 'ubiNum' the number to convert.

        result = service.NumberToWords('<ubiNum>' + cResponse + '</ubiNum>');

        }catch(e){

                app.alert("ERROR: There was a problem making the web service call to the web method" + e);  //error goes to message box

        }

this.getField("TranslatedText").value = result;

}

// EOC

Please note: as this is a webcall, there may be a dialog that displays asking for permission to access the wsdl location.

Hope this helps

Malcolm

Legend
June 8, 2018

You can use SOAP from Javascript or a plug-in. Do NOT assume anything will work in the free Reader; budget for Acrobat for everyone.