L
Levi Wilson
I have a web service that adds a DIME attachment:
[WebMethod]
public void GetFile(string filename)
{
SoapContext sc = HttpSoapContext.ResponseContext;
DimeAttachment dimeFile = new DimeAttachment("application/DIME",
TypeFormatEnum.MediaType, @"c:\temp\" + filename);
sc.Attachments.Add(dimeFile);
return;
}
The client that calls this connets to a remote object on another
server to get a list of the needed files to download, then starts to
download these files using the web method above. This works fine on
client machines except for the ones with Windows 98. I have packaged
the Microsoft.Web.Services DLL with the application so the clients can
parse the DIME message. This works, SOMETIMES, however it is
extremely slow (probably why WSE isn't supported on 98). I'm not
worrried about the speed of the download, but I am concerned of how
much it bogs down the system, becuase I have a server-side sponsor
object, therefore the client has a thread that keeps calling a
KeepAlive() method, so when a 98 client is trying to parse the DIME
message, the CPU is so bogged down that the KeepAlive() thread doesn't
get called in time. What I need is a good solution to transfer files
to my 98 clients, and I would LIKE to use my DIME web method still,
but how do I on the 98 clients, SOAP Toolkit 3.0 maybe? I tried using
a web method that returns a byte[] of the file, however this causes
the aspnet_wp.exe to become recycled because it tries to buffer the
entire file into RAM... So, any help on this issue would be great!
Thanks in advance,
Levi
[WebMethod]
public void GetFile(string filename)
{
SoapContext sc = HttpSoapContext.ResponseContext;
DimeAttachment dimeFile = new DimeAttachment("application/DIME",
TypeFormatEnum.MediaType, @"c:\temp\" + filename);
sc.Attachments.Add(dimeFile);
return;
}
The client that calls this connets to a remote object on another
server to get a list of the needed files to download, then starts to
download these files using the web method above. This works fine on
client machines except for the ones with Windows 98. I have packaged
the Microsoft.Web.Services DLL with the application so the clients can
parse the DIME message. This works, SOMETIMES, however it is
extremely slow (probably why WSE isn't supported on 98). I'm not
worrried about the speed of the download, but I am concerned of how
much it bogs down the system, becuase I have a server-side sponsor
object, therefore the client has a thread that keeps calling a
KeepAlive() method, so when a 98 client is trying to parse the DIME
message, the CPU is so bogged down that the KeepAlive() thread doesn't
get called in time. What I need is a good solution to transfer files
to my 98 clients, and I would LIKE to use my DIME web method still,
but how do I on the 98 clients, SOAP Toolkit 3.0 maybe? I tried using
a web method that returns a byte[] of the file, however this causes
the aspnet_wp.exe to become recycled because it tries to buffer the
entire file into RAM... So, any help on this issue would be great!
Thanks in advance,
Levi