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


Java Call.setReturnQName方法代碼示例

本文整理匯總了Java中org.apache.axis.client.Call.setReturnQName方法的典型用法代碼示例。如果您正苦於以下問題:Java Call.setReturnQName方法的具體用法?Java Call.setReturnQName怎麽用?Java Call.setReturnQName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.apache.axis.client.Call的用法示例。


在下文中一共展示了Call.setReturnQName方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: _get

import org.apache.axis.client.Call; //導入方法依賴的package包/類
private CacheEntry _get(String cacheName,String method,String key) throws ServiceException, MalformedURLException, RemoteException  {
	Service  service = new Service();
    Call     call    = (Call) service.createCall();
    
    call.registerTypeMapping(
            Element.class, 
            element,
            BeanSerializerFactory.class,
            BeanDeserializerFactory.class);
    
    call.setTargetEndpointAddress( new java.net.URL(endpoint) );
    call.setOperationName(new QName("http://soap.server.ehcache.sf.net/", method));

    call.addParameter("arg0", Constants.XSD_STRING, String.class, ParameterMode.IN);
    call.addParameter("arg1", Constants.XSD_STRING, String.class, ParameterMode.IN);
    call.setReturnClass(Element.class);
    call.setReturnQName(element);
    
    return new SoapCacheEntry((Element) call.invoke( new Object[] {cacheName,key } ));
}
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:21,代碼來源:SoapClient.java

示例2: _remove

import org.apache.axis.client.Call; //導入方法依賴的package包/類
private boolean _remove(String cacheName,String method,String key) throws ServiceException, MalformedURLException, RemoteException  {
	Service  service = new Service();
    Call     call    = (Call) service.createCall();
    
    
    call.registerTypeMapping(
            Element.class, 
            element,
            BeanSerializerFactory.class,
            BeanDeserializerFactory.class);
    
    call.setTargetEndpointAddress( new java.net.URL(endpoint) );
    call.setOperationName(new QName("http://soap.server.ehcache.sf.net/", method));

    call.addParameter("arg0", Constants.XSD_STRING, String.class, ParameterMode.IN);
    call.addParameter("arg1", Constants.XSD_STRING, String.class, ParameterMode.IN);
    call.setReturnClass(boolean.class);
    call.setReturnQName(Constants.XSD_BOOLEAN);
  
    return ((Boolean)call.invoke( new Object[] {cacheName,key } )).booleanValue();

}
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:23,代碼來源:SoapClient.java

示例3: getCache

import org.apache.axis.client.Call; //導入方法依賴的package包/類
public Cache getCache(String cacheName) throws Exception {

     Service  service = new Service();
     TypeMapping tm = service.getTypeMappingRegistry().getDefaultTypeMapping();
     TypeMappingUtil.registerBeanTypeMapping(tm, CacheConfiguration.class, cacheConfiguration);
     TypeMappingUtil.registerBeanTypeMapping(tm, Cache.class, cache);
     
     
    Call     call    = (Call) service.createCall();
     
     
     call.registerTypeMapping(
             Cache.class, 
             cache,
             BeanSerializerFactory.class,
             BeanDeserializerFactory.class);
     
     
      
     call.registerTypeMapping(
             CacheConfiguration.class, 
             cacheConfiguration,
             BeanSerializerFactory.class,
             BeanDeserializerFactory.class);
     
     call.setTargetEndpointAddress( new java.net.URL(endpoint) );
     call.setOperationName(new QName("http://soap.server.ehcache.sf.net/", "getCache"));

     call.addParameter("arg0", Constants.XSD_STRING, String.class, ParameterMode.IN);
     call.setReturnClass(Element.class);
     call.setReturnQName(cache);
     
     
     
     //Object ret =  call.invoke( new Object[] { } );
     return (Cache) call.invoke( new Object[] {cacheName } );
 }
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:38,代碼來源:SoapClient.java


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