cancel
Showing results for 
Search instead for 
Did you mean: 

webservice from static adobe form

Former Member
0 Kudos

Hi,

My requirement is to call the web service when users opens the static adobe form. can this be possible and how?

Thanks in advance.

Pooja

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pooja,

Refer below link for integration of WS in Adobe form:

http://www.saptechnical.com/Tutorials/AdobeForms/Webservices/Index.htm

After doing all the steps mentioned in above link, you can write the following code in preOpen event in Adobe forms:

var cURL = "http:/servername:port/sap/bc/srt/rfc/sap/zws_po_getdetail/030/zws_po_getdetail/zws_po_getdetail";

var service = SOAP.connect(cURL);

xfa.connectionSet.DC_POGetDetails.execute(0);

Hope it will help you,

Amit

Former Member
0 Kudos

Hello Amit,

Thanks for the quick reply, I cant build in the form using SFP, my requirement is i have a standalone form,designed in the LC designer, followed the same steps and pasted the below lines of code in the init event of the form, but still it is not fetchng my data through webservice.

I put on the breakpoint in the fm but it is not hititing it at all. Please suggest what should I do.

Thanks

Pooja

Former Member
0 Kudos

Hi Pooja,

I am not sure, that you will be able to debug Web Service using ABAP debugger.

Use Web Service Navigator for checking the WS is working fine or not. Usually path for WS Navigator will be:

http://<hostname>:<port>/wsnavigator

Regards,

Amit

Former Member
0 Kudos

Amit,

I have laready tested the webservice, it is working absolutely fine. but somehow not getting triggered from the adobe form. Can u tell if can this functionality only work with acrobat reader ratehr than simple adobe reader?

Thanks

Pooja

Former Member
0 Kudos

Have you enabled Show Console on errors and warnings in Adobe reader. You can find this property under

Edit -> Preferences -> JavaScript

Once you have enabled the above mentioned checkbox, it will show you error.

We have integrated WS with Adobe forms and these forms are opened using Adobe reader.

So that is not the case. It should work with both.

You said, you created the Adobe form using LiveCycle designer and integrated the WS in it. I think it is the issue, you have to design the form using SFP and activate. Try this, it may work.

Regards,

Amit

Edited by: wipro.com on Feb 10, 2012 7:46 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

This has been resolved....thanks Amit for all your valuable inputs