1

I need to develop WCF service that receive XML from client and process it. I wrote the service and I get the XML as s string something like:

 [DataContract]
public class TransferData
{
    [DataMember]
    public string xml;
}

But they gave me .xsd file. I am not sure what is this file and how I can use it in WCF service?

Solution can be find in:

Xml validation using XSD schema

Community
  • 1
  • 1
Alma
  • 3,780
  • 11
  • 42
  • 78

1 Answers1

-1

You may serialize XSD-file to string or byte[] (Reliable way to convert a file to a byte[]). However in WCF have limitation file size, for big files used Stream (http://msdn.microsoft.com/en-us/library/ms733742(v=vs.110).aspx).

Community
  • 1
  • 1