本文整理匯總了Java中gov.nih.nci.cagrid.enumeration.stubs.service.CaGridEnumerationServiceAddressingLocator類的典型用法代碼示例。如果您正苦於以下問題:Java CaGridEnumerationServiceAddressingLocator類的具體用法?Java CaGridEnumerationServiceAddressingLocator怎麽用?Java CaGridEnumerationServiceAddressingLocator使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CaGridEnumerationServiceAddressingLocator類屬於gov.nih.nci.cagrid.enumeration.stubs.service包,在下文中一共展示了CaGridEnumerationServiceAddressingLocator類的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;
}