Home > Net >  Form the application what is a reasonable way for data exchange with the server?
Form the application what is a reasonable way for data exchange with the server?

Time:09-27

Question: in recent days have been entangled with winform/WPF application is to use WCF method or webapi way with the server for data exchange,

Environmental requirements: form program you'd better keep on the.net framework 3.5 or so, the old man to take care of XP, server system is lowest serve 2008,

A form application, a web application,

Business: form application need to use special printer, so specific business process, especially web application using normal printer, use a vue + hungry framework

Details: the project has been used before is three/seven layers model, equivalent to the direct connect database, there are now suggest using WCF, used after feel after each update WCF, especially the debugging environment and formal environment IP, window procedure is to update the service reference, very troublesome, and if used webapi can't like using WCF method call the corresponding function, it is convenient, but also encapsulate the HTTP request and so on, if you use a database directly connected way, think is not flexible, I only know that native app is call interface, as for concrete is not clear, have to the H5 is needless to say, such as ajax,

Web since I use the vue that set of, natural go web API, because WCF support restful way, so the last version with the WCF. Now want to change the interface, helping to deal with this problem,

O light spray

CodePudding user response:

The
refer to the original poster chuan920826 response:
...
Web since I use the vue that set of, natural go web API, because WCF support restful way, so the last version with the WCF. Now want to change the interface, helping to deal with this problem,
.


Restful WebApi can be WCF client calls,
  •  Tags:  
  • C#
  • Related