【问题标题】:Converting attachment format form MTOM to DIME将附件格式从 MTOM 转换为 DIME
【发布时间】:2013-10-16 13:15:29
【问题描述】:

我正在尝试发送附件。目前我正在使用支持 MTOM 格式的 CXF 网络服务,但我需要以 DIME 发送附件。

请参考代码sn-p:-

   Works fine:

     USDWebService ss = new USDWebService(wsdlURL, SERVICE_NAME);
    USDWebServiceSoap port = ss.getUSDWebServiceSoap();


      The problem Area this is the code given by my client to interact with their    system :

       ((org.apache.axis.client.Stub)port)._setProperty(Call.ATTACHMENT_ENCAPSULATION_FORMAT,
            Call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);
        ((org.apache.axis.client.Stub) port).addAttachment(dhandler);

上面的代码 sn-p dosent 工作作为 CXF webservice dosent 支持 org.apache.axis.client.Stub 那么我如何通过 CXF 发送我的附件。

【问题讨论】:

    标签: web-services cxf mtom


    【解决方案1】:

    DIME 早已弃用 bean。 CXF 不支持 DIME,只支持 MTOM。如果你需要做 DIME,你需要使用 CXF 以外的东西。

    【讨论】:

    • 它们的任何中间格式也是如此,我们可以转换为:操作 MTOM --> 一些常见格式 -->DIME
    猜你喜欢
    • 1970-01-01
    • 2018-01-31
    • 1970-01-01
    • 1970-01-01
    • 2012-08-31
    • 1970-01-01
    • 2011-09-16
    • 2011-04-21
    • 1970-01-01
    相关资源
    最近更新 更多