Skip to main content
Balav483
Known Participant
October 6, 2016
Answered

Other possibility to communicate with web service other than SOAP in Adobe Reader

  • October 6, 2016
  • 1 reply
  • 655 views

Hi Team   

     Is there is other alternate method to communicate with web service other than SOAP using Java script in Adobe Reader.

Thanks

Bala

This topic has been closed for replies.
Correct answer Karl Heinz Kremer

Yes, you can use FDF/XFDF to send data to the server and report information back to the document. Take a look at Doc.submitForm() method using the FDF/XFDF parameter: Acrobat DC SDK Documentation - Doc.submitForm()​ You will need form fields to send/receive data, but these can be hidden.

1 reply

Karl Heinz  Kremer
Community Expert
Karl Heinz KremerCommunity ExpertCorrect answer
Community Expert
October 6, 2016

Yes, you can use FDF/XFDF to send data to the server and report information back to the document. Take a look at Doc.submitForm() method using the FDF/XFDF parameter: Acrobat DC SDK Documentation - Doc.submitForm()​ You will need form fields to send/receive data, but these can be hidden.

Balav483
Balav483Author
Known Participant
October 7, 2016

Hi Karl

     Thanks for your replay.

     I tried with your above solution but i got some error.

     I want to send a value to the server (i am able to send the value to server) and i want to get the response from the server. (but how to recive response from server to form field is it is possible)

i have tried with the below code in adobe reader 11:

   

     this.submitForm({

     cURL:"http://localhost:55182/Service1.asmx",

     cSubmitAs: "HTML"

     });

and i have received the error as: an error occured during submit process. cannot process content type text/xml; charset=utf-8.

Legend
October 7, 2016

Your web script needs to return a suitable format for filling form fields: XFDF or FDF. Though XFDF is XML, it must have a suitable content-type. So, yes, there is an alternative to SOAP. But if your question is really "can I connect to existing unmodified services that return general XML data" the answer is certainly "no".