-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from digipost/master
xsd forslag
- Loading branch information
Showing
7 changed files
with
933 additions
and
0 deletions.
There are no files selected for viewing
118 changes: 118 additions & 0 deletions
118
xsd/forslag/oppslagstjeneste-metadata-14-05_repaired.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,118 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
|
|||
<xs:schema attributeFormDefault="unqualified" | |||
elementFormDefault="qualified" | |||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |||
xmlns:sawsdl="http://www.w3.org/ns/sawsdl" | |||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" | |||
xmlns:tns="http://begrep.difi.no" | |||
xsi:schemaLocation="http://www.w3.org/2000/09/xmldsig# http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd" | |||
targetNamespace="http://begrep.difi.no" | |||
> | |||
|
|||
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" | |||
schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd"/> | |||
|
|||
<xs:annotation> | |||
<xs:appinfo>Metadata for Oppslagstjenesten</xs:appinfo> | |||
<xs:documentation xml:lang="nb"> | |||
Definisjon av XML-typer benyttet i webtjeneste-grensesnitt. | |||
</xs:documentation> | |||
</xs:annotation> | |||
|
|||
|
|||
<xs:element name="Person" type="tns:Person"/> | |||
|
|||
<xs:complexType name="Person" sawsdl:modelReference="http://begrep.difi.no/Oppslagstjenesten/Person.html"> | |||
<xs:sequence> | |||
<xs:element type="tns:personidentifikator" name="personidentifikator"/> | |||
<xs:element type="tns:reservasjon" name="reservasjon" minOccurs="0"/> | |||
<xs:element type="tns:status" name="status" minOccurs="0"/> | |||
<xs:element type="tns:beskrivelse" name="beskrivelse" minOccurs="0" /> | |||
<xs:element type="tns:Kontaktinformasjon" name="Kontaktinformasjon" minOccurs="0" /> | |||
<xs:element type="tns:SikkerDigitalPostAdresse" name="SikkerDigitalPostAdresse" minOccurs="0" /> | |||
<xs:element name="X509Certificate" type="xs:string" minOccurs="0" maxOccurs="1" /> | |||
</xs:sequence> | |||
</xs:complexType> | |||
|
|||
<xs:simpleType name="personidentifikator" sawsdl:modelReference="http://begrep.difi.no/Felles/personidentifikator.html"> | |||
<xs:restriction base="xs:string"> | |||
<xs:length value="11"/> | |||
</xs:restriction> | |||
</xs:simpleType> | |||
|
|||
<xs:simpleType name="status" sawsdl:modelReference="http://begrep.difi.no/Felles/status.html"> | |||
<xs:restriction base="xs:string"> | |||
<xs:enumeration value="AKTIV"/> | |||
<xs:enumeration value="SLETTET"/> | |||
<xs:enumeration value="IKKE_REGISTRERT"/> | |||
</xs:restriction> | |||
</xs:simpleType> | |||
|
|||
<xs:simpleType name="beskrivelse" sawsdl:modelReference="http://begrep.difi.local/Felles/beskrivelse.html"> | |||
<xs:restriction base="xs:string" /> | |||
</xs:simpleType> | |||
|
|||
<xs:simpleType name="reservasjon" sawsdl:modelReference="http://begrep.difi.no/Felles/reservasjon.html"> | |||
<xs:restriction base="xs:string"> | |||
<xs:enumeration value="JA" /> | |||
<xs:enumeration value="NEI" /> | |||
</xs:restriction> | |||
</xs:simpleType> | |||
|
|||
<xs:complexType name="Kontaktinformasjon" sawsdl:modelReference="http://begrep.difi.no/Oppslagstjenesten/Kontaktinformasjon.html"> | |||
<xs:sequence> | |||
<xs:element type="tns:Mobiltelefonnummer" name="Mobiltelefonnummer" minOccurs="0" /> | |||
<xs:element type="tns:Epostadresse" name="Epostadresse" minOccurs="0" /> | |||
</xs:sequence> | |||
</xs:complexType> | |||
|
|||
<xs:complexType name="SikkerDigitalPostAdresse" sawsdl:modelReference="http://begrep.difi.no/Oppslagstjenesten/SikkerDigitalPostAdresse.html"> | |||
<xs:sequence> | |||
<xs:element type="tns:postkasseadresse" name="postkasseadresse" /> | |||
<xs:element type="tns:postkasseleverandoerAdresse" name="postkasseleverandoerAdresse" /> | |||
</xs:sequence> | |||
</xs:complexType> | |||
|
|||
<xs:simpleType name="postkasseadresse" sawsdl:modelReference="http://begrep.difi.no/Felles/postkasseadresse.html"> | |||
<xs:restriction base="xs:string" /> | |||
</xs:simpleType> | |||
|
|||
<xs:simpleType name="postkasseleverandoerAdresse" sawsdl:modelReference="http://begrep.difi.no/Felles/postkasseleverandoerAdresse.html"> | |||
<xs:restriction base="xs:string" /> | |||
</xs:simpleType> | |||
|
|||
<xs:complexType name="Epostadresse" sawsdl:modelReference="http://begrep.difi.no/Oppslagstjenesten/Epostadresse.html"> | |||
<xs:simpleContent> | |||
<xs:extension base="tns:epostadresse"> | |||
<xs:attribute type="xs:dateTime" name="sistOppdatert" use="required" sawsdl:modelReference="http://begrep.difi.no/Felles/sistOppdatert.html"/> | |||
<xs:attribute type="xs:dateTime" name="sistVerifisert" use="optional" sawsdl:modelReference="http://begrep.difi.no/Felles/sistVerifisert.html"/> | |||
</xs:extension> | |||
</xs:simpleContent> | |||
</xs:complexType> | |||
|
|||
<xs:simpleType name="mobiltelefonnummer" sawsdl:modelReference="http://begrep.difi.no/Felles/mobiltelefonnummer.html"> | |||
<xs:restriction base="xs:string"> | |||
<xs:minLength value="8"/> | |||
<xs:maxLength value="20"/> | |||
</xs:restriction> | |||
</xs:simpleType> | |||
|
|||
<xs:simpleType name="epostadresse" sawsdl:modelReference="http://begrep.difi.no/Felles/epostadresse.html"> | |||
<xs:restriction base="xs:string"> | |||
<xs:minLength value="3"/> | |||
<xs:maxLength value="50"/> | |||
</xs:restriction> | |||
</xs:simpleType> | |||
|
|||
<xs:complexType name="Mobiltelefonnummer" sawsdl:modelReference="http://begrep.difi.no/Oppslagstjenesten/Mobiltelefonnummer.html"> | |||
<xs:simpleContent> | |||
<xs:extension base="tns:mobiltelefonnummer"> | |||
<xs:attribute type="xs:dateTime" name="sistOppdatert" use="required" sawsdl:modelReference="http://begrep.difi.no/Felles/sistOppdatert.html"/> | |||
<xs:attribute type="xs:dateTime" name="sistVerifisert" use="optional" sawsdl:modelReference="http://begrep.difi.no/Felles/sistVerifisert.html"/> | |||
</xs:extension> | |||
</xs:simpleContent> | |||
</xs:complexType> | |||
|
|||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,47 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<manifest | |||
xmlns="http://begrep.difi.no/sdp/schema_v10" | |||
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" | |||
xmlns:tns="http://begrep.difi.no" | |||
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" | |||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
xsi:schemaLocation="http://begrep.difi.no/sdp/schema_v10 sdp-manifest.xsd "> | |||
|
|||
<meldingsId>7122e25b-1870-4183-9889-d7a11dde3bf2</meldingsId> | |||
|
|||
<mottaker> | |||
<person> | |||
<tns:personidentifikator>01234567890</tns:personidentifikator> | |||
<tns:reservasjon>NEI</tns:reservasjon> | |||
<tns:status>AKTIV</tns:status> | |||
<tns:beskrivelse>...</tns:beskrivelse> | |||
<tns:Kontaktinformasjon> | |||
<tns:Mobiltelefonnummer sistOppdatert="2001-12-31T12:00:00" sistVerifisert="2001-12-31T12:00:00">12345678</tns:Mobiltelefonnummer> | |||
<tns:Epostadresse sistOppdatert="2001-12-31T12:00:00" sistVerifisert="2001-12-31T12:00:00">ola@nordmann.no</tns:Epostadresse> | |||
</tns:Kontaktinformasjon> | |||
<tns:SikkerDigitalPostAdresse> | |||
<tns:postkasseadresse>ola.nordmann#0ABC</tns:postkasseadresse> | |||
<tns:postkasseleverandoerAdresse>984661185</tns:postkasseleverandoerAdresse> | |||
</tns:SikkerDigitalPostAdresse> | |||
<tns:X509Certificate>tns:X509Certificate</tns:X509Certificate> | |||
</person> | |||
</mottaker> | |||
|
|||
<avsender> | |||
<avsenderId>0123456789</avsenderId> | |||
<fakturaKonto>ØK1</fakturaKonto> | |||
</avsender> | |||
|
|||
<hoveddokument href="vedtak_2398324.pdf" mime="application/pdf"> | |||
<tittel>Vedtak</tittel> | |||
</hoveddokument> | |||
|
|||
<vedlegg href="info.html" mime="text/html"> | |||
<tittel>informasjon</tittel> | |||
</vedlegg> | |||
|
|||
<vedlegg href="journal.txt" mime="text/plain"> | |||
<tittel>journal</tittel> | |||
</vedlegg> | |||
|
|||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,68 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<xsd:schema version="1.0" targetNamespace="http://begrep.difi.no/sdp/schema_v10" | |||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
xmlns:tns="http://begrep.difi.no" | |||
xmlns:sdp="http://begrep.difi.no/sdp/schema_v10" | |||
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" | |||
xmlns:enc="http://www.w3.org/2001/04/xmlenc#" | |||
elementFormDefault="qualified"> | |||
|
|||
<xsd:include schemaLocation="sdp-melding.xsd"/> | |||
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/> | |||
<xsd:import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="xenc-schema.xsd"/> | |||
<xsd:import namespace="http://begrep.difi.no" schemaLocation="oppslagstjeneste-metadata-14-05_repaired.xsd"/> | |||
|
|||
|
|||
<xsd:element name="manifest" type="sdp:Manifest"/> | |||
|
|||
|
|||
<xsd:complexType name="Manifest"> | |||
<xsd:sequence> | |||
<xsd:element name="meldingsId" type="sdp:GUID" minOccurs="0" maxOccurs="1"/> | |||
<!-- TODO:kanskje vi burde ha med sikkerhetsnivaa her? --> | |||
<xsd:element name="mottaker" type="sdp:Mottaker" minOccurs="1" maxOccurs="1"/> | |||
<xsd:element name="avsender" type="sdp:Avsender" minOccurs="1" maxOccurs="1"/> | |||
<xsd:element name="hoveddokument" type="sdp:Dokument" minOccurs="1" maxOccurs="1"/> | |||
<xsd:element name="vedlegg" type="sdp:Dokument" minOccurs="0" maxOccurs="99"/> | |||
</xsd:sequence> | |||
</xsd:complexType> | |||
|
|||
|
|||
<xsd:simpleType name="GUID"> | |||
<xsd:restriction base="xsd:string"> | |||
<xsd:pattern value="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"/> | |||
</xsd:restriction> | |||
</xsd:simpleType> | |||
|
|||
|
|||
<xsd:complexType name="Dokument"> | |||
<xsd:sequence> | |||
<xsd:element name="tittel" minOccurs="1" maxOccurs="1"> | |||
<xsd:simpleType> | |||
<xsd:restriction base="xsd:string"> | |||
<xsd:maxLength value="100" /> | |||
</xsd:restriction> | |||
</xsd:simpleType> | |||
</xsd:element> | |||
</xsd:sequence> | |||
<xsd:attribute name="href" use="required"> | |||
<xsd:simpleType> | |||
<xsd:restriction base="xsd:string"> | |||
<xsd:minLength value="4" /> | |||
<xsd:maxLength value="100" /> | |||
</xsd:restriction> | |||
</xsd:simpleType> | |||
</xsd:attribute> | |||
<xsd:attribute name="mime" use="required"> | |||
<xsd:simpleType> | |||
<xsd:restriction base="xsd:string"> | |||
<xsd:enumeration value="application/pdf"/> | |||
<xsd:enumeration value="text/html"/> | |||
<xsd:enumeration value="text/plain"/> | |||
</xsd:restriction> | |||
</xsd:simpleType> | |||
</xsd:attribute> | |||
</xsd:complexType> | |||
|
|||
</xsd:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,73 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<melding | |||
xmlns="http://begrep.difi.no/sdp/schema_v10" | |||
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" | |||
xmlns:tns="http://begrep.difi.no" | |||
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" | |||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
xsi:schemaLocation="http://begrep.difi.no/sdp/schema_v10 sdp-melding.xsd "> | |||
|
|||
|
|||
<mottaker> | |||
<person> | |||
<tns:personidentifikator>12345678901</tns:personidentifikator> | |||
<tns:reservasjon>NEI</tns:reservasjon> | |||
<tns:status>AKTIV</tns:status> | |||
<tns:beskrivelse>tns:beskrivelse</tns:beskrivelse> | |||
<tns:Kontaktinformasjon> | |||
<tns:Mobiltelefonnummer sistOppdatert="2001-12-31T12:00:00" sistVerifisert="2001-12-31T12:00:00">12345678</tns:Mobiltelefonnummer> | |||
<tns:Epostadresse sistOppdatert="2001-12-31T12:00:00" sistVerifisert="2001-12-31T12:00:00">ola@nordmann.no</tns:Epostadresse> | |||
</tns:Kontaktinformasjon> | |||
<tns:SikkerDigitalPostAdresse> | |||
<tns:postkasseadresse>ola.nordmann#0ABC</tns:postkasseadresse> | |||
<tns:postkasseleverandoerAdresse>984661185</tns:postkasseleverandoerAdresse> | |||
</tns:SikkerDigitalPostAdresse> | |||
<tns:X509Certificate>tns:X509Certificate</tns:X509Certificate> | |||
</person> | |||
</mottaker> | |||
|
|||
<avsender> | |||
<avsenderId>1234567890</avsenderId> | |||
<fakturaKonto>ØK1</fakturaKonto> | |||
</avsender> | |||
|
|||
<virkningsdato>2014-05-17</virkningsdato> | |||
<aapningskvittering>false</aapningskvittering> | |||
<sikkerhetsnivaa>3</sikkerhetsnivaa> | |||
<ikkeSensitivHoveddokumenttittel>Hurra for 17. mai</ikkeSensitivHoveddokumenttittel> | |||
|
|||
<varsler> | |||
<epostVarsel> | |||
<varselTekst>Viktig melding fra Staten</varselTekst> | |||
<repetisjoner> | |||
<dagerEtter>0</dagerEtter> | |||
<dagerEtter>7</dagerEtter> | |||
</repetisjoner> | |||
</epostVarsel> | |||
<smsVarsel> | |||
<varselTekst>Viktig melding fra Staten</varselTekst> | |||
<repetisjoner> | |||
<dagerEtter>1</dagerEtter> | |||
</repetisjoner> | |||
</smsVarsel> | |||
</varsler> | |||
|
|||
<dokumentPakke> | |||
<encryptedKey Encoding="http://tempuri.org" Id="idvalue0" MimeType="" Recipient="" Type="http://tempuri.org"> | |||
<xenc:EncryptionMethod Algorithm="http://tempuri.org"> | |||
<xenc:KeySize>0</xenc:KeySize> | |||
<xenc:OAEPparams>MA==</xenc:OAEPparams> | |||
</xenc:EncryptionMethod> | |||
<ds:KeyInfo Id="idvalue1"> | |||
<ds:KeyName>ds:KeyName</ds:KeyName> | |||
</ds:KeyInfo> | |||
<xenc:CipherData> | |||
<xenc:CipherValue>MA==</xenc:CipherValue> | |||
</xenc:CipherData> | |||
<xenc:ReferenceList> | |||
<xenc:DataReference URI="http://tempuri.org"/> | |||
</xenc:ReferenceList> | |||
<xenc:CarriedKeyName>xenc:CarriedKeyName</xenc:CarriedKeyName> | |||
</encryptedKey> | |||
</dokumentPakke> | |||
</melding> |
Oops, something went wrong.