且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Web服务类中使用xsd文件复杂类型

更新时间:2022-10-14 22:56:35

所以你可以手动使用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.g C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools