Forum Replies Created
Is there any sample code out there that shows how to call the PerfectForms API from the outside? I can port from Java, .NET, etc.
What I am attempting to do is 1) call the GetFormInstancePDF (works great!) and 2) call an external web service I wrote, that writes incoming base64Binary data to a network drive as a pdf (also works great!).
The issue is that there is no way to store the base64Binary data for the call to my web service.
Is there another way I am not seeing?
OK. So, I got this to work. Now I am wondering: What is the best practice for handling the base64Binary data, prior to passing it to a web service for handling?
I have tried to store the API’s GetFormInstancePDF results to a Multiline text input field and a File Attachment field, but that seems to corrupt the binary nature of the data.
Reading this now: /Documentation/manual/html/?fg_getforminstancepdf.htm
Thanks. So, I have this working and generating subsequent tokenOut’s as it should, but I am still getting a 7 return code, meaning “invalid parameters”.
What are legal values for section, appendixWidthInches and appendixHeightInches?
I’d also like to know if a previously submitted form can have its “Published Version” number changed–with the understanding that newly-added fields would not exist.
Hmmm, perhaps I need to use my key to get a token first?
So, how is GetFormInstancePDF called? I have set up a new action under the Server API connection, but I only get back GetFormInstancePDFResult (which is always 7) and tokenOut, but never a pdf element.
If I auto-complete the return parameters, the base64Binary pdf element is not added.
I am elated that the call to the web service is working, but I can make use of it.