开发者

DataContract serializer support for imports. Out of band mechanism?

开发者 https://www.devze.com 2023-01-21 04:01 出处:网络
Describing the DataContractSerializers support for import msdn has this to say: Supported. DataContractSerializer supports xs:include and xs:import. However, Svcutil.exe restricts following xs:inclu

Describing the DataContractSerializers support for import msdn has this to say:

Supported. DataContractSerializer supports xs:include and xs:import. However, Svcutil.exe restricts following xs:include/@sc开发者_Go百科hemaLocation and xs:import/@location references when metadata is loaded from a local file. The list of schema files must be passed through an out-of-band mechanism and not through include in this case; included schema documents are ignored.

What does "out-of-band mechanism" mean? There seems to be no other mention of this in the document.

Ref: http://msdn.microsoft.com/en-us/library/ms733112.aspx


It means that in this case ("when metadata is loaded from a local file"), you need to manually download all your schema files and supply them on the svcutil.exe command line; It will not automatically follow links for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消