Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Oct 05, 2016 Oct 05, 2016

Hi Team   

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

Thanks

Bala

TOPICS
Acrobat SDK and JavaScript
598
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 06, 2016 Oct 06, 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.

Translate
Community Expert ,
Oct 06, 2016 Oct 06, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 06, 2016 Oct 06, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 07, 2016 Oct 07, 2016
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines