Blogs

Jaideep Srinivasan

Enterprise Widgets in Client/Server Environment
Jaideep Srinivasan SAP Employee 
Business Card
Company: SAP
Posted on Feb. 09, 2008 12:45 PM in Widgets

Subscribe.Subscribe
Print. Print
Permalink Permalink
Share

Enterprise Widgets in Client/Server Environment

  

This Blog mainly explains on how the Enterprise widgets can consume service from the SAP Widget Foundation  which has been installed at the Remote Location.

 
Scenario :
 

The System A acts as a (Server) where the SAP widget Foundation has been configured. Then the service provider is created and configured with the SAP R/3 system. Now the other client system(b,c,d) should able to access the system A(server) with  the Server IP in order to consume their services. The  scenario is been represented in the form of a diagram below.

 image"
Steps to follow ( Server Side) :
 
  • First navigate to the installation folder .Open the Middleware.XML file in any text editor for modification (Example : Notepad).

 

   image

  •  By default the HOST name is assigned to “localhost” with default Port Number : 7531
  image"
  • Replace the Host with the Server IP address(System A) as shown below.(use ipconfig command in DOS prompt to know your IP).By this we are configuring the Server IP.Port numbers can also be changed.Save all the changes and start your Widget Foundation.

image"  

Test the Following :

Right click on the SAP Widget Foundation ICON

 

image

 

Choose configuration option  in the context menu. Then replace the default HOST name and Port number with the modified one.(as mentioned in middleware.xml file)

image

  

If this works fine. Then try with the same URL from the client system(B) for accessing the server, which will again display the same page as above displayed.

 

In order to test the above scenario let us create a “Hello World” widget through the Wizard.

 

Steps in creating & Executing the Hello widget from a client/remote system.

 

  1. Create a Hello widget from the wizard.

image

 

 

  2.  Choose hello widget template and click finish.

 

     image

 

 3. After the widget cretaion. Navigate to the Package explorer

    (left pane) and double click on the RFCRequest.js file in order

    to modify the URL settings.

 

     image

  

  4 .  By default the URL will have the localhost or default IP. 

        

              

image

Now change those variable with the modified IP (Server IP) with the corresponding Port Number. (as mentioned in middleware.xml file)

 

image

Save the changes and execute the widget from the client system.

 

   5.   Provide service provider name of the Server system.This can

         be done through preference menu.

     

        image

 

 Please provide the correct Service provider name(Server System) in the Preference menu.

 

image 

Note : The above scenario may fail due to firewall or proxy setttings in the network.

 

    

Jaideep Srinivasan   is presently working in SAP Labs India Pvt. Ltd. as a Consultant - Development.


Comment on this articleI hope this blog will be more useful for the Widget Developers.By this you can setup a Client/Server Environment for Enterprise widgets.No need to install the sap widget foundation in each system to use enterprise widgets.
Comment on this weblog
Showing messages 1 through 2 of 2.

Titles Only Main Topics Oldest First

  • Interesting way around its limitations
    2008-03-25 17:25:09 Divya Mahajan Business Card [Reply]

    Few thoughts:
    Can the service foundation handle multiple concurrent requests. It seems to freeze with multiple (long) SAP calls.


    Can you secure the configuration page to avoid multiple people from changing passwords etc?

    • Interesting way around its limitations
      2008-03-31 00:28:40 Jaideep Srinivasan SAP Employee Business Card [Reply]

      hi,


      I think it can handle multiple calls..


      Since this config file is placed in the server, we can provide normal file access for the protection.


      thanks for the comment..


      thanks
      jaideep srinivasan


Showing messages 1 through 2 of 2.