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 .......
=?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= <jaklithn@noemail.noemail> wrote in
news:3A19BB6C-CF14-4D5D-B6F3-51965D379520@microsoft.com:
> Where do I begin?
> Should I install WSE 3.0?
[quoted text clipped - 4 lines]
> 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/webservices/DimeBufferedUpload.asp
Jakob Lithner - 24 Oct 2007 07:34 GMT
Thanks, I will definitely tell him this right away!
I possible I will try to switch to MTOM attachments.
Hi,
From your description, your .net client app have to consume a java based
webservice and currently the JAVA service want to use DIME for transfering
large documente and you're wondering how to deal with DIME in .net
application correct?
As for DIME, the WSE component does have provided support for it. However,
it is supported in the WSE 2.0 version which works with .net framework
1.1(VS 2003). So is your .net application 2.0 based or can also adopt .net
1.1 based solution? Here are some articles about using WSE 2+DIME:
#Configure DIME with WSE 2.0
http://www.dnzone.com/showDetail.asp?TypeId=2&NewsId=961
#How to: Add Attachments to a SOAP Message by Using DIME
http://msdn2.microsoft.com/en-us/library/ms824597.aspx
#Dime Buffered Upload
http://www.codeproject.com/cs/webservices/DimeBufferedUpload.asp
For .NET framework 2.0, new WSE 3.0 is provided to work with it. However,
in .WSE 3.0, we have enhanced binary content transfer approach "MTOM" and
"DIME" is replaced.
Migrating to WSE 3.0
http://msdn.microsoft.com/msdnmag/issues/06/04/ServiceStation/default.aspx
http://msdn2.microsoft.com/en-us/library/aa529283.aspx
Will your java service also support MTOM?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= <jaklithn@noemail.noemail>
Subject: Send attachment with DIME
Date: Tue, 23 Oct 2007 00:41:06 -0700
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 .......
Jakob Lithner - 24 Oct 2007 07:40 GMT
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?
Spam Catcher - 24 Oct 2007 14:57 GMT
=?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= <jaklithn@noemail.noemail> wrote in
news:F3F7A21D-FC23-4D67-89B3-5786E32B4670@microsoft.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?).
Steven Cheng[MSFT] - 25 Oct 2007 07:16 GMT
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==?= <jaklithn@noemail.noemail>
References: <3A19BB6C-CF14-4D5D-B6F3-51965D379520@microsoft.com>
<sQ0ef6eFIHA.360@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?
Mark Deal - 26 Nov 2007 01:22 GMT
So if I am using Visual Studio 2005 and WSE 3.0 then is there a way to
consume DIME attachments?
Mark Deal
Document & Data Solutions, LLC
> Thanks for your reply,
>
[quoted text clipped - 31 lines]
> They also asked if .Net supports plain MIME attachments, if so that might
> be a possibility. Any disadvantages with that approach?