473,569 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1339
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...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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
694
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 around I can make on the C# side to hear the connect request? -Bill (don't reply by e-mail, the address is a fake) ______________________________...
22
3246
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 code just works fine: WebRequest request = WebRequest.Create(URL);
0
334
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 getting the following error: An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The underlying...
0
1991
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 must cross a proxy server. The application runs fine through all proxy servers but one that is configured to require a "User-Agent" header. I...
0
2375
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. The application runs fine through all proxy servers but one that is configured to require a "User-Agent" header. I have added the user agent...
0
3850
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 integration services server. In the connection dialog the only editable field I have is server name and I can browse and find the server name SC-DB01. ...
3
1414
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 database and on the same page, loading a grid from the database, then the best way is to connect to database, load the listbox, disconnect, connect again,...
8
6063
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 Java System Access Manager but i 'm not sure), handle session management, get token, send data using post and get methods etc. I listened http traffic...
12
2326
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 works, thats: 1. Category to search from the (Drop down name: ASPDBCatSearch) is working with the Input Text Box Field (name: keyword), based on...
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.