当前位置: 首页>>代码示例>>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;未经允许,请勿转载。