472,780 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,780 software developers and data experts.

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 3160
=?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= <ja******@noemail.noemailwrote in
news:3A**********************************@microsof t.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?SmFrb2IgTGl0aG5lcg==?= <ja******@noemail.noemailwrote in
news:F3**********************************@microsof t.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?SmFrb2IgTGl0aG5lcg==?= <ja******@noemail.noemail>
References: <3A**********************************@microsoft.co m>
<sQ*************@TK2MSFTNGHUB02.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
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...
1
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...
0
by: saliwen | last post by:
Can WSE2.0 implements SOAP Attachments of W3C for interoperations ?
5
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...
1
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,...
0
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...
5
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...
16
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...
1
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 =...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.