简体   繁体   English

Windows窗体应用程序与C#中的网页之间的通信

[英]Communication between Windows Form Application and Web Page in C#

I am developing a windows based application using C#. 我正在使用C#开发基于Windows的应用程序。

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. 根据响应,Windows应用程序应继续进行。

Could you please suggest me some examples or technologies ideal for this scenario? 您能否建议我一些适合这种情况的示例或技术?

I read through the documentations about WebClient and HttpWebRequest. 我通读了有关WebClient和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. Web服务将是一个很好的解决方案。

look here for more information on creating a webservice: http://www.codeproject.com/KB/webservices/myservice.aspx 在此处查找有关创建Web服务的更多信息: 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. 那么您可以像引用类一样导入Web服务,并在客户端C#程序中使用它。

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. http://www.xefteri.com/articles/show.cfm?id=15本文是针对VB的,但这不应该是一个问题,重要的是引用,它是Visual Studio特定而非VB特定。

I would look at a WCF service using a NetTcpBinding. 我将使用NetTcpBinding查看WCF服务。 Here is a good link: 这是一个很好的链接:

http://msdn.microsoft.com/en-us/magazine/cc163394.aspx 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. 我不太确定您在帖子标题中对网页的引用是指什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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