当前位置: 首页>>代码示例>>Java>>正文


Java ServiceException.getLinkedCause方法代码示例

本文整理汇总了Java中javax.xml.rpc.ServiceException.getLinkedCause方法的典型用法代码示例。如果您正苦于以下问题:Java ServiceException.getLinkedCause方法的具体用法?Java ServiceException.getLinkedCause怎么用?Java ServiceException.getLinkedCause使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.xml.rpc.ServiceException的用法示例。


在下文中一共展示了ServiceException.getLinkedCause方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAuthenticationService

import javax.xml.rpc.ServiceException; //导入方法依赖的package包/类
/**
 * Get the authentication service
 * 
 * @return AuthenticationServiceSoapBindingStub
 */
public static AuthenticationServiceSoapBindingStub getAuthenticationService(String endpointAddress)
{
	AuthenticationServiceSoapBindingStub authenticationService = null;
    try 
    {
        // Get the authentication service
        AuthenticationServiceLocator locator = new AuthenticationServiceLocator();
        locator.setAuthenticationServiceEndpointAddress(endpointAddress + AUTHENTICATION_SERVICE_ADDRESS);                
        authenticationService = (AuthenticationServiceSoapBindingStub)locator.getAuthenticationService();
    }
    catch (ServiceException jre) 
    {
    	if (logger.isDebugEnabled() == true)
        {
    		if (jre.getLinkedCause() != null)
            {
    			jre.getLinkedCause().printStackTrace();
            }
        }
   
        throw new WebServiceException("Error creating authentication service: " + jre.getMessage(), jre);
    }        
    
    // Time out after a minute
    authenticationService.setTimeout(timeoutMilliseconds);
    
    return authenticationService;
}
 
开发者ID:xenit-eu,项目名称:move2alf,代码行数:34,代码来源:WebServiceFactory.java

示例2: getAuthoringService

import javax.xml.rpc.ServiceException; //导入方法依赖的package包/类
/**
 * Get the authoring service
 * 
 * @return AuthoringServiceSoapBindingStub
 */
public static AuthoringServiceSoapBindingStub getAuthoringService(String endpointAddress)
{
	AuthoringServiceSoapBindingStub authoringService = null;
              
    try 
    {
        // Get the authoring service
        AuthoringServiceLocator locator = new AuthoringServiceLocator(AuthenticationUtils.getEngineConfiguration());
        locator.setAuthoringServiceEndpointAddress(endpointAddress + AUTHORING_SERVICE_ADDRESS);                
        authoringService = (AuthoringServiceSoapBindingStub)locator.getAuthoringService();
        authoringService.setMaintainSession(true);
    }
    catch (ServiceException jre) 
    {
        if (logger.isDebugEnabled() == true)
        {
            if (jre.getLinkedCause() != null)
            {
                jre.getLinkedCause().printStackTrace();
            }
        }
   
        throw new WebServiceException("Error creating authoring service: " + jre.getMessage(), jre);
    }        
    
    // Time out after a minute
    authoringService.setTimeout(timeoutMilliseconds);       
    
    return authoringService;
}
 
开发者ID:xenit-eu,项目名称:move2alf,代码行数:36,代码来源:WebServiceFactory.java

示例3: getClassificationService

import javax.xml.rpc.ServiceException; //导入方法依赖的package包/类
/**
 * Get the classification service
 * 
 * @return ClassificationServiceSoapBindingStub
 */
public static ClassificationServiceSoapBindingStub getClassificationService(String endpointAddress)
{
	ClassificationServiceSoapBindingStub classificationService = null;
        
    try 
    {
        // Get the classification service
        ClassificationServiceLocator locator = new ClassificationServiceLocator(AuthenticationUtils.getEngineConfiguration());
        locator.setClassificationServiceEndpointAddress(endpointAddress + CLASSIFICATION_SERVICE_ADDRESS);                
        classificationService = (ClassificationServiceSoapBindingStub)locator.getClassificationService();
        classificationService.setMaintainSession(true);
    }
    catch (ServiceException jre) 
    {
        if (logger.isDebugEnabled() == true)
        {
            if (jre.getLinkedCause() != null)
            {
                jre.getLinkedCause().printStackTrace();
            }
        }
   
        throw new WebServiceException("Error creating classification service: " + jre.getMessage(), jre);
    }        
    
    // Time out after a minute
    classificationService.setTimeout(timeoutMilliseconds);        
    
    return classificationService;
}
 
开发者ID:xenit-eu,项目名称:move2alf,代码行数:36,代码来源:WebServiceFactory.java

示例4: getActionService

import javax.xml.rpc.ServiceException; //导入方法依赖的package包/类
/**
 * Get the action service
 * 
 * @return ActionServiceSoapBindingStub
 */
public static ActionServiceSoapBindingStub getActionService(String endpointAddress)
{
	ActionServiceSoapBindingStub actionService = null;
        
    try 
    {
        // Get the action service
        ActionServiceLocator locator = new ActionServiceLocator(AuthenticationUtils.getEngineConfiguration());
        locator.setActionServiceEndpointAddress(endpointAddress + ACTION_SERVICE_ADDRESS);                
        actionService = (ActionServiceSoapBindingStub)locator.getActionService();
        actionService.setMaintainSession(true);
    }
    catch (ServiceException jre) 
    {
        if (logger.isDebugEnabled() == true)
        {
            if (jre.getLinkedCause() != null)
            {
                jre.getLinkedCause().printStackTrace();
            }
        }
   
        throw new WebServiceException("Error creating action service: " + jre.getMessage(), jre);
    }        
        
    // Time out after a minute
    actionService.setTimeout(timeoutMilliseconds);      
    
    return actionService;
}
 
开发者ID:xenit-eu,项目名称:move2alf,代码行数:36,代码来源:WebServiceFactory.java

示例5: getAccessControlService

import javax.xml.rpc.ServiceException; //导入方法依赖的package包/类
/**
 * Get the access control service
 * 
 * @return  the access control service
 */
public static AccessControlServiceSoapBindingStub getAccessControlService(String enpointAddress)
{
	AccessControlServiceSoapBindingStub accessControlService = null;           
    try 
    {
        // Get the access control service
        AccessControlServiceLocator locator = new AccessControlServiceLocator(AuthenticationUtils.getEngineConfiguration());
        locator.setAccessControlServiceEndpointAddress(enpointAddress + ACCESS_CONTROL_ADDRESS);                
        accessControlService = (AccessControlServiceSoapBindingStub)locator.getAccessControlService();
        accessControlService.setMaintainSession(true);
    }
    catch (ServiceException jre) 
    {
        if (logger.isDebugEnabled() == true)
        {
            if (jre.getLinkedCause() != null)
            {
                jre.getLinkedCause().printStackTrace();
            }
        }
   
        throw new WebServiceException("Error creating access control service: " + jre.getMessage(), jre);
    }        
        
    // Time out after a minute
    accessControlService.setTimeout(timeoutMilliseconds);
    
    return accessControlService;
}
 
开发者ID:xenit-eu,项目名称:move2alf,代码行数:35,代码来源:WebServiceFactory.java

示例6: getAdministrationService

import javax.xml.rpc.ServiceException; //导入方法依赖的package包/类
/**
 * Get the administration service
 * 
 * @return  the administration service
 */
public static AdministrationServiceSoapBindingStub getAdministrationService(String endpointAddress)
{
	AdministrationServiceSoapBindingStub administrationService = null;
        
    try 
    {
        // Get the adminstration service
        AdministrationServiceLocator locator = new AdministrationServiceLocator(AuthenticationUtils.getEngineConfiguration());
        locator.setAdministrationServiceEndpointAddress(endpointAddress + ADMINISTRATION_ADDRESS);                
        administrationService = (AdministrationServiceSoapBindingStub)locator.getAdministrationService();
        administrationService.setMaintainSession(true);
    }
    catch (ServiceException jre) 
    {
        if (logger.isDebugEnabled() == true)
        {
            if (jre.getLinkedCause() != null)
            {
                jre.getLinkedCause().printStackTrace();
            }
        }
   
        throw new WebServiceException("Error creating administration service: " + jre.getMessage(), jre);
    }        
    
    // Time out after a minute
    administrationService.setTimeout(timeoutMilliseconds);       
    
    return administrationService;
}
 
开发者ID:xenit-eu,项目名称:move2alf,代码行数:36,代码来源:WebServiceFactory.java

示例7: getDictionaryService

import javax.xml.rpc.ServiceException; //导入方法依赖的package包/类
/**
 * Get the dictionary service
 * 
 * @return  the dictionary service
 */
public static DictionaryServiceSoapBindingStub getDictionaryService(String endpointAddress)
{
	DictionaryServiceSoapBindingStub dictionaryService = null;
       
    try 
    {
        // Get the dictionary service
        DictionaryServiceLocator locator = new DictionaryServiceLocator(AuthenticationUtils.getEngineConfiguration());
        locator.setDictionaryServiceEndpointAddress(endpointAddress + DICTIONARY_SERVICE_ADDRESS);                
        dictionaryService = (DictionaryServiceSoapBindingStub)locator.getDictionaryService();
        dictionaryService.setMaintainSession(true);
    }
    catch (ServiceException jre) 
    {
        if (logger.isDebugEnabled() == true)
        {
            if (jre.getLinkedCause() != null)
            {
                jre.getLinkedCause().printStackTrace();
            }
        }
   
        throw new WebServiceException("Error creating dictionary service: " + jre.getMessage(), jre);
    }        
    
    // Time out after a minute
    dictionaryService.setTimeout(timeoutMilliseconds);

    return dictionaryService;
}
 
开发者ID:xenit-eu,项目名称:move2alf,代码行数:36,代码来源:WebServiceFactory.java


注:本文中的javax.xml.rpc.ServiceException.getLinkedCause方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。