public static TenantRegAgentServiceStub getTenantRegAgentServiceStub(
String serverUrl,
String userName,
String password) throws Exception {
TenantRegAgentServiceStub stub =
new TenantRegAgentServiceStub(DataHolder.getInstance().getClientConfigContext(),
serverUrl + "TenantRegAgentService");
ServiceClient client = stub._getServiceClient();
Options option = client.getOptions();
option.setManageSession(true);
String cookie = login(serverUrl, userName, password);
option.setProperty(
org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING,