473,842 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send attachment with DIME

I have never sent attachment with webservices.
Yesterday I got the challenge to redesign my solution that sends large XML
structures to a Java webservice. The reason was that the Java SOAP
implementation had problems consuming too large files that way. They
encountered a memory leak in the parser that made the whole mainframe
environment to crash! So the decided they should go for DIME attachments
instead.

I use VB.Net in VS2005.

Where do I begin?
Should I install WSE 3.0?

It was hard to find examples.
I found some Microsoft artcicles from 2002 and 2003 but no code examples.
When searching this forum for DIME I just received ONE result where the
writer recommended NOT to use DIME attachments .......
Oct 23 '07 #1
5 3261
=?Utf-8?B?SmFrb2IgTGl 0aG5lcg==?= <ja******@noema il.noemailwrote in
news:3A******** *************** ***********@mic rosoft.com:
Where do I begin?
Should I install WSE 3.0?

It was hard to find examples.
I found some Microsoft artcicles from 2002 and 2003 but no code
examples. When searching this forum for DIME I just received ONE
result where the writer recommended NOT to use DIME attachments
.......
DIME is obsolete and no longer supported in WSE 3.0. If you need DIME
support you should install WSE 2.0. DIME has been replaced by MTOM in WSE
3.0 - you should mention this to your Java developers.

Here's an example on how to use DIME (WSE 2.0)

http://www.codeproject.com/cs/webser...eredUpload.asp

Oct 23 '07 #2
Thanks, I will definitely tell him this right away!
I possible I will try to switch to MTOM attachments.
Oct 24 '07 #3
Your summary is correct!
I use .Net Framework 2.0 and have not yet used any of the WSE packages.
This means I can choose WSE 3.0 without hesitation.

Java team mentioned they could use several techniques for attachment.
But on request they told me this means they need to upgrade the "AXIS
to version 2". Sounds like they would avoid this.
They also asked if .Net supports plain MIME attachments, if so that might
be a possibility. Any disadvantages with that approach?
Oct 24 '07 #4
=?Utf-8?B?SmFrb2IgTGl 0aG5lcg==?= <ja******@noema il.noemailwrote in
news:F3******** *************** ***********@mic rosoft.com:
Java team mentioned they could use several techniques for attachment.
But on request they told me this means they need to upgrade the "AXIS
to version 2". Sounds like they would avoid this.
They also asked if .Net supports plain MIME attachments, if so that might
be a possibility. Any disadvantages with that approach?
I think what they want is WS-Attachments? Again that's been superceeded by
MTOM.

MTOM is the suggested replacement by W3C - so DIME/WS-Attachments/etc. etc.
are non-standard and obsolete.

You can try using WSE 2.0 in .NET 2.0 - it might work (probably will?).
Oct 24 '07 #5
Thanks for your reply,

Would you further describe the "plain MIME" you mentioned? I know that
plain html page based form can post data via multi-part form request. So
I'm wondering whether your service vendor will use a http file upload like
approach to let you post these info? Anyway, it does be common that when
the data be transfer is too large, webservice will not be the proper
solution and maybe a raw http form post or even socket communication will
perform better.

Let me know if you need any further ideas or help on this.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?SmFrb2IgTGl 0aG5lcg==?= <ja******@noema il.noemail>
References: <3A************ *************** *******@microso ft.com>
<sQ************ *@TK2MSFTNGHUB0 2.phx.gbl>
Subject: RE: Send attachment with DIME
Date: Tue, 23 Oct 2007 23:40:03 -0700

Your summary is correct!
I use .Net Framework 2.0 and have not yet used any of the WSE packages.
This means I can choose WSE 3.0 without hesitation.

Java team mentioned they could use several techniques for attachment.
But on request they told me this means they need to upgrade the "AXIS
to version 2". Sounds like they would avoid this.
They also asked if .Net supports plain MIME attachments, if so that might
be a possibility. Any disadvantages with that approach?

Oct 25 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
327
by: Trevor Best | last post by:
Is there a way to send an attachment by email, either in a SendObject or mailto hyperlink? What I want to send is an export file, SendObject doesn't allow me to apply my export spec to separators I need are not applied etc. -- Error reading sig - A)bort R)etry I)nfluence with large hammer
1
2451
by: Ipsita | last post by:
Hi! I am trying SOAP with DIME attachments in web services. The web service sends the file as attachment say "test.doc", and the client has to read that and populate it in a textbox control. I had asked this question earlier, and got the reply that the data is tranferred in binary format on the wire. I read the stream, and convert it to string, but I get some junk characters in my textbox. I am writing my code below, so that you can see...
0
2830
by: saliwen | last post by:
Can WSE2.0 implements SOAP Attachments of W3C for interoperations ?
5
4106
by: pat | last post by:
Hi, i'am using an ac2K progrom which sends automaticle emails with an attachment. Since last week , a error occurs with number 2293. Our mail program is Outlook 2003. It's probably a matter of safety in outlook, but i didn't saw an answer to prevent this error on theweb. Where can i configure the safetyitem that Outlook sees the mail not langer
1
1624
by: jgentes | last post by:
I have read through the manual on php dot net, and a number of tutorials around the net, however when I create an email and attempt to attach a file, I always get the hex (textual) representation, rather then having the file be attached. Below is a test that I completed, hard coding all the values necessary to test if it was miscellaneous beginning reasons why i was having difficulty $path = "/path/to/Test_file.pdf"; $name =...
0
2918
by: SSG | last post by:
Dear All, Pls see the bw form in html. <FORM id=FORM1 name=FORM1 action=Upload.asp method=post encType=multipart/form-data> File 1:<INPUT type=file name=FILE1> Description 1:<INPUT name=DESCR1><BR> <INPUT type=submit value=Upload!> </FORM>
5
12033
by: vufltrn | last post by:
I am trying to send an attachment using CDO message on a gmail account. The email is sent, but it does not have the attachment. Here is my code: --------------------- Function fcnSendPage(strTo As String, AMS As String) 'Dim cdoMessage Set cdoMessage = CreateObject("CDO.Message")
16
3039
by: blaze77 | last post by:
Hi, I'm somewhat of a power user in excel and a newbie to Access though the possibilities are exciting me :-) I am trying to create a tool in Access to replace an existing tool in Excel. My question is whether I will be able to replicate some key features that I was able to do in Excel. The Excel tool was for operators in my company to put in records of Quality Control tests in production. Since we have a lot of complex tests, I was...
1
7548
by: perhapscwk | last post by:
Below code works however it seems it will upload and save the attachment to server, how can send attachment without save the file into my server? and how to limit the file size to 3mb? $email = $_POST; $from = $_POST; $subject = $_POST; $message = $_POST; // Obtain file upload vars
0
9717
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
10952
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
10618
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...
1
10683
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10320
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
9459
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...
0
7045
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4506
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
4096
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.