0

I am trying to send the attachment . Currently I am using the CXF webservice which supports MTOM format but I need to send the attachment in DIME .

Please refer the code snippet:-

   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);

The above code snippet dosent work as CXF webservice dosent support org.apache.axis.client.Stub so how do I send my attachment through CXF.

sidkool3k
  • 43
  • 10

1 Answers1

0

DIME has long since bean deprecated. CXF does not support DIME, just MTOM. If you need to do DIME, you'll need to use something other than CXF.

Daniel Kulp
  • 14,447
  • 4
  • 45
  • 37
  • So is their any intermediate format to which we can convert like: operation MTOM --> Some common format -->DIME – sidkool3k Oct 17 '13 at 06:48