Skip to Content

The web service address you will use for your system is

.

You will add it via Tools > Define Web service system.

Now let’s find the service we want to use : “GetProcessList”. Add it to your iview, add a start point in the input port, drag a table form the output form.

This is how it looks like in Visual Composer :

See the list of process - VC

From now we can see our process list :

See your list process

Seeing your server status with a nice look and feel

Now we will enter the aim of this blog : view our server status in a good looking way.

From our model, make the table invisible. To do that, make the table property “Visibility condition” to “false”.

Drag a form from the out port of the table, and make all the field not visible.

Now go to the image manager and choose 4 pictures to upload : one of your landscape, and three for the “traffic light” : one green, orange, and red light.

In your new form, add an image with no label and assign your image landscape to it. Go to the layout view, and enlarge this image to use it as a background.

Add another image for your traffic light. Assign it the three images with the following image condition :

    • @dispstatus==”SAPControl-RED”

    • @dispstatus==”SAPControl-YELLOW”

Now the green image will be displayed if the server is running, the red if it is stopped, yellow if starting.

To make it even more readable, we will add three HTML fields colored with the corresponding status, and using the same trick for hiding/showing them depending on the server status.

Now you will have to define how you want it to look like in the layout tab. After the “Restart the server” part you will see how I choose to present it.

Restart the server

To make our realisation not only a visualisation tool, but also a monitoring tool, we can add a restart button.

Choose the service you want to use in the Webservice : “RestartInstance”, “RestartService”, “RestartSystem”. Add it after your last form. Add a button to your form and assign it the System Action “Submit”.

Depending on wich service you use you will have to define some default parameters.

This is how it looks like in Visual Composer :

See your status - VC

From now we can see our server status in a good looking visual way :

Server status - VC

Let’s use it for all our environments

Now the final point of this blog is to make our realisation re-usable for all our Environments.

To do this, add the corresponding Webservice for each environment, and reproduce what we just have done for each one.

To make it more readable, we decided to use Tab strip, one strip per environment.

To do this simply go to “Compose”, add a layer, in the “Configure” tab choose “Navigation control : tab strip”, and move all you have done before in your just created tab.

Repeat it for each environment.

This is how it looks like in Visual Composer :

Server status - VC

Now you can see and “monitor” your servers status from all your selected environment with your Visual Composer developped iview :

!https://weblogs.sdn.sap.com/weblogs/images/251916631/Serverstatusfinal.jpg|height=466|alt=Servers status|width=540|src=https://weblogs.sdn.sap.com/weblogs/images/251916631/Serverstatusfinal.jpg|border=0!</body>

To report this post you need to login first.

18 Comments

You must be Logged on to comment or reply to a post.

      1. Former Member
        Hi Fabien,

        It is very nice blog.
        I implemented this to our SandBox Serverand it is showing the SBX server status correctly.
        But when I try to implement this for other servers like Dev, QA and Production.
        It is showing the SandBox server data only.
        Do you know what the problem is?
        I used the appropriate WSDL URL for other servers.

        Thanks
        Sundar

        (0) 
        1. Former Member Post author
          Hi,

          thanks a lot.

          Concerning your problem, have you tested your web service throughout Visual Composer to be sure it is the good wsdl you are using ?

          Fabien.

          (0) 
    1. Former Member Post author
      Hi Jan,

      first of all, I hope you solved your union problem ๐Ÿ˜‰

      Seems like both syntax are working, with or without the slash, even if I used the one with the slash.

      Fabien.

      (0) 
  1. Former Member
    Hi Fabien,

    Thanks for your blog. Very creative usage of VC.

    Btw, Your example works successfully on J2EE stack based systems. But, I was unable to find webservice for ABAP stack based systems ?

    Can you please let me know the same along with URL for ABAP based systems ? I was also curious to know the use of “port + 13” part of the URL used in your example. If you can elaborate on the same, it will be superb help.

    Thanks & Regards,
    Jigesh.

    (0) 
    1. Former Member Post author
      Hi Jigesh,

      thanks a lot.

      I use Webservice for Java systems, I do not know if one exist for Abap stack based one.

      My exemple gives the link of the generic use of the Webservice address, port+13 means if your portal address is :
      http://mycompany.com:50000/irj/portal“, then your webservice address will be :
      http://mycompany.com:50013/?wsdl“.
      For more information report on https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e24f7b-1ba1-2b10-c0a0-e514b855624b.

      Fabien.

      (0) 
  2. Former Member
    Very nice blog!

    I have one question:

    Which service are the pictures looking at to decide which one is visible?

    How can you modify @dispstatus==”SAPControl-GREEN” to look at just one of the services? Or go through and look at all of them?

    Thanks again for the great blog!

    (0) 
    1. Former Member Post author
      Hi,

      thanks a lot first.

      The images’ visibility condition take a look at the @dispstatus service.

      I go through the call of this service for all images, which can be a good point of improvement (calling just one time the @dispstatus service).

      Fabien.

      (0) 
  3. Former Member
    Hi ,

    This is very nice blog .

    where i can find the Getprocess webservice in WSNavgator . i need to do the same my system .please provide the details .

    Regards ,

    venkat p

    (0) 
  4. Former Member
    Thank you so much Fabien for a very nice and helpful blog.

    I tried the web service URL and I was able to list the web services like GetProcessList and map it to a table. The problem I’m facing now is with execution where the application launches and shows the error message “couldn’t execute web service, contact your admin!”

    what could be the reason?

    (0) 
    1. Former Member Post author
      Hi,

      thanks !
      for your problem, are you able to test your web service in Visual Composer with the right click > Test webservice option ? maybe you can open an SDN thread with more details if not.

      Fabien.

      (0) 
  5. Former Member
    Hi,

    Great blog!. It is very interesting to read this. As you mentioned in this blog, I have created VC Model with the web service for showing the server status.
    Green – Server Running
    Red – Server Stopped
    Yellow – Server restarted

    Question 1: If server is running, then only i can view this iview. What does it mean for setting red and yellow symbols?

    Question 2: What is purpose of restart service?

    Thanks
    Hemalatha J

    (0) 

Leave a Reply