This should be a quick how-to type guide; This method will work in any Carbon Based WSO2 Server (AS, ESB, BPS etc). I am taking WSO2 ESB as the example.
- Download the ESB and extract it. (lets say I extracted to {ESB_HOME})
- You will want to see the service contracts once you discover them so navigate to
{ESB_HOME}/repository/conf
and open carbon.xml
- make, HideAdminServiceWSDLs to false
<HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>
and save the document
- Start the ESB with OSGI Console
sh {ESB_HOME}/bin/wso2server.sh -DosgiConsole
- Once the server is started, push few return keys (hit enter) to get the OSGI shell in the console
- In the OSGI shell type
osgi> listAdminServices
- That will give a list of services as shown below,
- All right now you want to see the service contract, lets select “Authentication Admin” Service which is listed as
AuthenticationAdmin, AuthenticationAdmin, https://192.168.219.1:8243/services/AuthenticationAdmin
- Take the url from the list and paste it in the browser with ?wsdl at the end, that will give the entire contract of the service
Happy Hacking 🙂