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

View: 26673|Reply: 0

[Source] .NET/C# generates a CS file from a WSDL XML file

[Copy link]
Posted on 2020-11-26 16:41:53 | | | |
We don't have access to the http URL, so we can't add a reference by right-clicking on the project, we can only find the .asmx file in the old project, and we call the file directly through the file generation service.

First, open the VS 2019 Developer Command Line Tool

Visual Studio 2019 Developer Command Prompt v16.8.0
Copyright (c) 2020 Microsoft Corporation
Enter the command as follows:

/language:C#    指定编程语言为 C#
/n:DT   指定名称空间为 DT
/out:      指定文件保存路径和文件名

The renderings are as follows:







Previous:.NET/C# parses XML format content
Next:Mobile and desktop OAuth 2.0 security analysis and CodeVerifier mechanism
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