set WSAPI url based on running server.