本文整理汇总了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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}