本文整理匯總了Java中gov.nih.nci.cagrid.enumeration.stubs.service.CaGridEnumerationServiceAddressingLocator.setEngine方法的典型用法代碼示例。如果您正苦於以下問題:Java CaGridEnumerationServiceAddressingLocator.setEngine方法的具體用法?Java CaGridEnumerationServiceAddressingLocator.setEngine怎麽用?Java CaGridEnumerationServiceAddressingLocator.setEngine使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類gov.nih.nci.cagrid.enumeration.stubs.service.CaGridEnumerationServiceAddressingLocator
的用法示例。
在下文中一共展示了CaGridEnumerationServiceAddressingLocator.setEngine方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createPortType
import gov.nih.nci.cagrid.enumeration.stubs.service.CaGridEnumerationServiceAddressingLocator; //導入方法依賴的package包/類
protected CaGridEnumerationPortType createPortType() throws RemoteException {
CaGridEnumerationServiceAddressingLocator locator = new CaGridEnumerationServiceAddressingLocator();
// attempt to load our context sensitive wsdd file
InputStream resourceAsStream = getClass().getResourceAsStream("client-config.wsdd");
if (resourceAsStream != null) {
// we found it, so tell axis to configure an engine to use it
EngineConfiguration engineConfig = new FileProvider(resourceAsStream);
// set the engine of the locator
locator.setEngine(new AxisClient(engineConfig));
}
CaGridEnumerationPortType port = null;
try {
port = locator.getCaGridEnumerationPortTypePort(getEndpointReference());
} catch (Exception e) {
throw new RemoteException("Unable to locate portType:" + e.getMessage(), e);
}
return port;
}
示例2: createPortType
import gov.nih.nci.cagrid.enumeration.stubs.service.CaGridEnumerationServiceAddressingLocator; //導入方法依賴的package包/類
private CaGridEnumerationPortType createPortType() throws RemoteException {
CaGridEnumerationServiceAddressingLocator locator = new CaGridEnumerationServiceAddressingLocator();
// attempt to load our context sensitive wsdd file
InputStream resourceAsStream = ClassUtils.getResourceAsStream(getClass(), "client-config.wsdd");
if (resourceAsStream != null) {
// we found it, so tell axis to configure an engine to use it
EngineConfiguration engineConfig = new FileProvider(resourceAsStream);
// set the engine of the locator
locator.setEngine(new AxisClient(engineConfig));
}
CaGridEnumerationPortType port = null;
try {
port = locator.getCaGridEnumerationPortTypePort(getEndpointReference());
} catch (Exception e) {
throw new RemoteException("Unable to locate portType:" + e.getMessage(), e);
}
return port;
}