本文整理汇总了Java中org.wso2.carbon.identity.user.profile.stub.UserProfileMgtServiceStub类的典型用法代码示例。如果您正苦于以下问题:Java UserProfileMgtServiceStub类的具体用法?Java UserProfileMgtServiceStub怎么用?Java UserProfileMgtServiceStub使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UserProfileMgtServiceStub类属于org.wso2.carbon.identity.user.profile.stub包,在下文中一共展示了UserProfileMgtServiceStub类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: UserProfileCient
import org.wso2.carbon.identity.user.profile.stub.UserProfileMgtServiceStub; //导入依赖的package包/类
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;
}
}
示例2: UserProfileMgtServiceClient
import org.wso2.carbon.identity.user.profile.stub.UserProfileMgtServiceStub; //导入依赖的package包/类
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);
}