Friday, May 19, 2017

How to view Admin Services given WSO2 product

WSO2 products are uses SOAP services to communicate internally in-between UI and the back end. Sometime you may want to do direct invocation on particular admin service to do several task.

As a example if you want to add new users without using admin service, It can be achived by invoking the UserManagementAdminServie. Likewise you can use inbuilt admin services to do such kind of operations.

Some people does not know what are the admin services available in running WSO2 instance. Please find the easiest way to find the admin services and it's endpoints.

I am using WSO2 API Manager.

1. Please download WSO2 API Manager from above location.
2. Start API Manager with following property.
    Ex : wso2server.sh -DosgiConsole 

You will notice server is starting as below

Chamaras-MacBook-Pro:wso2am-2.0.0 chamara$ ./bin/wso2server.sh -DosgiConsole
JAVA_HOME environment variable is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home
CARBON_HOME environment variable is set to /Users/chamara/wso2/products/apim/wso2am-2.0.0
Using Java memory options: -Xms256m -Xmx1024m
OSGi console has been enabled with options: -console



3. By pressing "Enter" in terminal (after start server) you will landed to the OSGI console.


4. Now add below command and it will show all the admin services available in server.
"listAdminServices"








2 comments:

bhanu sreee said...

Very nice post with lots of information. Thanks for sharing this
Mule 4 Training
Mule 4 Online Training

Anonymous said...

So make sure you get enough sleep 6-8 hours a day to be full of energy the next day. If you are suffering from insomnia or trouble sleeping, find out soonthe secret to good sleepfor a healthy mind and a healthy body. does sprite zero sugar, d&d 5e remove curse spell, is halloween a religious holiday, uti symptoms, how to find a doctor husband