This article is a mirror article of machine translation, please click here to jump to the original article.

View: 25094|Reply: 1

[WCF/Web Servics] Improve WCF security by prohibiting the generation of WSDL metadata

[Copy link]
Posted on 7/19/2020 11:01:30 PM | | | |
After we have developed the WCF service, when deploying the WCF service to the production environment, if the interface address is stolen by others, we can obtain the interface information (metadata) through the ?wsdl or ?singleWsdl parameters. For example, interface methods, interface parameters, return parameters, etc.
As shown below:



Improve the security of wcf, prohibit the return of metadata information in XML format, and modify the Web.config file as follows:



Try the access again, as shown below:



After banning, it does not affect the normal call of the client




Previous:VS 2019 uses svcutil.exe tools to generate the call file
Next:Excel utilizes macros to merge cells
 Landlord| Posted on 11/26/2020 4:42:04 PM |
.NET/C# generates a CS file from a WSDL XML file
https://www.itsvse.com/thread-9485-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com