WSO2 products are internally manage by using SOAP Web services known as Admin Services. WSO2 products come with a management console UI, which communicates with these admin services to facilitate administration capabilities through the UI.
A service in WSO2 products is defined by the following components:
- Service component: provides the actual service
- UI component: provides the Web user interface to the service
- Service stub: provides the interface to invoke the service generated from the service WSDL
There can be instances where you want to call back-end Web services directly. For example, in test automation, to minimize the overhead of having to change automation scripts whenever a UI change happens, developers prefer to call the underlying services in scripts.
Discovering WSO2 Admin Services:
By default, the WSDLs of admin services are hidden from consumers. So we are going to discover them using OSGI console. Please follow below steps:
1. Set the
<HideAdminServiceWSDLs>
element to false in <PRODUCT_HOME>/repository/conf/carbon.xml
file.2. Go to
<PRODUCT_HOME>/bin/
folder and start the WSO2 product as follows,- In Linux environment: sh wso2server.sh -DosgiConsole
- In Windows environment: wso2server.bat -DosgiConsole
4. In the OSGI shell, type:
listAdminServices
5. The list of admin services of your product are listed as follows:
6. To see the WSDL of any admin service, select the admin service's URL and paste it in your browser with ?wsdl at the end. For example:
https://SL-PRABODP:8243/services/InboundAdmin?wsdl
Note : Replace SL-PRABODP with your local IP or localhost.
Then you can see it as below
And also you can create a soap project in SoapUI as well
Then you can see as below in soapUI
Then you can check all available functionalities using this soapUI
|
No comments:
Post a Comment