|
problem when generating MIME header of a SOAP packet using SAAJ
I am trying to generate a soap packet using SAAJ.
I have a generated SOAP.xml and an attachment file (which is a zip file).
I am able to generated a packet in following format
------=_Part_0_20920201.1207569691421
Content-Type: text/xml; charset=utf-8
Content-Transfer-Encoding: 8bit
Content-Location: Envelope2290
<< And here is my SOAP.xml file>>
------=_Part_0_20920201.1207569691421
Content-Type: application/octet-stream
Content-Transfer-Encoding: Binary
Content-Location: MeFAttachment.zip
<< And here is my attachment zip file>>
------=_Part_0_20920201.1207569691421—
But the format I want to generate is :
MIME-Version: 1.0
Content-Type: Multipart/Related; boundary=MIMEBoundary; type="text/xml"
Content-Description: Transmission file for IRS MeF
X-eFileRoutingCode: MEF
--MIMEBoundary
Content-Type: "text/xml"; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Location: Envelope2290
<< And here is my SOAP.xml file>>
--MIMEBoundary
Content-Type: application/octet-stream
Content-Transfer-Encoding: Binary
Content-Location: MeFAttachment
<< And here is my attachment zip file>>
--MIMEBoundary—
I am not able to generate the upper 4 lines and the MIMEBoundary. Can anyone plz help me…? Its really Urgent………….
|