We are sending a transaction to our customers using SOAP web service.
Container : None (Component is running as stand alone)
Axis version : 1.6.2
If the transaction size is small, we need to send the content as part of Body.
If the transaction is huge, need to send the content as an attachment.
final ServiceClient sender = new ServiceClient();
final Options options = new Options();
final OMFactory omFactory = OMAbstractFactory.getOMFactory();
DataHandler dataHandler = new DataHandler(new FileDataSource(new File("C://KB_9.9.xml")));
OMText omText = omFactory.createOMText(dataHandler, true);
final OMElement inputData = omFactory.createOMElement("inputData",null);
Our issue: It is working fine and the data reached successfuly. But the issue is attachment is not encoded. It is displaying the content of the file as it is. My question is do we need to enable any of the property of axis to encode the attachment content or we need to manually perform the Base64 Encoding.