简体   繁体   English

使用HTTP格式向客户端/服务器发送XML消息

[英]Using http format in sending XML message to client/server

I am trying to create a client-server application that would communicate using xml in a http format. 我正在尝试创建将使用http格式的xml进行通信的客户端服务器应用程序。

I already researched about client-server transferring file using TCP/IP. 我已经研究过使用TCP / IP进行客户端-服务器传输文件。 It uses tcclient/tcplistener which worked very fine. 它使用tcclient / tcplistener效果很好。 However I was trying to build an application that could use an http format of request to do the transferring of file. 但是,我试图构建一个可以使用请求的http格式进行文件传输的应用程序。

I also had downloaded some codes for an implementation of an http server but the http client needs to be a web browser, is there a way that I could just have ac# windows FORM as a client and pass those http webrequest/webresponse classes ? 我还下载了一些用于实现HTTP服务器的代码,但是http客户端必须是Web浏览器,有没有办法我可以将ac#Windows FORM作为客户端并传递那些http webrequest / webresponse类?

Is there any suggestion that you can give? 有什么建议可以给吗?

Thank you very much in advance. 提前非常感谢您。 I hope you could help. 希望您能提供帮助。

I think what you're doing here is basically reinventing Web Services. 我认为您在这里所做的基本上是在重新定义Web服务。 For .NET, you can either look at ASMX Web Services or at WCF . 对于.NET,您可以查看ASMX Web服务WCF

I also think should have a look at Windows Communication Foundation , it gives a lot of possibilities, settings and security . 我也认为应该看看Windows Communication Foundation ,它提供了很多可能性,设置和security I recommend the following books to read, that also helped me: 我推荐阅读以下书籍,这对我也有帮助:

Hope it helps you. 希望对您有帮助。

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

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