Java Code Examples for org.wso2.carbon.identity.user.profile.stub.UserProfileMgtServiceStub

The following examples show how to use org.wso2.carbon.identity.user.profile.stub.UserProfileMgtServiceStub. These examples are extracted from open source projects. 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
public UserProfileCient(String cookie, String url,
                        ConfigurationContext configContext) throws java.lang.Exception {
    try {
        this.serviceEndPoint = url + "UserProfileMgtService";
        stub = new UserProfileMgtServiceStub(configContext, serviceEndPoint);

        ServiceClient client = stub._getServiceClient();
        Options option = client.getOptions();
        option.setManageSession(true);
        option
                .setProperty(
                        org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING,
                        cookie);
    } catch (java.lang.Exception e) {
        log.error(e);
        throw e;
    }
}
 
Example 2
Source Project: carbon-identity   Source File: UserProfileCient.java    License: Apache License 2.0 6 votes vote down vote up
public UserProfileCient(String cookie, String url,
                        ConfigurationContext configContext) throws java.lang.Exception {
    try {
        this.serviceEndPoint = url + "UserProfileMgtService";
        stub = new UserProfileMgtServiceStub(configContext, serviceEndPoint);

        ServiceClient client = stub._getServiceClient();
        Options option = client.getOptions();
        option.setManageSession(true);
        option
                .setProperty(
                        org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING,
                        cookie);
    } catch (java.lang.Exception e) {
        log.error(e);
        throw e;
    }
}
 
Example 3
Source Project: product-es   Source File: UserProfileMgtServiceClient.java    License: Apache License 2.0 5 votes vote down vote up
public UserProfileMgtServiceClient (String backEndUrl, String sessionCookie)
        throws RemoteException {

    this.endPoint = backEndUrl + serviceName;
    try {
        userProfileMgtServiceStub = new UserProfileMgtServiceStub(endPoint);
    } catch (AxisFault axisFault) {
        log.error("Error on initializing userProfileMgtServiceStub : " + axisFault.getMessage());
        throw new RemoteException("Error on initializing userProfileMgtServiceStub : ", axisFault);
    }
    AuthenticateStub.authenticateStub(sessionCookie, userProfileMgtServiceStub);
}
 
Example 4
Source Project: product-es   Source File: UserProfileMgtServiceClient.java    License: Apache License 2.0 5 votes vote down vote up
public UserProfileMgtServiceClient (String backEndUrl, String userName, String password)
        throws RemoteException {

    this.endPoint = backEndUrl + serviceName;
    try {
        userProfileMgtServiceStub = new UserProfileMgtServiceStub(endPoint);
    } catch (AxisFault axisFault) {
        log.error("Error on initializing userProfileMgtServiceStub : " + axisFault.getMessage());
        throw new RemoteException("Error on initializing userProfileMgtServiceStub : ", axisFault);
    }
    AuthenticateStub.authenticateStub(userName, password, userProfileMgtServiceStub);
}