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 🙂
That worked well. Thanks for sharing…
LikeLike
Hi, when I test AuthenticationAdmin in SOAPUI, I m able to login, i.e., the login operation returns true, and ESB console shows logged in.
But when I hit logout operation, nothing happens.
Also I noticed that I dont get session ID in response header for login operation.
Could you please explain me this.
THanks and Regards.
Naveen
LikeLike
Hi Naveen,
Logout is an in-only operation, so you will not see any response. The session ID is the cookie you get in the header, for subsequent calls you can use the cookie which is returned from the login operation
Regards,
/Nuwan
LikeLike
Hi,
I am trying to get a cookie with authenticateWithRememberMe service.
I provided all the username and password, but it gives following error, What am I missing? There are thousands of properties to fill.
soapenv:Server
For input string: “?”
LikeLike