Skip to Content

Portal Webservice for getting portal roles in Visual Composer part II

In the

Portal Webservice for getting portal roles in Visual Composer part I of this weblog I have described a webservice which returns all

portal roles resp. the portal roles of a certain user. In the second part I

want to describe how to test the webservice and how you can use it in Visual


Web Services Navigator

Now we can test the webservice select your webservice and then click on the test button as it is shown in the following screenshot. Later we need the WSDL (Web Services Description Language) for using the webservice in Visual Composer.

Testing Web Services and the WSDL

Now we get all the Webservice methods. In this case we only have the method getAllPortalRoles.

Web Service methods

On the next screen we have the possibility to enter the input parameters and execute the method. The getAllPortalRoles has no input parameters.

Web Service input parameters

The getPortalRolesForUser has an input parameter the User ID.

Web Service input parameters

In this example I call the getAllPortalRoles and get the following result with all portal roles in a list.

Result of the Web Service

After we have tested the webservice we can use it in Visual Composer. You have to login to Visual Composer. Then create a new model or open an existing model. Then select in the menu under Tools => Define Web Service System…

Creating Web Service in Visual Composer

You have to enter a system name and alias and the WSDL that’s it finish it by clicking on create. In my example I use my development portal called leda. After you have created the web service system you have to add an iView and then you can search for your system

The Web Service as system

Then we use the webservice in our model as it is shown in the next screenshot.

Visual Composer Model

Then we deploy the model and get the following application.

The deployed Visual Composer application

You can create also the web service system for the getPortalRolesForUser and use it like I have described it for the getAllPortalRoles web service. That’s it. Now you can use the Web Services in all your Visual Composer Models.


1 Comment
You must be Logged on to comment or reply to a post.
  • And although I am so much more enlighted now, I still am missing whether I can use this in a “Sales order” context. Eg. mapping the User login to a Sales order, so a customer only can see his “own” sales orders. That way it could work as an extra-net solution.

    Maybe it is a simple step forward, but do you have any ideas as to move along, I would be happy.

    (you can post here and directly to me – )