473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 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 1961
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 or directory } elseif ($photo) { $ext =...
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 doesn't start and has no response. I have tried to...
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 trouble getting the loop that makes the folders to...
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 data model." ...
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 message inherits from the template form where all of...
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. 21-03-2005 07:58:27...
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 means...i bolded the line where it occurs n the error...
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 has been changed and I donot want any server side...
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 or icon about this topic appear in another page ....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.