org.apache.axis.client.Service.setMaintainSession()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(205)

本文整理了Java中org.apache.axis.client.Service.setMaintainSession()方法的一些代码示例,展示了Service.setMaintainSession()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Service.setMaintainSession()方法的具体详情如下:
包路径:org.apache.axis.client.Service
类名称:Service
方法名:setMaintainSession

Service.setMaintainSession介绍

[英]Determine whether we'd like to track sessions or not. This information is passed to all Call objects created from this service. Calling setMaintainSession will only affect future instantiations of the Call object, not those that already exist. Note: Not part of JAX-RPC specification.
[中]确定我们是否要跟踪会话。此信息将传递给从此服务创建的所有调用对象。调用setMaintainSession只会影响调用对象的未来实例化,而不会影响已经存在的实例化。注意:不是JAX-RPC规范的一部分。

代码示例

代码示例来源:origin: org.apache.axis/axis

((Service) instance).setMaintainSession(true);

代码示例来源:origin: axis/axis

((Service) instance).setMaintainSession(true);

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

((Service) instance).setMaintainSession(true);

代码示例来源:origin: mx4j/mx4j-tools

public Object lookupClient(JMXServiceURL address, Map environment) throws IOException
{
 String endpoint = getEndpoint(address, environment);
 InputStream wsdd = getClass().getResourceAsStream(CLIENT_WSDD);
 if (wsdd == null) throw new IOException("Could not find AXIS deployment descriptor");
 Service service = new Service(new FileProvider(wsdd));
 service.setMaintainSession(true);
 return new SOAPClientInvoker(endpoint, service);
}

相关文章