Cerrado

Create a XSD

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 ([url removed, login to view])

I want to add 3 XML elements to The Header

Routing

TrackAndTrace

Signature (=w3c XMLDsig)

The Routing and TrackAndTrace is developed. ( = Included as [url removed, login to view])

The XMLdsig is a w3c standard (= Included as [url removed, login to view])

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 [url removed, login to view])

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();

[url removed, login to view](null, @"C:\xsd\[url removed, login to view]");

[url removed, login to view](null, @"C:\xsd\[url removed, login to view]");

[url removed, login to view](null, @"C:\xsd\[url removed, login to view]");

[url removed, login to view] = [url removed, login to view];

[url removed, login to view] = [url removed, login to view];

[url removed, login to view] += settings_ValidationEventHandler;

// Create the XmlReader object.

XmlReader reader = [url removed, login to view]([url removed, login to view]);

// Parse the file.

while ([url removed, login to view]())

{

}

Habilidades: Windows Desktop

Ver más: xsd errors, parse a string, xml gui windows, xml xsd validation, create add note, reader tag, windows extension, schemas, create xml xsd, context code, xsd xml, windows 2012 standard, create note add, parse header, read cdata, cdata base64, soap example, simple windows gui, null null object, routing code, read xml file windows, create enter, windows read xml file, xml insert, namespace extension

Información del empleador:
( 87 comentarios ) Västerås, Sweden

ID de proyecto: #2672568