Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Client/Server Application problem

Status
Not open for further replies.

RizMan

Programmer
Jun 13, 2003
20
FR
I couldn't think of a decent subject for this thread, sorry.

Ok, here's what I'm trying to do but I have no idea about how to do it.

On the WebServer I have an aspx file which just displays data from an XML file. (Messages from users in my intranet)

Now every user in my local intranet should be able to post some sort of message. However, I want to user to be able to use a simple windows application (a form) where he inputs the message and clicks the submit button. Now the Client Windows Application should send the data to the Web Server which then updates the XML file and reloads the aspx file.

What I tried to do is using a webservice but I figured that I can't call a Webservice from an Application which is running Client Side.

How should I go about this?
 
Hi,

You could put the XML file on a shared drive and let the client program update it directly (as you would do with a relational database).
I guess the aspx file looks into the XML file on every request, so there is no update problem (or I'm I wrong?)

Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
That's right, the aspx looksup the XML file on every refresh.

I thought of your method already. However, I don't want to do it that way. Not that it wouldn't be possible. But I want to learn writing Client/Server Applications, so I want the XML to be stored on the Webserver and modified by a programm/service running on the server.
 
Indeed you can call the webservice from the client....

Add it as a WebReference then treat (from the client POV) just as any other class library.

Craig
 
Craig:
Thanks that's exactly what I was looking for. I think I just missed that you can add Web References
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top