making Web Service calls from a Form in the WorkSpace

Avatar

02-06-2008

I am getting conflicting information about this, so I hope someone here could clarify it. TIA.



This is what I want to do:

after a form is displayed/launched in the WorkSpace,

when the user Tabs out of a field (Exit event) on the form,

I want to make a Web Service call from the form,

get the result from the WebService,

and use the Result to populate another field on the form.



I know for certain that this works if I Reader-Extend the form,

and I set the JavaScript at the Exit event (to execute WebService call)

as "Run At Client".



The question is:

can I make the WebService calls without Reader-Extending the form???



I have been told that, yes you can,

but *only if* you let the JavaScript "Run At Server".

I tried that, but it caused the Reader to crash.



Some other people told me,

no you can not,

even if you "Run At Server", the form still needs to be Reader-Extended,

when using it in the WorkSpace environment.



So, what is the truth? can someon tell me?

Can I make WebServers calls from the Server-side at all?

Do I really need to Reader-Extend the form even if calling it from server side?

What exactly is it SUPPOSED to work?



thanks

Replies

Avatar

Avatar

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

03-06-2008

If you want to make a web service call from a pdf within the browser using Reader, you WILL HAVE to reader enable the form.



Also the web service call needs to run on the client as it never goes back to the server to re-render.



This "server-side" execution of the web service trick will only work if you render the form as HTML or Form Guide since it can go back to the server to run server side scripts.



Jasmin

Avatar

Avatar

Jasmin_Charbonn

Avatar

Jasmin_Charbonn

Jasmin_Charbonn

03-06-2008

CORRECTION!!!



We did some more testing with this, and it looks like if you set the invoke button to run "Server Side", then the form will be able to call a web service WITHOUT being reader enabled.



There is still a problem doing that within workspace but that might be a problem with workspace and not the way the technology is supposed to work.



Sorry for the confusion.



Jasmin

Avatar

12-06-2008

A fix was made in SP2 to support server-side web service calls in Workspace.

Avatar

12-06-2008

yes, thank you both. I got the fix from Adobe Tech Support last week. It's working.



The fix I got included a rather complex looking "Submit Service" though. Makes me wonder how a regular user would know that he needs to write such a Submit Service?? and even if he knows that he needs a special Submit Service, would he know how to write it??? I found no documentation for this type of things either.



Shouldn't this solution be published somewhere in Adobe's website? Dev Lab perhaps?

Avatar

20-06-2008

Thierry,



sorry about late response. I don't think I can post the solution here, I can't attach the files. But if you give me your email address, I can send it to you.



There are 3 parts to this solution:

(1) you will need the SP2 patch

(2) your XDP form needs to have things done in certain way

(3) you need this special Submit Service.



my email address is jdee66888@gmail.com