我已经built and deployed a custom web services consumer in Java on Domino using the available CXF framework。Lotus Domino。网页服务。 CXF。什么是CXF类的包名称?
这是通过一个XPage来完成的,它调用一些存储为Java设计元素的Java代码。这一切都很完美。 (再次感谢Stephan!)
现在我想以编程方式实现日志记录,看看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());
的问题是,多米诺没有任何可用于导入的cxf类,例如org.apache.cxf.endpoint.Client等。
它们是否在不同的包名下?如果是这样,哪一个?我浏览了一下com.ibm。*包,但似乎没有什么明显的。 Plu类型提前没有显示任何匹配的客户端或ClientProxy。
或者我是否需要将相关的CXF罐子导入我的NSF来完成这个任务?
啊我明白了,谢谢帕努。相反,我会研究一下。 – 2013-02-13 19:39:11