By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,992 Members | 934 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,992 IT Pros & Developers. It's quick & easy.

Sending a zip file as SOAP attachment

P: 3
I have to send a zip file whose name is MeFAttachment.zip as an attachment in SOAP 1.1 packet.


But I get an error while submitting.

Here is the error description

Server Error 415
IDP Rule 'Invalid HTTP Message' aborted processing. Invalid mime format
System Name: ccgows012
Server Policy: ATS XML Policy
Matched task list:
Failure occurred in task:



Below is the content that I have written.


Expand|Select|Wrap|Line Numbers
  1. MIME-Version: 1.0
  2. Content-Type: Multipart/Related; boundary=MIMEBoundary; type=text/xml; 
  3. Content-Description: Transmission file for IRS MeF.
  4.  
  5. --MIMEBoundary
  6. Content-Type: text/xml; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Content-Location: SoapEnvelope
  9. <?xml version="1.0" encoding="UTF-8"?>
  10. <SOAP:Envelope xmlns="http://www.irs.gov/efile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:efile="http://www.irs.gov/efile" xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ ../message/SOAP.xsd <http://www.irs.gov/efile> ../message/efileMessage.xsd">
  11.     <SOAP:Header>
  12. --- here is soap header part        
  13.     </SOAP:Header>
  14.     <SOAP:Body>
  15.  
  16. -----here is soap body part
  17.             </SOAP:Body>
  18. </SOAP:Envelope>
  19. --MIMEBoundary
  20. Content-Type: application/zip
  21. Content-Transfer-Encoding: Binary
  22. Content-Location: MeFAttachment.zip
  23. --MIMEBoundary
Mar 24 '08 #1
Share this Question
Share on Google+
2 Replies


P: 1
Hi Jyotish, i am trying to repeat what you have done already. I am trying to create an attachment to send to IRS through Mef, can you help me by giving some information on how i should go about solving this.
If you can share the code its much appreciated.
Thanks.


@talk2jyotish
Jun 8 '09 #2

jkmyoung
Expert 100+
P: 2,057
Are you putting your zip data directly into the xml, or are you converting it to a xml friendly form, eg base 64 encoding?
Jun 10 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.