简体   繁体   中英

Communication between Windows Form Application and Web Page in C#

I am developing a windows based application using C#.

This should be used by the customer after some verification. Every time they enter the details, the information should be validated in the server. And based on the response the windows-application should proceed further.

Could you please suggest me some examples or technologies ideal for this scenario?

I read through the documentations about WebClient and HttpWebRequest. But still I am not clear. Sorry I am an Embedded Systems Programmer. I haven't worked on Server related technologies.

Thanks for your help.

我会看一下Windows Communication Foundation,它是一个服务和消息框架,专为您要执行的操作而设计。

a webservice would be a good solution.

look here for more information on creating a webservice: http://www.codeproject.com/KB/webservices/myservice.aspx

then you can import your webservice like a reference to a class and use it in your clientside c# programm.

http://www.xefteri.com/articles/show.cfm?id=15 this article is for VB, but it shouldn't be a problem, the important thing is the referencing, which is Visual Studio specific and not VB specific.

I would look at a WCF service using a NetTcpBinding. Here is a good link:

http://msdn.microsoft.com/en-us/magazine/cc163394.aspx

I am a little unsure what your reference to a web page in the post title refers to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM