Java Code Examples for org.wso2.carbon.identity.user.registration.stub.UserRegistrationAdminServiceStub#_getServiceClient
The following examples show how to use
org.wso2.carbon.identity.user.registration.stub.UserRegistrationAdminServiceStub#_getServiceClient .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UserRegistrationAdminServiceClient.java From carbon-identity-framework with Apache License 2.0 | 5 votes |
public UserRegistrationAdminServiceClient() throws AxisFault { StringBuilder builder = new StringBuilder(); String serviceURL = null; serviceURL = builder.append(TenantDataManager.getPropertyValue(Constants.SERVICES_URL)).append (Constants.UserRegistrationConstants.USER_REGISTRATION_SERVICE).toString().replaceAll("(?<!(http:|https:))//", "/"); stub = new UserRegistrationAdminServiceStub(serviceURL); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); }
Example 2
Source File: UserRegistrationAdminServiceClient.java From carbon-identity-framework with Apache License 2.0 | 5 votes |
public UserRegistrationAdminServiceClient() throws AxisFault { StringBuilder builder = new StringBuilder(); String serviceURL = null; serviceURL = builder.append(IdentityManagementServiceUtil.getInstance().getServiceContextURL()) .append(IdentityManagementEndpointConstants.ServiceEndpoints.USER_REGISTRATION_SERVICE) .toString().replaceAll("(?<!(http:|https:))//", "/"); stub = new UserRegistrationAdminServiceStub(serviceURL); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); }
Example 3
Source File: UserRegistrationAdminServiceClient.java From carbon-identity with Apache License 2.0 | 5 votes |
public UserRegistrationAdminServiceClient() throws AxisFault { StringBuilder builder = new StringBuilder(); String serviceURL = null; serviceURL = builder.append(TenantDataManager.getPropertyValue(Constants.SERVICES_URL)).append (Constants.UserRegistrationConstants.USER_REGISTRATION_SERVICE).toString().replaceAll("(?<!(http:|https:))//", "/"); stub = new UserRegistrationAdminServiceStub(serviceURL); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); }
Example 4
Source File: UserSignUpWorkflowExecutor.java From carbon-apimgt with Apache License 2.0 | 5 votes |
/** * Method to add user to userStore * @param serverURL * @param userDTO * @throws Exception */ public void addUserToUserStore(String serverURL, UserDTO userDTO) throws RemoteException, UserRegistrationAdminServiceException { if (log.isDebugEnabled()) { log.debug("Adding to user store user :" + userDTO.getUserName()); } UserRegistrationAdminServiceStub stub = new UserRegistrationAdminServiceStub(null, serverURL + "UserRegistrationAdminService"); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); stub.addUser(userDTO); }