473,770 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending a zip file as SOAP attachment

3 New Member
I have to send a zip file whose name is MeFAttachment.z ip 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 'Invali d 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
2 9522
madcatin
1 New Member
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
2,057 Recognized Expert Top Contributor
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

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

Similar topics

3
7052
by: Paul Lamonby | last post by:
Hi, I am sending a file from the server as an email attachment. The file is being attached no problem and sending the email, but I get an error when I try to open it saying it is corrupt. Obviuosly, the file is fine on the server, so the attachment code I am using must be corrupting it, but I dont know what it is: // send email with attachment function emailAttachment($to, $subject, $message, $name, $email,
1
6714
by: Antonio | last post by:
Hi everybody!! First of all, sorry about my english. I promise to improve it. I have a big problem when I try to add an attachment which contains a image in it. I have to solve it as soon as possible so i would really appreciate any help. The mistake thrown is the following:
4
7884
by: Mark | last post by:
i have a very simple web servive Imports System.Web.Services <System.Web.Services.WebService(Namespace:="urn:Example1")> _ Public Class Example1 Inherits System.Web.Services.WebService
0
1488
by: Dragos Marian Barbu | last post by:
Recently I tried to develop a function to help me sending e-mail messages with more than one attachment. Everything is working OK when I am sebding messages with one attachment, but when I try to send more than one file as attachment I get the following error: -------- Error ----------------- Could not access 'CDO.Message' object. at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object args) at...
2
15452
by: Paul Hale | last post by:
I have a vb.net web service and client that are both working fine. If someone wanted to consume our web service using .NET, no problem. Im a little confused on how non .NET clients would use the web service though. Question 1: Does Java etc have some kind of SOAP tool kit developers could use to access our web service? Question 2: .NET conveniently shows what the serialized xml looks like and what the web service expects (Please see...
6
2750
by: Anuradha | last post by:
Dear All How can i send mails using vb.net Thanx all
3
7726
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce value for the UserName token. Is it possilbe at all to do this from VBScript (or jscript?)? I know I will be limited with what I can do with the SOAP message. Eg/ can't sign/encrypt it etc. Thanks,
6
11296
by: Rushwire | last post by:
Does anybody know how to send a meeting request using an ics/vcs (VCalendar) attachment from an asp.net page. I don't want my users to have to double click on the attachment but rather that it is simply recognised automatically as a meeting request. The article below shows an example of very close to what I am trying to do. The difference being that I want the email to be sent as a meeting request not as an attached ics file.
3
2396
by: raj200809 | last post by:
when i m sending mail i received error from symantec Antivirus" Your email message was unable to be sent because your mail server rejected the message 550-5.7.1 the ip you’re using to send mail is not authorized" i have configure smtp server put 127.0.0.1 ip in relay and also put 127.0.0.1 ip in connection. using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing;
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10231
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8887
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.