Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / July 2006

Tip: Looking for answers? Try searching our database.

Dime with WSE 3.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin Burton - 25 Jul 2006 21:12 GMT
I have an application that uses DIME to send and receive attachments. Now I
want to migrate to WSE 3.0 and as I understand it DIME is not supported. I
got lost with the web pages on how to send/receive large amounts of data.
Maybe someone can help me translate WSE 2.0 code to WSE compatible code or
explain the differences and what needs to be done. Currently I have overrides
like:

Public Class SoapEnvelopeWithAttachment
   Inherits SoapEnvelope
. . .
   Public Overrides Sub WriteToStream(ByVal StreamToWriteTo As
System.IO.Stream, ByVal closeStream As Boolean)

. . .
   Public Shared Function ReadFromStream(ByVal InStream As
System.IO.Stream) As SoapEnvelopeWithAttachment

These functions are called like:

       If RequestType = MessageFormat.Application_Dime Then
           DirectCast(se,
SoapEnvelopeWithAttachment).WriteToStream(objRequest.GetRequestStream(), True)
       Else
           se.WriteToStream(objRequest.GetRequestStream(), True)
       End If

and

           If ResponseType = MessageFormat.Text_Xml Then
. . .
               Return seResponse
           Else
               If objResponse.ContentType.IndexOf("application/dime") = -1
Then
                   Throw New Exception("Expected response of contenttype
'application/dime'")
               End If
               seResponseWA =
SoapEnvelopeWithAttachment.ReadFromStream(objResponse.GetResponseStream)
               objResponse.Close()
               Return seResponseWA
           End If

What needs to happen to convert this application to use MTOM (or Mime)? I am
not sure what the reason to move away from Dime or what the advantages of
MTOM are.

Thank you for your patience.

Kevin
Martin Kulov [MVP] - 26 Jul 2006 20:34 GMT
>I have an application that uses DIME to send and receive attachments. Now I
> want to migrate to WSE 3.0 and as I understand it DIME is not supported. I
> got lost with the web pages on how to send/receive large amounts of data.
> Maybe someone can help me translate WSE 2.0 code to WSE compatible code or
> explain the differences and what needs to be done.

Kevin,

MTOM is pretty straightforward to use. Just delete your DIME code and look
here [1], where I have described how to use MTOM :).

[1] http://www.ftponline.com/vsm/2006_05/magazine/columns/gettingstarted/

Regards,

Signature

Martin Kulov
http://www.codeattest.com/blogs/martin

MVP, MCT, MCSD, MCPD

Kevin Burton - 26 Jul 2006 23:51 GMT
Do you have the full article that you could forward to me? It seems to reject
my account creation.

> >I have an application that uses DIME to send and receive attachments. Now I
> > want to migrate to WSE 3.0 and as I understand it DIME is not supported. I
[quoted text clipped - 10 lines]
>
> Regards,
Martin Kulov [MVP] - 27 Jul 2006 23:16 GMT
> Do you have the full article that you could forward to me? It seems to
> reject
> my account creation.

The article itself is publicly accessible. Are you experiencing problems
getting the code? What is the error that you get? I can notify the editorial
to fix the problem, and if it does not work again I can provide you link to
the code.

Regards,

Signature

Martin Kulov
http://www.codeattest.com/blogs/martin

MVP, MCT, MCSD, MCPD

Kevin Burton - 28 Jul 2006 00:40 GMT
I can view the first page but then am prompted to create an account or
login. The account that I created seems to be inaccessible.

> > Do you have the full article that you could forward to me? It seems to
> > reject
[quoted text clipped - 6 lines]
>
> Regards,
Martin Kulov [MVP] - 29 Jul 2006 22:36 GMT
> I can view the first page but then am prompted to create an account or
> login. The account that I created seems to be inaccessible.

Kevin,

here are the two zips that contain the code before and after adding support
for MTOM.

[1] http://www.codeattest.com/blogs/martin/RemoteDiskWSE30Before.zip
[2] http://www.codeattest.com/blogs/martin/RemoteDiskWSE30After.zip

Regards,

Signature

Martin Kulov
http://www.codeattest.com/blogs/martin

MVP, MCT, MCSD, MCPD


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.