Generate C# Code from *.xsd files for use as WCF service

泪湿孤枕 提交于 2019-12-08 12:46:08

问题


Update

I want to generate C# classes files to be used as WCF service based on *.xsd files. How can I achieve that?


回答1:


Simply try:

svcutil <xsd_file>

where <xsd_file> is the path to the XSD file. As John Saunders mentioned, read the command-line syntax and available command options using svcutil /?. This tool does have a lot of functionality, so read carefully.

Also, remember to use the Windows SDK Command Prompt instead of the standard Command Prompt to execute this tool.




回答2:


use wcf.blue plugin for visual studio



来源:https://stackoverflow.com/questions/8407889/generate-c-sharp-code-from-xsd-files-for-use-as-wcf-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!