473,322 Members | 1,188 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,322 software developers and data experts.

check for a connect request

I need to add to my server application the ability to receive up to
30K of XML data from a client application. I know I can use an
XmlTextReader() to receive the data and put it into the cache. What I
am mostly not sure about is how the server is supposed to know that a
client is wanting to connect and is ready to send data. Do I set up a
polling thread in the server to check for a connect request or is
there a better way?

Apr 30 '07 #1
4 1323
Can you be alittle more specific? is your application a windows app , a web
app, a windows service? what is the enviroment?
"Tenacious" wrote:
I need to add to my server application the ability to receive up to
30K of XML data from a client application. I know I can use an
XmlTextReader() to receive the data and put it into the cache. What I
am mostly not sure about is how the server is supposed to know that a
client is wanting to connect and is ready to send data. Do I set up a
polling thread in the server to check for a connect request or is
there a better way?

Apr 30 '07 #2
On Apr 30, 2:56 pm, Vijay <V...@discussions.microsoft.comwrote:
Can you be alittle more specific? is your application a windows app , a web
app, a windows service? what is the enviroment?

"Tenacious" wrote:
I need to add to my server application the ability to receive up to
30K of XML data from a client application. I know I can use an
XmlTextReader() to receive the data and put it into the cache. What I
am mostly not sure about is how the server is supposed to know that a
client is wanting to connect and is ready to send data. Do I set up a
polling thread in the server to check for a connect request or is
there a better way?- Hide quoted text -

- Show quoted text -
The client is a C# Windows application running on XP. It will be
distributed to outside customers. The server application is a web
application that will display lines on a map based on the data points
that the clent sends up to it. The client has a built in browser for
viewing the map. The server application is running on Windows Server
2003.

I myself am a Windows Application Developer trying learn enough about
ASP.Net while getting this project done for my company. I have the
website running and displaying lines on the map using hard coded data.
I have gone through books and web searches trying to find the best way
to send data between my client and the website, but most scenarios
seem to be the server sending data to the client. Any suggestions
would be greatly appreciated.

Thanks

Apr 30 '07 #3
There are couple of ways to get this done but one that comes to my mind is to
use WebServices. You already mentioned client sending data using xml files.
Figure out a way to send this file using webservices to the server. I had
once used XMLHTTP to post data to server long before it was called AJAX. Like
i said there are couple of ways to do this.

HTH
Vijay
May 1 '07 #4
On Apr 30, 8:10 pm, Vijay <V...@discussions.microsoft.comwrote:
There are couple of ways to get this done but one that comes to my mind is to
use WebServices. You already mentioned client sending data using xml files.
Figure out a way to send this file using webservices to the server. I had
once used XMLHTTP to post data to server long before it was called AJAX. Like
i said there are couple of ways to do this.

HTH
Vijay
For anybody who is having the same problem I was having, I solved my
problem by attaching an asmx page to my website and simply using a
WebMethod that takes a string as an argument. All I have to do is call
this method from my client windows application passing it a string of
data points. My WebMethod then writes the data to a file where my
webpage reads it before displaying. Very simple, but difficult to find
information on how to do this. I didn't know that an asmx page could
be attached to a website that is not originally a web service unitil I
just plain tried it. I guess that makes it a webservice/website. I am
in the early stages of learning ASP.net. I hope I am doing this in a
practical way. Only time will tell.

May 1 '07 #5

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

Similar topics

3
by: Bill | last post by:
When vb6 Winsock.RemoteHost is set to "127.0.0.1", c# socket listener cannot hear connect request (my old vb6 winsock listener could hear it...). Why doesn't this work, and is there a work...
22
by: Kristof Thys | last post by:
Hello, I'm developing a C# - windows forms application. To get some information for my application, I'm connecting to an URL, wich gives me XML generated using php. With 90% of the users, this...
0
by: Krishna | last post by:
Well, I got it working when running against my test server (IIS5 W2K svr, I will attach a sample of the code at the bottom of this message), but now I'm connecting to our client (Apache) I'm...
0
by: =?Utf-8?B?TWlrZTEz?= | last post by:
Sorry for the cross post from dontnet.framework but I'm hoping this may see more activity here. I have written an application to access a web service. The application runs at multiple sites and...
0
by: =?Utf-8?B?TWlrZTEz?= | last post by:
Sorry for the cross post; I'm hoping this will get a response here... I have written an application to access a web service. The application runs at multiple sites and must cross a proxy server....
0
by: Neff | last post by:
I have a clustered installation of SQL Server 2005 with SSIS installed on the cluster. I'm running SQL Server Management Server on one of the cluster nodes and trying to connect to the...
3
by: jc | last post by:
Hi there: Reading from internet i found that the best way to use a database is to connect and disconnect on every single database request, so if you are loading a listbox manually from a...
8
by: inpuarg | last post by:
I 'm developing a c# (.net 2.0) windows forms application and in this application i want to connect to a java servlet page (HTTPS) (which is servlet 2.4 and which may be using Web Based SSO Sun...
12
by: iahamed | last post by:
Hi Everyone, I got two parts of my advance search to work, I am running out of Logic to connect the third. My mind is in swing! Pleaseeeeeeeee Help me. I have 3 Fiels to search, the First two...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.