Lotus Notes 生成的 Java Web 服务使用者保留缓存结果
我创建了一个 java web 服务消费者。
Web 服务消费者 ->新的Web服务消费者...->类型:Java
然后,创建了一个调用此 Web 服务的 Java 代理。
代理->新代理... ->类型:Java
然后导入Java Web Service Consumer。
导入-> Web 服务消费者
在 java 代理中,我像这样调用 Web 服务方法。
LotusNotesHandlerLocator locator = new LotusNotesHandlerLocator();
LotusNotesHandlerSoap handlerSoap = locator.getLotusNotesHandlerSoap();
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(Long.parseLong(doc.getItemValueString("TimeInMilliseconds").trim()));
Sample sample = handlerSoap.getResult(cal);
// code for updating timestamp added here
以下是从 Web 服务检索的数据数量的示例结果。
Finished processing 3 document(s).
Web服务方法仅根据时间戳返回所述文档。我预计从下一个 Web 服务调用开始,它只会返回 1 个文档。但它还包括 java 代理先前检索的文档。
以下是从 Web 服务检索的数据数量的示例结果。
// should only be 1
Finished processing 4 document(s).
它在soapUI 中按预期工作。我尝试使用 Apache Axis2 和 JAX-WS,它们按预期工作。
笔记为什么会缓存结果? 如果存在缓存,有没有办法禁用它?
问候,
Philip
Lotus Notes 8.5.2 | Windows XP | JVM 1.6.0
I create a java web service consumer.
Web Service Consumers -> New Web Service Consumer... -> Type: Java
Then, created a Java Agent Calling This web service.
Agents -> New Agent... -> Type: Java
Then imported the Java Web Service Consumer.
Import -> Web Service Consumer
In the java agent I call the web service method like so.
LotusNotesHandlerLocator locator = new LotusNotesHandlerLocator();
LotusNotesHandlerSoap handlerSoap = locator.getLotusNotesHandlerSoap();
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(Long.parseLong(doc.getItemValueString("TimeInMilliseconds").trim()));
Sample sample = handlerSoap.getResult(cal);
// code for updating timestamp added here
Here's a sample result of the number of data retrieved from the web service.
Finished processing 3 document(s).
The web service method only returns the said documents based from the time stamp. I expect that from the next web service call it will only return 1 document. But it also includes the documents previously retrieved by the java agent.
Here's a sample result of the number of data retrieved from the web service.
// should only be 1
Finished processing 4 document(s).
It works as expected in soapUI. I tried using Apache Axis2 and JAX-WS, and they work as expected.
Any reason why notes does caching of results?
Is there a way to disable caching if it exists?
Regards,
Philip
Lotus Notes 8.5.2 | Windows XP | JVM 1.6.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论