post.
service, which is obviously very costly for both processing and bandwidth.
services. it is indeed very basic but perhaps you know something i don't?
interested to hear your response.
"Stefan Huber" <stefan.huber@b-es.de> wrote in message
news:eUQzEcWEHHA.4620@TK2MSFTNGP04.phx.gbl...
> hi tim,
>
> i played with your sample code in
>
http://www.codeproject.com/soap/MTOMWebServices.asp with MTOM.
>
> one question: wehre can i see that the file is really transported via
> MTOM?
> when i activate the trace function in wse i can't see anything - it's only
> base64 coded:
>
> <inputMessage utc="26.11.2006 14:22:53"
> messageId="urn:uuid:bf171798-1536-4f00-b2e5-5929177536a7">
>
> <processingStep description="Unprocessed message">
>
> <soap:Envelope xmlns:xop="
http://www.w3.org/2004/08/xop/include" > xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="
http://www.w3.org/2001/XMLSchema" > xmlns:wsa="
http://schemas.xmlsoap.org/ws/2004/08/addressing" > xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" > xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> >
> <soap:Header>
>
> <wsa:Action>
http://tim.mackey.ie/CodeProject/MTOM/AppendChunk</wsa:Action>
>
> <wsa:MessageID>urn:uuid:bf171798-1536-4f00-b2e5-5929177536a7</wsa:MessageID>
>
> <wsa:ReplyTo>
>
> <wsa:Address>
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
>
> </wsa:ReplyTo>
>
> <wsa:To>http://localhost:1423/WebService/MTOM.asmx</wsa:To>
>
> <wsse:Security>
>
> <wsu:Timestamp wsu:Id="Timestamp-669ca490-d417-4c0a-a4bd-1ae7f71ec5a2">
>
> <wsu:Created>2006-11-26T14:22:53Z</wsu:Created>
>
> <wsu:Expires>2006-11-26T14:27:53Z</wsu:Expires>
>
> </wsu:Timestamp>
>
> </wsse:Security>
>
> </soap:Header>
>
> <soap:Body>
>
> <AppendChunk xmlns="
http://tim.mackey.ie/CodeProject/MTOM"> >
> <FileName>test.kml</FileName>
>
> <buffer>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVR</buffer>
>
> <Offset>0</Offset>
>
> <BytesRead>16384</BytesRead>
>
> </AppendChunk>
>
> </soap:Body>
>
> </soap:Envelope>
>
> </processingStep>
>
>
>
>
>
> or can't you see the MTOM transport in the trace file?
>
> greetings from germany
> stefan
>
>
>
>
>
>
>
>
>
> "Tim_Mac" <tim.mackey@community.nospam> schrieb im Newsbeitrag
> news:%23SquVwQAHHA.4844@TK2MSFTNGP02.phx.gbl...
>> hi smarty, sorry i don't have any actual code available. it was mostly
>> reading from the WSE documentation and looking at the sample
>> applications.
>>
>> good luck
>> tim
>>
>>
>> "smarty" <smarty@nospam.nospam> wrote in message
>> news:DDB483CC-015B-4BBD-91E3-571CC4A2AB4A@microsoft.com...
>>> Hi Tim,
>>>
>>> Thanks again for the reply I did like you code and could find it useful
>>> for
>>> the future but I am trying to evaluate chunking provided with MTOM in
>>> .NET
>>> and if I get time possilby compare to a Java implementation too.
>>>
>>> If you have any examples of what you did with the built in MTOM I would
>>> be
>>> grateful.
>>>
>>> "Tim_Mac" wrote:
>>>
>>>> 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@nospam.nospam> wrote in message
>>>> news:397B0184-E9F4-483E-A984-689E27D8EB07@microsoft.com...
>>>> > 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@nospam.nospam> wrote in message
>>>> >> news:83FA17DF-043C-4D10-9DBC-C50E96859C5C@microsoft.com...
>>>> >> > 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