Re: MTOM and WSE3

Tech-Archive recommends: Fix windows errors by optimizing your registry



hi smarty,
that is correct, each chunk is sent as a separate web service call. this
makes for easy feedback to the user interface. it also allows for very
robust 'resume' functionality, should one of the chunks fail.
i remember experimenting with the MTOM built-in chunking and i was not very
impressed with it. i can't remember all the reasons why, but i found it
better to 'roll my own', especially from the perspective of handling very
large files. my code has scaled well for files of several gigabytes.

hope this helps
tim

"smarty" <smarty@xxxxxxxxxxxxx> wrote in message
news:397B0184-E9F4-483E-A984-689E27D8EB07@xxxxxxxxxxxxxxxx
Hi,

Thanks for that. I have looked at your codeproject article. For
downloading from the server it seems to do it by making succesive web
service
calls. I am after evaluating built in chunking that is specified by the
MTOM
protocol. I am just confused because the WSE3.0 seems to provide settings
for changing chunking but I can't see how to get these to work. The only
examples I have seen populate a byte array with the whole file (storing it
in
memory) and then return the byte array.

Any ideas?

"Tim_Mac" wrote:

hi smarty
i wrote an article on codeproject which may be of use to you.
http://www.codeproject.com/soap/MTOMWebServices.asp
my approach is more concerned with providing detailed progress to a
winforms
user interface. to assist with this, the chunking process is done by
code,
sending each chunk using MTOM but without the built-in MTOM chunking.
the
solution is memory efficient and may be helpful for your scenario.

hope it helps
tim


"smarty" <smarty@xxxxxxxxxxxxx> wrote in message
news:83FA17DF-043C-4D10-9DBC-C50E96859C5C@xxxxxxxxxxxxxxxx
Hi,

I am trying to return a 500Mb file from IIS to a winform client via a
web
service. I would like to use MTOM and have installed WSE3 on the
client
and
server. I can see there is a chunking setting in the WSE3 settings set
to
64K but I am not sure how I should get the chunking to work correctly.

I have used some example code for the server setup as shown below but
this
seems to involve reading the full 500M into a byte array before
returning
it
so WSE can take care of the chunking for me. I can see all the server
memory
being used up when I run the code and the client times out.

Can you provide some example code and advise to efficiently transfer
the
file from the server to the client using chunking without using too
much
memory?

<WebMethod(Description:="This is the MTOM test")> _
Public Function Test16() As Byte()
Dim response As Byte()
Dim filepath As String = AppDomain.CurrentDomain.BaseDirectory +
"download\"
+ filename
response = File.ReadAllBytes(filepath)
Return response
End Function

Thanks





.



Relevant Pages

  • Re: MTOM and WSE3
    ... the future but I am trying to evaluate chunking provided with MTOM in .NET ... If you have any examples of what you did with the built in MTOM I would be ... downloading from the server it seems to do it by making succesive web ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: MTOM and WSE3
    ... wehre can i see that the file is really transported via MTOM? ... i remember experimenting with the MTOM built-in chunking and i was not ... downloading from the server it seems to do it by making succesive web ... I am trying to return a 500Mb file from IIS to a winform client via ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: MTOM and WSE3
    ... my understanding of MTOM is that when it is enabled for a web service on ... client and server, any web methods that send byteas parameters or return ... types, automatically get handled specially by MTOM, specifically that they ... i remember experimenting with the MTOM built-in chunking and i was not ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: MTOM and WSE3
    ... If you have any examples of what you did with the built in MTOM I would be ... i remember experimenting with the MTOM built-in chunking and i was not very ... downloading from the server it seems to do it by making succesive web ... I am trying to return a 500Mb file from IIS to a winform client via a ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: MTOM and WSE3
    ... downloading from the server it seems to do it by making succesive web service ... I am after evaluating built in chunking that is specified by the MTOM ... solution is memory efficient and may be helpful for your scenario. ... I am trying to return a 500Mb file from IIS to a winform client via a web ...
    (microsoft.public.dotnet.framework.webservices.enhancements)