cancel
Showing results for 
Search instead for 
Did you mean: 

RFC web service not called from different desktop/systems using javascript code

Former Member
0 Kudos

Dear All,

I am using an RFC web service in an offline interactive scenario. I have created a data connection using a local wsdl file saved from DEV system. Now I have created a new button and added the javascript code for calling the web service in the click event. I am able to call the RFC on click of this button from my system/desktop and it works fine. But the problem is that if I download this form from some other system/desktop and then use this button it doesn’t work(doesn't work means that it will prompt that following url is accessed: Allow/Deny but after allowing nothing happens). Both systems are on same lan network and connected to single server. And surprising part is that when I use the execute button generated from data connection it works absolutely fine on all systems. 

I am not able to figure out the reason for the same. Also I want to know how we can dynamically create the web service URL based on the system environment. Since I don’t want the URL hardcoded plus I don’t want to change it every time when the form moves to QA and Prod.

Thanks & Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Saud,

Please refer to the following links:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/bfbcd790-0201-0010-679d-e36a3c6b8...

http://scn.sap.com/people/ramesh.kotagiri/blog/2009/01/19/dynamic-generation-of-offline-adobe-intera...

http://scn.sap.com/thread/1354251

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f02b33fc-9eb1-2c10-0599-f2ef9fb5c...

Although there might not be an exact match of your requirement in these links, but you might get an idea on resolution of your query.

Please reward if you find the answers helpful.

Regards,

Nitin.