Working with WSO2 carbon Admin Services

WSO2 products managed internally using defined SOAP web services named as admin services. This blog will describe how to call the admin services and perform operation with out using the Management Console.

Note - I will be using WSO2 Enterprise Integrator to demonstrate this.

Lets look at how to access the admin services in wso2 products. By default the admin services are hidden from the user. To enable the admin services,


1. Go to <EI_HOME>/conf/carbon.xml and enable admin services as follows

<HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>

2. Now start the EI server using

./integrator.sh -DosgiConsole
When the server is started click 'Enter' and you will be directed to the osgi console mode.

3. To search the available admin services, Add 'listAdminServices' in the osgi console.This will list down the available admin services with the URL to access the admin services.





Access Admin Service via SOAP UI

4. You can access any of the admin service via the service URL listed in the above step.

I will demonstrate how to access functionalities supported by the ApplicationAdmin service. This service support the functionalities such as list the available applications, get application details, delete application etc.

5. Start SOAP UI and create a SOAP project using the following WSDL.
https://localhost:9443/services/ApplicationAdmin?wsdl
 
6. If you want to list all the available applications in the EI server, open the SOAP request associated with listAllApplications and provide the HTTP basic authentication headers of the EI server. (Specify the user name and password of the EI server)


Similarly you can access any available admin service via SOAP UI with HTTP basic authentication headers.

Reference - https://docs.wso2.com/display/AM1100/WSO2+Admin+Services

Comments

Post a Comment

Popular posts from this blog

Use ZAP tool to intercept HTTP Traffic

The 100% Open Source ESB