Need a Progressbar while File-Upload as SOAP-Attachement

K

Kai Huener

Hello,

I have written a webservice to recive image-uploads. Since I want to encrypt
the sent SOAP Messages, I use WSE and add the Pictures as a DIME-Attachement
to the SOAP-Message. While the the upload-process, I want to show a
progressbar in the Client-Application (at the moment a shell extension with
a Windows Form) - one for the whole upload and one for each file. But I have
no idea, how to get a handle or a event to show me, how many bytes are
already sent. Is there anybody, who can help me?

Best Regards,
Kai Huener
 
K

Kai Huener

Thanks, seams to be exactly what I'm looking for.

Best Regards,

Kai

Bruce Johnson said:
Take a look at the following article. It describes a solution to the
situation you're trying to address:

Adding a Progress Bar to Your Web Service Client Application -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service11052002.asp

Hope that helps.

Bruce Johnson [C# MVP]
http://www.objectsharp.com/blogs/bruce

Kai Huener said:
Hello,

I have written a webservice to recive image-uploads. Since I want to
encrypt
the sent SOAP Messages, I use WSE and add the Pictures as a
DIME-Attachement
to the SOAP-Message. While the the upload-process, I want to show a
progressbar in the Client-Application (at the moment a shell extension
with
a Windows Form) - one for the whole upload and one for each file. But I
have
no idea, how to get a handle or a event to show me, how many bytes are
already sent. Is there anybody, who can help me?

Best Regards,
Kai Huener
 
K

Kai Huener

Here I am again...

Ok, I tried to use the described way - and it works, but unfortunately, it
is not exacly the solution for my problem. By the described SoapExtention, I
can get the stream after serialization, but since I want to send the
picture(s) as a DIME-Attachement, the stream contains only the SOAP-Message
without attachement. Do you have any idea, how to get the stream, which
contains these DIME-Attachement(s)? I have read something about "channnels",
but the only channels I know are Remoting channels, and I think, that is
another topic...

Best Regards,
Kai


Bruce Johnson said:
Take a look at the following article. It describes a solution to the
situation you're trying to address:

Adding a Progress Bar to Your Web Service Client Application -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service11052002.asp

Hope that helps.

Bruce Johnson [C# MVP]
http://www.objectsharp.com/blogs/bruce

Kai Huener said:
Hello,

I have written a webservice to recive image-uploads. Since I want to
encrypt
the sent SOAP Messages, I use WSE and add the Pictures as a
DIME-Attachement
to the SOAP-Message. While the the upload-process, I want to show a
progressbar in the Client-Application (at the moment a shell extension
with
a Windows Form) - one for the whole upload and one for each file. But I
have
no idea, how to get a handle or a event to show me, how many bytes are
already sent. Is there anybody, who can help me?

Best Regards,
Kai Huener
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top