In three weeks with 45 views, no one has answered my post. I would really appreciate someone providing an answer, even if the answer is "it can't be done". I have not found a solution to my problem. Please help!
Using the NET interface is not something a lot of people do, that's very likely why you have not received a response yet. Take a look here for at least another sample: Getting a Serial Number Into a Form Using SOAP - KHKonsulting LLC
If you want to do this without SOAP, I just published a new post about using XFDF to get data from a form or into a form: Connect to Database from PDF Form - This Time Without SOAP - KHKonsulting LLC
Hi Karl, thanks for your reply and for referring me to your posts!
Your example using XFDF looks very interesting.. However, it will not work for my situation. I'm not trying to connect to my own server, but a third-party server throught their API. So I won't be able to write php on their server.
Yes, I want to avoid using SOAP because I want the code to run in Adobe Reader, not just Acrobat, as your first post points out.
So is there really no one that can show me how to do this with the Net.HTTP.request?
Thanks, John! I figured out the reason I was getting the error "undefined" - it was because I was missing a slash in the URL.
I tested out using util instead of SOAP and it works in Adobe Acrobat. I will get back to you again once I test it in Reader.
Hold on a sec... The documentation that John referenced is from 2007, but Karl referenced the SDK documentation (which I didn't even know existed, LOL) from 2015. His article states that Net.HTTP requires a LiveCycle Extension to support in Acrobat Reader.
I found this article which expands on Karl's post regarding this matter: http://www.adobepress.com/articles/article.asp?p=2158443&seqNum=3
Although Reader extending with Acrobat Professional is good for many cases, you’ll have to extend your forms with LiveCycle Reader Extensions if you need Reader users to access any of the following functionality in your XFA PDFs:
- Connecting to data in real time
- Using barcodes
- Attaching files
Therefore, since I require the form to connect to data in real time, I won't be able to do this with Acrobat Pro DC. util only substitutes SOAP inside the Net.HTTP.request, so it will be subject to the requirements.
I will be looking into another solution right now, and once I do, I will come back and post again.
You may have to create a server-side solution that can translate between your 3rd party solution (that uses SOAP) and XFDF (so that you can allow Reader to retrieve and submit data).