我已经使用可用的 CXF 框架在 Domino 上的 Java 中构建并部署了一个自定义 Web 服务使用者。
这是通过 XPage 完成的,该 XPage 调用一些存储为 Java 设计元素的 Java 代码。这一切都很完美。(再次感谢斯蒂芬!)
现在我想以编程方式实现日志记录,以查看此处详述的 SOAP 请求/响应。
所以我正在尝试使用以下内容:
进口
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 来完成此操作?