Discovering Admin Services in a WSO2 (Carbon) Server

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.

      1. Download the ESB and extract it. (lets say I extracted to {ESB_HOME})
      2. You will want to see the service contracts once you discover them so navigate to
        {ESB_HOME}/repository/conf

        and open carbon.xml

      3. make, HideAdminServiceWSDLs to false
        <HideAdminServiceWSDLs>false</HideAdminServiceWSDLs>

        and save the document

      4. Start the ESB with OSGI Console
        sh {ESB_HOME}/bin/wso2server.sh -DosgiConsole
      5. Once the server is started, push few return keys (hit enter) to get the OSGI shell in the console
      6. In the OSGI shell type
        osgi> listAdminServices
      7. That will give a list of services as shown below,
      1. 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
    1. 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 🙂