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.