java - 莲花多米诺骨牌。网页服务。 CXF。 CXF 类的包名称是什么?

标签 java cxf xpages lotus-domino

我已经built and deployed a custom web services consumer in Java on Domino using the available CXF framework .

这是通过 XPage 完成的,XPage 调用一些存储为 Java 设计元素的 Java 代码。一切都很完美。 (再次感谢斯蒂芬!)

现在我想以编程方式实现日志记录,以查看 SOAP 请求/响应 detailed here .

所以我尝试使用以下内容:

进口

import org.apache.cxf.endpoint.Client;
import org.apache.cxf.frontend.ClientProxy;
import org.apache.cxf.interceptor.LoggingInInterceptor;
import org.apache.cxf.interceptor.LoggingOutInterceptor;

记录拦截器代码

CustomWebService customWebService = new CustomWebService(new URL(WSDL_URL));
CustomWebServiceSoap customWebServiceSoap = customWebService.getCustomWebServiceSoap();

CustomWebServiceSoap port = customWebService.getPort(customWebServiceSoap.getClass());

Client client = ClientProxy.getClient(port);
client.getInInterceptors().add(new LoggingInInterceptor());
client.getOutInterceptors().add(new LoggingOutInterceptor()); 

问题是 Domino 没有任何可用于导入的 cxf 类,例如org.apache.cxf.endpoint.Client 等

它们是否具有不同的包名称?如果有,是哪一个?我查看了 com.ibm.* 包,但似乎没有什么明显的。 Plu type-ahead 没有显示任何与 Client 或 ClientProxy 匹配的内容。

或者我是否需要将相关的 CXF jar 导入我的 NSF 才能完成此操作?

最佳答案

如果您想使用 CXF,您肯定需要包含 JAR。

但是 Stephan 文章中介绍的 Web 服务客户端功能不是使用 CXF 类,而是使用 JAX-WS 类(它只使用 CXF wsdl2java,但您也可以使用它的 JAX-WS 版本) 。这是从版本 6 开始的 Java 的一部分。我不确定 CXF 在记录 JAX-WS 客户端时是否有任何帮助,我认为您需要查看记录 JAX-WS 而不是 CXF。

关于java - 莲花多米诺骨牌。网页服务。 CXF。 CXF 类的包名称是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14860363/

相关文章:

java - HermiT 推理机的数据类型为 “UnsupportedDatatypeException”

java - 使用 Apache CXF 的 REST WebService 中的 UTF-8 编码字符串

xpages - SessionListener sessionDestroyed 未调用

javascript - 在 xp :table control 上启动数据表

java - 正确使用 Java -D 命令行参数

java - vertx访问verticle类之外的事件总线

java - 在Java中使用正则表达式进行分割

java - 部署的 org.apache.cxf.binding.AbstractBaseBindingFactory/bus 需要映射名称

java - Cxf 转换特征 : How to change a specific element?

xpages - 表达式语言等效于 getComponent()