Hi
I am trying to retrieve the current port of the WM server. I am using getCurrentPort() of ServerAPI.
In run time i am getting a value of -1 but if i run my service in debug mode the value returned is correct lets say 5555.
I would like to know why this is happening or if there is an alternative to retrieve the current port.
Regards
Sreedhar