當前位置: 首頁>>代碼示例>>Java>>正文


Java CaGridEnumerationServiceAddressingLocator類代碼示例

本文整理匯總了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;
	}
 
開發者ID:NCIP,項目名稱:cagrid-general,代碼行數:21,代碼來源:CaGridEnumerationClientBase.java

示例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;
	}
 
開發者ID:NCIP,項目名稱:cagrid-core,代碼行數:21,代碼來源:CaGridEnumerationClient.java


注:本文中的gov.nih.nci.cagrid.enumeration.stubs.service.CaGridEnumerationServiceAddressingLocator類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。