gpt4 book ai didi

c# - 如何更改 WCF 服务的默认显示

转载 作者:行者123 更新时间:2023-11-30 16:53:14 26 4
gpt4 key购买 nike

我已经部署了 WCF 服务。当从网络浏览器访问该服务时,它会显示一条消息:

You have created a service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:

svcutil.exe http://sitename/Service1.svc?wsdl

You can also access the service description as a single file:

http://sitename/Service1.svc?singleWsdl

This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service.



如何更改 WCF 服务显示的默认消息?

最佳答案

您不能覆盖默认 页面。但是你可以使用 Help Page .您也可以创建一个完全独立的页面来描述您的服务。

关于c# - 如何更改 WCF 服务的默认显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31723388/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com