【问题标题】:How can i know whether CXF use JIBX Databinding or not?我如何知道 CXF 是否使用 JIBX 数据绑定?
【发布时间】:2012-11-23 08:17:50
【问题描述】:

我正在为 Web 服务的客户端应用程序使用 Apache CXF。我打算为此使用 JIBX 数据绑定。

当我测试我的应用程序时,我得到了以下日志。我很困惑我的应用程序是否使用日志中的 JIBX 数据绑定,因为“绑定贡献的拦截器”列表不包含与 JIBX 相关的拦截器。

我对 CXF 和 JIBX 知之甚少。请让我知道。

提前致谢。

----------------------------------
Part of Logging 
........
2012. 11. 23 오후 4:49:28 org.apache.cxf.jibx.JibxDataBinding initialize
더 자세히: Initialize JiBX Databinding for [{http://server.sample.prototype.topas/}TopasPrototypeWebServiceServerService] service
........

자세히: Interceptors contributed by binding: [org.apache.cxf.interceptor.AttachmentOutInterceptor@14dd758, org.apache.cxf.interceptor.StaxOutInterceptor@174d93a, org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@61a907, org.apache.cxf.interceptor.WrappedOutInterceptor@1a0225b, org.apache.cxf.interceptor.BareOutInterceptor@2f8b5a, org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@165c7f6, org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@12aea3e]
.........
------------------------------------

【问题讨论】:

  • 我不确定 CXF 是否使用拦截器进行数据绑定;他们被插入到处理的不同阶段。首先,您是如何向 CXF 介绍 JIBX 的?
  • 我提供了一个简单的 Apache CXF 和 JiBX 示例应用程序 here 并在博客上写了 here

标签: cxf jibx


【解决方案1】:

保利乌斯,

JiBX 网站上有几个示例。

使用 JiBX 实现 CXF SOAP 服务器: http://jibx.sourceforge.net/maven-jibx-plugin/webservice.html

使用 JiBX 实现 RESTful 服务: http://jibx.sourceforge.net/maven-jibx-plugin/rest.html

祝你好运!

唐·科利 JiBX 贡献者

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-04-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-06
    • 2023-02-08
    相关资源
    最近更新 更多