Below i have given code i have written in WCF service.
Hi Monomachus, I want to validate a xml file and against a xml schema using a WCF service in C#.
So far this is not a hard task but I'd like to sign files in order to prevent harm in case these get hacked and modified (as it would allow installing harmful software).
I found some tutorials on MSDN and in various blogs which perfectly show how to sign an XML file.
Errors in XML documents will stop your XML applications.Is there any way without prompting the user for installing certificates? That someone validates the signature with your public key.The public key - as its name indicates - is public and can be distributed. The public is only used for validating the signature.Here I am not able to write a method to get XML file as input from the client who is consuming the service.I am using Xml Text Reader and Xml Validating Reader to read and validate the XML file.
I don't get how I should provide the necessary data to validate it.