Expand my Community achievements bar.

Code directly against a WebService - Xfa model

Avatar

Level 4
Hi



I plan to use WebService (WS) to fetch data in my forms. It is very easy to setup a dataconnection to a WS in Designer 7, and then drag-drop fields into the form.

I have a WS implemented and I can fetch data into my form.



I was wondering if it is possible to code agains the WS directly, without using the fields, that the dataconnection setup. I would like to submit a parameter to my WS and the get the response back and store it in an array. Anybody with knowledge about this.



We have a WS where we can fetch an employee from their ID. If I have 4 places on my form, where I need to lookup an employee, do I then need 4 dataconnections, with individual request and response fileds, or can this be done in a clever way??



Samples and help are much appreciated. I can come with more details on my form and code



/thomas
2 Replies

Avatar

Former Community Member
Take a look at the SOAP object in the Acrobat scripting guide, you can use that.



H.

Avatar

Level 4
Thanks - I have allready looked at the guide and the examples. I cannot make it work, and are looking for help.



1. connect to my WS with SOAP object (I have done this)



(need help/examples on)

2. send input parameter

3. start operation (execute WS)

4. get output (response)



5. do something with output (I can do this myself)



/Thomas