开发者

Alternate to Web Service C# [closed]

开发者 https://www.devze.com 2023-03-31 12:00 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I am looking for an alternate to web services.

This is what I'm trying to accomplish: On a server, I have a database with a lot of information on it. My clients will use a desktop application to securely log on and make changes and then log off.

At first, I had planned to create a web service, with methods to make changes and connect to database. But for reasons, I have to look towards something else.

Could please help me开发者_Go百科 out?

Thanks!


You can use WCF to implement a service with interchangeable "bindings"

Binding. The binding specifies how to communicate with the endpoint. The binding specifies how the endpoint communicates with the world, including which transport protocol to use (for example, TCP or HTTP), which encoding to use for the messages (for example, text or binary), and which security requirements are necessary (for example, Secure Sockets Layer [SSL] or SOAP message security). For more information, see Using Bindings to Configure Services and Clients. http://msdn.microsoft.com/en-us/library/ms735096.aspx

See "System-Provided Bindings" for some options.

  • NetTcpBinding - A secure and optimized binding suitable for cross-machine communication between WCF applications


Instead of a "web-services", one could look at other tools such ICE which is similar -- in ways -- to CORBA and RMI (and I would dare say parts of WCF). Or, perhaps RPC with Protocol Buffers, Apache Thrift, or even "just" OData, etc -- no shortage of tooling, libraries or approaches.

Will any of these alternatives "be better" than "web-services"? It depends, of course... I would focus on keeping it simple and making it Just Work though :)

Happy coding.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号