如何在Web服务类中使用xsd文件复杂类型 [英] How to use xsd file complex type in web service class
本文介绍了如何在Web服务类中使用xsd文件复杂类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在.xsd文件中定义了复杂类型(EmployeeInfo)。那么我如何在C#Web Service类中使用该类型呢?我已经在Google上进行了大量搜索,但找不到合适的信息。
提前谢谢。
解决方案
所以你可以手动使用xsd工具来生成类。
请参阅 https://msdn.microsoft.com/en-us/library/ x6c1kb0s(v = VS.100).aspx [ ^ ]
用于文档。
您可以在.NET SDK文件夹中找到该工具。例如C:\Program Files(x86)\ Mysoftoft SDKs \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ BR />
I have complex type (EmployeeInfo) defined in an .xsd file. So how can i use that type in my C# Web Service class? I already done lot of search on Google but can't find proper information.
Thanks in advance.解决方案So you can use the xsd Tool manually to generate the classes.
See https://msdn.microsoft.com/en-us/library/x6c1kb0s(v=VS.100).aspx[^]
for documentation.
You find the tool in the .NET SDK Folder. E.gC:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
这篇关于如何在Web服务类中使用xsd文件复杂类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文