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


Java JaxWsProxyFactoryBean.setServiceName方法代码示例

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


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

示例1: getService

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; //导入方法依赖的package包/类
public Object getService() {
    try {
        clientFactory = new JaxWsProxyFactoryBean();
        clientFactory.setServiceClass(Class.forName("org.kuali.ole.service.OleUuidCheckWebService"));

    } catch (ClassNotFoundException e) {
        LOG.error("Failed to connect to soap service because failed to load interface class: ", e);
    }
    QName namespaceURI = new QName("http://service.select.ole.kuali.org/", "oleUuidCheckWebService");
    clientFactory.setServiceName(namespaceURI);
    String serviceURL = "";//ConfigContext.getCurrentContextConfig().getProperty("uuidCheckServiceURL");
    LOG.info(" uuidCheckServiceURL --------> " + serviceURL);
    clientFactory.setAddress(serviceURL);
    Object service = clientFactory.create();
    LOG.info("<<<< service >>>> " + service);
    return service;

}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:19,代码来源:OleUuidCheckWebservice_UT.java

示例2: getPort

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; //导入方法依赖的package包/类
protected EET getPort(final EndpointType endpointType) throws DnsTimeoutException, DnsLookupFailedException {
    if (wsConfiguration.getDnsLookupTimeout() > 0) {
        final DnsLookup resolver = new DnsLookupWithTimeout(wsConfiguration.getDnsResolver(), wsConfiguration.getDnsLookupTimeout());
        final String ip = resolver.resolveAddress(endpointType.getWebserviceUrl());
        logger.info(String.format("DNS lookup resolved %s to %s", endpointType, ip));
    }
    final JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
    factory.setServiceClass(EET.class);
    factory.getClientFactoryBean().getServiceFactory().setWsdlURL(WEBSERVICE.getWSDLDocumentLocation());
    factory.setServiceName(WEBSERVICE.getServiceName());
    final EET port = (EET) factory.create();
    final Client clientProxy = ClientProxy.getClient(port);
    ensureHTTPSKeystorePassword();
    configureEndpointUrl(port, endpointType.getWebserviceUrl());
    configureSchemaValidation(port);
    configureTimeout(clientProxy);
    configureLogging(clientProxy);
    configureSigning(clientProxy);
    return port;
}
 
开发者ID:todvora,项目名称:eet-client,代码行数:21,代码来源:SecureEETCommunication.java

示例3: doCreateServiceWithBean

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; //导入方法依赖的package包/类
private static WinRm doCreateServiceWithBean(Bus bus) {
    JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
    factory.getClientFactoryBean().getServiceFactory().setWsdlURL(WinRmService.WSDL_LOCATION);
    factory.setServiceName(WinRmService.SERVICE);
    factory.setEndpointName(WinRmService.WinRmPort);
    factory.setBus(bus);
    return factory.create(WinRm.class);
}
 
开发者ID:cloudsoft,项目名称:winrm4j,代码行数:9,代码来源:WinRmFactory.java

示例4: getService

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; //导入方法依赖的package包/类
@Override
public Object getService(String serviceClassName, String serviceName, String serviceURL) {
    try {
        clientFactory = new JaxWsProxyFactoryBean();
        clientFactory.setServiceClass(Class.forName(serviceClassName));
    } catch (ClassNotFoundException e) {
        LOG.error("Failed to connect to soap service because failed to load interface class: ", e);
    }
    QName namespaceURI = new QName("http://service.select.ole.kuali.org/", serviceName);
    clientFactory.setServiceName(namespaceURI);
    clientFactory.setAddress(serviceURL);
    Object service = clientFactory.create();
    return service;
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:15,代码来源:OleWebServiceProviderImpl.java

示例5: getService

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; //导入方法依赖的package包/类
@Override
public Object getService(String serviceClassName, String serviceName, String serviceURL) {
    try {
        clientFactory = new JaxWsProxyFactoryBean();
        clientFactory.setServiceClass(Class.forName(serviceClassName));
    } catch (ClassNotFoundException e) {
        throw new RuntimeException("Failed to connect to soap service because failed to load interface class: " + serviceClassName, e);
    }
    QName namespaceURI = new QName("http://service.select.ole.kuali.org/", serviceName);
    clientFactory.setServiceName(namespaceURI);
    clientFactory.setAddress(serviceURL);
    Object service = clientFactory.create();
    return service;
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:15,代码来源:OleWebServiceProviderImpl.java

示例6: getService

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; //导入方法依赖的package包/类
/**
 * Gets the services from JaxWsProxyFactoryBean,And sets the ServiceClass,ServiceName,and URL.
 *
 * @param serviceClassName
 * @param serviceName
 * @param serviceURL
 * @return Returns the Service.
 */
@Override
public Object getService(String serviceClassName, String serviceName, String serviceURL) {
    try {
        clientFactory = new JaxWsProxyFactoryBean();
        clientFactory.setServiceClass(Class.forName(serviceClassName));
    } catch (ClassNotFoundException e) {
        throw new RiceRuntimeException("Failed to connect to soap service because failed to load interface class: ", e);
    }
    QName namespaceURI = new QName("http://service.select.ole.kuali.org/", serviceName);
    clientFactory.setServiceName(namespaceURI);
    clientFactory.setAddress(serviceURL);
    Object service = clientFactory.create();
    return service;
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:23,代码来源:OleWebServiceProviderImpl.java


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