Class to Validate XML Against XSD

Recently i was involved in programming generic interface for Submitting PO. I came across the XSD concept of programming. I used the XSD to validate xml passed from different sub system and serialize the data. Below is the sample code to validate the Xml against Xsd ///////////////////////////// using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Schema;using System.Xml;using System.IO;... Continue Reading →

WCF DataService with Custom Function and parameter

namespace Senthamil.Sample {     public class PORSS : DataService<ModelEntities>     {         // This method is called only once to initialize service-wide policies.         public static void InitializeService(DataServiceConfiguration config)         {             // TODO: set rules to indicate which entity sets and service operations are visible, updatable, etc.             // Examples:             config.SetEntitySetAccessRule("RSS_STATUS", EntitySetRights.AllRead);            ... Continue Reading →

Create a website or blog at

Up ↑