Skip to content
Permalink
Browse files

oppdatert forslag.. wip

  • Loading branch information...
tor-kleiberg committed Mar 25, 2014
1 parent 23e8211 commit 8da7ad0739dabb46a022f57b945046496146159f
@@ -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>
@@ -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>
@@ -0,0 +1,48 @@
<?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>
<identifier authority="iso6523-actorid-upis">0000:1234567890</identifier>
<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>
@@ -0,0 +1,67 @@
<?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.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"/>
<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>
Oops, something went wrong.

0 comments on commit 8da7ad0

Please sign in to comment.
You can’t perform that action at this time.