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

The following examples show how to use org.wso2.carbon.identity.user.profile.stub.UserProfileMgtServiceStub. 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: UserProfileCient.java    From carbon-identity-framework with 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 #2
Source File: UserProfileCient.java    From carbon-identity with 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 File: UserProfileMgtServiceClient.java    From product-es with 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 File: UserProfileMgtServiceClient.java    From product-es with 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);
}