The XSD is a standard w3C Soap.
The task is to add some new tags to the soap header and also add the w3c xmldsig to the soap header.
xml ...
<\---|\---|\---|\---| Insert namespace/imports
soap:Envelope
...
soap:Header
...
<\---|\---|\---|\---| Insert new tag Routing
<\---|\---|\---|\---| Insert new tag TrackAndTrace
soap:Body
...
<\---|\---|\---|-- Add Attribute ID=SignedBody
<\---|\---|\---|-- BodyContext as string and/or xml
Create simple GUI in VS C#
- Enter XSD(s)
- Enter XML
- Validate
## Deliverables
The simple version is to take the sample XML in VS and create a xsd schema from that.
THIS IS NOT WHAT I WANT TO BE DONE!!
The example file is a SOAP xml with some new XML elements ([login to view URL])
I want to add 3 XML elements to The Header
Routing
TrackAndTrace
Signature (=w3c XMLDsig)
The Routing and TrackAndTrace is developed. ( = Included as [login to view URL])
The XMLdsig is a w3c standard (= Included as [login to view URL])
I want the Routing and TrackAndTrace to have namespace fms2s
I want the Signature to have namespace xmldsig
The Body should both be able to have
- a simple string like "anydata"
- a base64 string in a CData
- any XML element(s)
- Forced to have attribute ID="SignedBody" (= for xmldsig )
From the standard w3c Soap xsd (= included as [login to view URL])
do one of the options:
-Create a new XSD with all functionality from original w3c + Metadata
-Make 3 XSD
1. The standard w3c SOAP xsd
2. The standard w3c XMLdisg xsd
3. An "extension" with the Metadata xsd
The GUI should do a simple validation of an example xml
and report any xml errors against the XSD(s).
NOTE!!
There is no internet connection and the GUI validation must rely on files on the OS.
The code for the validation could look like this:
XmlReaderSettings settings = new XmlReaderSettings();
[login to view URL](null, @"C:\xsd\[login to view URL]");
[login to view URL](null, @"C:\xsd\[login to view URL]");
[login to view URL](null, @"C:\xsd\[login to view URL]");
[login to view URL] = [login to view URL];
[login to view URL] = [login to view URL];
[login to view URL] += settings_ValidationEventHandler;
// Create the XmlReader object.
XmlReader reader = [login to view URL]([login to view URL]);
// Parse the file.
while ([login to view URL]())
{
}