472,332 Members | 1,142 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,332 software developers and data experts.

DIME Transfer to 98 client? (long message...PLEASE HELP!)

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
Nov 15 '05 #1
1 1872
I got this working...on the client machines, use Soap Toolkit 3.0 as follows
(C#):

//
// Low-Level
//
HttpConnector30 connector = new HttpConnector30Class();
connector.set_Property("EndPointURL",
"http://localhost:8080/DimeService/FileService.asmx");
connector.Connect();
connector.set_Property("SoapAction", "DimeService/GetFile");
connector.BeginMessage();
SoapSerializer30 serializer = new SoapSerializer30Class();
serializer.Init(connector.InputStream);
serializer.StartEnvelope("soap", "", "utf-8");
serializer.WriteXml("<soap:Body>");
serializer.StartBody("");
serializer.WriteXml("<GetFile xmlns=\"DimeService\">");
serializer.WriteXml("<filename>");
serializer.WriteString("TestFile.doc");
serializer.WriteXml("</filename>");
serializer.WriteXml("</GetFile>");
serializer.EndBody();
serializer.EndEnvelope();
SoapReader30 reader = new SoapReader30Class();
DimeParser30 parser = new DimeParser30Class();
IReceivedAttachment file;
ReceivedAttachments30 attachments;
reader.LoadWithParser(connector.OutputStream, (IMessageParser)parser,
"DimeService/GetFile");
attachments = reader.Attachments;
file = attachments[0];
file.SaveToFile("c:\\TestFile.doc", true);

"Levi Wilson" <le******@direcway.com> wrote in message
news:b8**************************@posting.google.c om...
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

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Philip D Heady | last post by:
What is with this error message?????? First part validates, second part fails... getimagesize (filename...) failed to open stream: No such file...
5
by: MJ23 | last post by:
Dear all, I have tried used the download version of oracle8i client and the CD come with oracle8i but after clicking the setup.exe file, it...
5
by: Tank | last post by:
I have had this post up here when i was trying to figure out how to make leading zeros and have been able to fudge that to work. I am now have...
6
by: raj | last post by:
When I try to sort my combo box I get the following error. "Cannot sort a ComboBox that has a DataSource set. Sort the data using the underlying...
2
by: Steve | last post by:
I am only trying to create a DataView, and I get the following error message. The dataset is on a Template form. The form where I get the error...
6
by: Rik | last post by:
Hello Experts, I have a communication server in VB.NET. It was working fine from last 6 months, but now start giving error message like that. ...
1
by: swtstrawberry | last post by:
I wrote the program and the complier at school is Microsoft Visual 6.0.......but i keep getting one error message and i have no idea what it...
1
by: rajarya | last post by:
Hi , I need to read a file(xml file) froma location in server by my client side HTML+Javascript code ,I did this using JSP,but now my requirement...
1
by: Mero | last post by:
hi to all; i'm using asp.net 1.1, c#.net.visual studio 2003 to make my asp web application in my application, i want when i add a new topic a link...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.