A XSD file is created from a copy of W3C SOAP schema. = [login to view URL]
The [login to view URL] is changed to import 3 other XSD
= FMZTYX_Filter
=FMS2S_Routing
=FMS2S_Signature
The 2 first add tags to the SOAP header.
The third is a copy of W3C XML Dsig without any changes.
The task is to make a validation to the schema file
var settings = new XmlReaderSettings {ValidationType = [login to view URL]};
[login to view URL] |= [login to view URL];
[login to view URL] |= [login to view URL];
[login to view URL] |= [login to view URL];
[login to view URL] |= [login to view URL];
[login to view URL] += ValidationCallBack;
var reader = [login to view URL](@"C:\temp\[login to view URL], settings);
while ([login to view URL]()){}
[login to view URL](_fileIsValid ? "File validates with XSD schema" : "File do NOT validate with XSD schema");
private static void ValidationCallBack(object sender, ValidationEventArgs args)
{
if ([login to view URL] == [login to view URL])
{
_fileIsValid = false;
[login to view URL]([login to view URL]("Warning: Matching schema not found. No validation occurred.{0}", [login to view URL]));
}
else
{
_fileIsValid = false;
[login to view URL]([login to view URL]("Validation error: {0}", [login to view URL]));
}
}
This is a sample code of I try to validate the xml 10kb_SOAP_SIGN_VERIFY.xml.
The problem is that the file [login to view URL] validates with notepad++ and editix but this simple code example do not validate.
Then I change this:
I changed processContents="lax" to processContents="skip".
The samplecode works with skip but not with lax (=original W3C)
The original W3C xsd has "lax" but I have to change it to "skip" to make the .Net validation work.
Notepad++ and EditIx validates the [login to view URL] with lax or with skip.
Explain why I have to change to skip or If I have to change in one (or many) XSD schema files.
Change in the samplecode is also a OK solution.
Since I've never done a project on freelancer before I went a head and looked into the project before I bid to make sure I could deliver. I ran your code and reproduced the validation error. I've done some research and have the answer as to what is going on. If you accept my bid I can send you my answer right away. (Assuming its not while I'm away at work.)