Encoder integration example.

Oct 6, 2013 at 3:06 PM
Hi Guys,
Can someone please add an example on how to integrate this encoder in any application?
I have a scenario where i receive a Service Response with multipart as text and pdf attachment where pdf attachment is in binary format. Please provide some examples on how to encode these attached messages from SOAP.

My Raw soap response is as below
HTTP/1.1 200 OK
Connection: close
Date: Sun, 06 Oct 2013 03:11:58 GMT
Transfer-Encoding: chunked
Content-Type: multipart/related; boundary=MIME_Boundary;  start=8460896605339667140-12b859f5.1418b1c8834.-72b5;  type="text/xml"
X-Powered-By: Servlet/2.5 JSP/2.1

Content-ID: 8460896605339667140-12b859f5.1418b1c8834.-72b5
Content-Type: text/xml; charset=utf-8
Content-Transfer-Encoding: 8bit

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:retrieveContractResponse xmlns:ns2="com.mobility.cmc.webservices.common.dto" xmlns:ns1="com.mobility.cmc.webservices.contract.service">All rellated required data </ns1:retrieveContractResponse></soapenv:Body></soapenv:Envelope>
Content-Type: application/pdf
Content-Transfer-Encoding: binary
Content-Disposition: attachment; filename="contract.pdf"

%PDF-1.4 and so on....