连接到一个来自服务器的WCF服务的WSDL文件。

huangapple go评论85阅读模式
英文:

Connecting a wcf service from a server wsdl file

问题

我正在进行 .net 6 项目的开发,我需要 net461 包。在一个托管为不同服务的测试服务器上,我可以将它作为连接的服务连接到我的项目中。我的担忧是:

  1. 从特定服务器添加该服务,它是否始终连接到该服务器,还是在我的项目中作为独立服务运行?
  2. 从性能方面来说,拥有一个连接的服务是最佳实践吗?
  3. 添加引用是一次性过程,还是始终与 WSDL URL 链接连接?

我从服务器中添加了一个服务。

英文:

I am working on .net 6 project and I need to have net461 package. In a test server that is hosted as a different service. I can connect that one as a connected service to my project. My concerns are,

  1. Adding that service from a particular server is it always connected to that server or is it working as a separate service in my project?
  2. Is it a best practice to have a connected service performance-wise?
  3. Adding reference is a one-time process or is it always connected with the WSDL url link?

I added a service from a server

答案1

得分: 1

  1. 首先,第一个问题。通常,客户端通过HTTP协议调用服务器的服务。HTTP协议具有持久连接和非持久连接。持久连接目前是主要的操作模式。除非服务器是一个特殊的服务器,否则不可能单独为客户端提供服务。这将会很昂贵。

  2. 有许多因素会影响服务的性能,例如服务器性能、网络速度、服务代码和客户端性能。

  3. 如果是一个HTTP持久连接,那么添加一个引用是持久的,如果服务器宕机,服务就会结束。非持久的HTTP连接也会根据具体情况进行讨论。同时,服务也可以通过其他协议完成,比如TCP。

这是我在工作中总结的内容,如果有错误,我将非常感激您指出。

英文:
  1. First of all, the first question. Typically, the client calls the server's services over the HTTP protocol. The HTTP protocol has persistent and non-persistent connections. Persistent connectivity is currently the dominant mode of operation. Unless a server is a special server, it is impossible to serve a client alone. This would be costly.

2.There are many factors that affect service performance: such as server performance, network speed, service code and client performance.

3.If it is an HTTP persistent connection, then adding a reference is persistent, and if the server is down, the service is finished. Non-persistent HTTP connections are also discussed on a case-by-case basis.
At the same time, services can also be completed through other protocols, such as TCP.

This is what I have summed up in my work, and if there are errors, I am very grateful to bring them up.

huangapple
  • 本文由 发表于 2023年7月6日 13:39:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76625803.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定