Skip to content

Commit

Permalink
Merge pull request #73 from digipost/mottaker_person_bug
Browse files Browse the repository at this point in the history
Rettet feil i XSD. Går bort fra å bruke oppslagstjenestens type til å br...
  • Loading branch information
aberner committed May 26, 2014
2 parents 2a4b45e + 5c766d9 commit e8aeff3
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 54 deletions.
20 changes: 4 additions & 16 deletions eksempler/sdpManifest.xml
@@ -1,27 +1,15 @@
<?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:difi="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 ../xsd/sdp-manifest.xsd ">

<mottaker>
<person>
<difi:personidentifikator>17051400000</difi:personidentifikator>
<difi:reservasjon>NEI</difi:reservasjon>
<difi:status>AKTIV</difi:status>
<difi:beskrivelse>difi:beskrivelse</difi:beskrivelse>
<difi:Kontaktinformasjon>
<difi:Mobiltelefonnummer sistOppdatert="2001-12-31T12:00:00" sistVerifisert="2001-12-31T12:00:00">12345678</difi:Mobiltelefonnummer>
<difi:Epostadresse sistOppdatert="2001-12-31T12:00:00" sistVerifisert="2001-12-31T12:00:00">ola@nordmann.no</difi:Epostadresse>
</difi:Kontaktinformasjon>
<difi:SikkerDigitalPostAdresse>
<difi:postkasseadresse>ola.nordmann#0ABC</difi:postkasseadresse>
<difi:postkasseleverandoerAdresse>984661185</difi:postkasseleverandoerAdresse>
</difi:SikkerDigitalPostAdresse>
<difi:X509Certificate>difi:X509Certificate</difi:X509Certificate>
<personidentifikator>17051400000</personidentifikator>
<postkasseadresse>ola.nordmann#0ABC</postkasseadresse>
<mobiltelefonnummer>12345678</mobiltelefonnummer>
<epostadresse>ola@nordmann.no</epostadresse>
</person>
</mottaker>

Expand Down
19 changes: 4 additions & 15 deletions eksempler/sdpMelding-digital.xml
Expand Up @@ -2,8 +2,6 @@
<digitalPost
xmlns="http://begrep.difi.no/sdp/schema_v10"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:difi="http://begrep.difi.no"
xmlns:enc="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 ../xsd/sdp-melding.xsd ">

Expand Down Expand Up @@ -62,19 +60,10 @@

<mottaker>
<person>
<difi:personidentifikator>17051400000</difi:personidentifikator>
<difi:reservasjon>NEI</difi:reservasjon>
<difi:status>AKTIV</difi:status>
<difi:beskrivelse>difi:beskrivelse</difi:beskrivelse>
<difi:Kontaktinformasjon>
<difi:Mobiltelefonnummer sistOppdatert="2001-12-31T12:00:00" sistVerifisert="2001-12-31T12:00:00">12345678</difi:Mobiltelefonnummer>
<difi:Epostadresse sistOppdatert="2001-12-31T12:00:00" sistVerifisert="2001-12-31T12:00:00">ola@nordmann.no</difi:Epostadresse>
</difi:Kontaktinformasjon>
<difi:SikkerDigitalPostAdresse>
<difi:postkasseadresse>ola.nordmann#0ABC</difi:postkasseadresse>
<difi:postkasseleverandoerAdresse>984661185</difi:postkasseleverandoerAdresse>
</difi:SikkerDigitalPostAdresse>
<difi:X509Certificate>difi:X509Certificate</difi:X509Certificate>
<personidentifikator>17051400000</personidentifikator>
<postkasseadresse>ola.nordmann#0ABC</postkasseadresse>
<mobiltelefonnummer>12345678</mobiltelefonnummer>
<epostadresse>ola@nordmann.no</epostadresse>
</person>
</mottaker>

Expand Down
19 changes: 4 additions & 15 deletions eksempler/sdpMelding-print.xml
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<digitalPost
xmlns="http://begrep.difi.no/sdp/schema_v10"
xmlns:difi="http://begrep.difi.no"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:enc="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 ../xsd/sdp-melding.xsd ">

Expand Down Expand Up @@ -62,19 +60,10 @@

<mottaker>
<person>
<difi:personidentifikator>17051400000</difi:personidentifikator>
<difi:reservasjon>NEI</difi:reservasjon>
<difi:status>AKTIV</difi:status>
<difi:beskrivelse>difi:beskrivelse</difi:beskrivelse>
<difi:Kontaktinformasjon>
<difi:Mobiltelefonnummer sistOppdatert="2001-12-31T12:00:00" sistVerifisert="2001-12-31T12:00:00">12345678</difi:Mobiltelefonnummer>
<difi:Epostadresse sistOppdatert="2001-12-31T12:00:00" sistVerifisert="2001-12-31T12:00:00">ola@nordmann.no</difi:Epostadresse>
</difi:Kontaktinformasjon>
<difi:SikkerDigitalPostAdresse>
<difi:postkasseadresse>ola.nordmann#0ABC</difi:postkasseadresse>
<difi:postkasseleverandoerAdresse>984661185</difi:postkasseleverandoerAdresse>
</difi:SikkerDigitalPostAdresse>
<difi:X509Certificate>difi:X509Certificate</difi:X509Certificate>
<personidentifikator>17051400000</personidentifikator>
<postkasseadresse>ola.nordmann#0ABC</postkasseadresse>
<mobiltelefonnummer>12345678</mobiltelefonnummer>
<epostadresse>ola@nordmann.no</epostadresse>
</person>
</mottaker>

Expand Down
21 changes: 17 additions & 4 deletions xsd/sdp-felles.xsd
@@ -1,12 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://begrep.difi.no/sdp/schema_v10"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:difi="http://begrep.difi.no"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
targetNamespace="http://begrep.difi.no/sdp/schema_v10"
elementFormDefault="qualified" version="1.0">

<xsd:import namespace="http://begrep.difi.no" schemaLocation="oppslag/oppslagstjeneste-metadata-14-05.xsd"/>
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="w3/xmldsig-core-schema.xsd"/>

<xsd:complexType name="Melding" abstract="true">
Expand Down Expand Up @@ -45,14 +43,29 @@

<xsd:complexType name="Mottaker">
<xsd:choice>
<xsd:element name="person" type="difi:Person"/>
<xsd:element name="person" type="Person"/>
<xsd:element name="virksomhet" type="Virksomhet"/>
</xsd:choice>
</xsd:complexType>

<xsd:complexType name="Person">
<xsd:sequence>
<xsd:element name="personidentifikator" minOccurs="1" maxOccurs="1">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9]{11}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="postkasseadresse" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="mobiltelefonnummer" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="epostadresse" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="Virksomhet">
<xsd:sequence>
<xsd:element name="sikkerDigitalPostAdresse" type="difi:SikkerDigitalPostAdresse"/>
<xsd:element name="postkasseadresse" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>

Expand Down
2 changes: 0 additions & 2 deletions xsd/sdp-melding.xsd
Expand Up @@ -2,15 +2,13 @@
<xsd:schema
xmlns="http://begrep.difi.no/sdp/schema_v10"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:difi="http://begrep.difi.no"
xmlns:enc="http://www.w3.org/2001/04/xmlenc#"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
targetNamespace="http://begrep.difi.no/sdp/schema_v10" elementFormDefault="qualified" version="1.0">

<xsd:include schemaLocation="sdp-felles.xsd"/>
<xsd:import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="w3/xenc-schema.xsd"/>
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="w3/xmldsig-core-schema.xsd"/>
<xsd:import namespace="http://begrep.difi.no" schemaLocation="oppslag/oppslagstjeneste-metadata-14-05.xsd"/>


<xsd:element name="digitalPost" type="DigitalPost" />
Expand Down
3 changes: 1 addition & 2 deletions xsd/sdp.xsd
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema version="1.0" targetNamespace="http://begrep.difi.no/sdp/schema_v10" xmlns="http://begrep.difi.no/sdp/schema_v10" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:difi="http://begrep.difi.no"
<xsd:schema version="1.0" targetNamespace="http://begrep.difi.no/sdp/schema_v10" xmlns="http://begrep.difi.no/sdp/schema_v10" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:enc="http://www.w3.org/2001/04/xmlenc#" xmlns:sawsdl="http://www.w3.org/ns/sawsdl" elementFormDefault="qualified">

<xsd:import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="w3/xenc-schema.xsd" />
<xsd:import namespace="http://begrep.difi.no" schemaLocation="oppslag/oppslagstjeneste-metadata-14-05.xsd" />

<xsd:include schemaLocation="sdp-feil.xsd"/>
<xsd:include schemaLocation="sdp-kvittering.xsd"/>
Expand Down

0 comments on commit e8aeff3

Please sign in to comment.