Wednesday 15 June 2011

c# - How use .xsd file in WCF service? -



c# - How use .xsd file in WCF service? -

i need develop wcf service receive xml client , process it. wrote service , xml s string like:

[datacontract] public class transferdata { [datamember] public string xml; }

but gave me .xsd file. not sure file , how can utilize in wcf service?

solution can find in:

xml validation using xsd schema

you may serialize xsd-file string or byte[] (c#, reliable way convert file byte[]). in wcf have limitation file size, big files used stream (http://msdn.microsoft.com/en-us/library/ms733742(v=vs.110).aspx).

c# xml wcf xsd

No comments:

Post a Comment