Skip to content
Permalink
Browse files

oppdatert med ny XSD og WSDL definisjon for oppslagstjenesten

  • Loading branch information...
Arne Berner
Arne Berner committed Feb 26, 2014
1 parent 5d2bb9a commit d782238eb49b40829ed7748856dd911438e822e8
Binary file not shown.
@@ -6,7 +6,11 @@ headtitle: Oppslagstjenesten for kontakt og reservasjonsregisteret

h3. Tjenestespesifikasjonen:

* "Tjenestespesifikasjon":xsd/person.xsd
* "WSDL definisjon":xsd/oppslagstjeneste-ws-14-05.wsdl
* "XSD definisjon":xsd/oppslagstjeneste-ws-14-05.xsd
* "XSD metadata":xsd/oppslagstjeneste-metadata-14-05.xsd



h3. Datamodell:
!{width:80%}oppslagstjenesten_utkast.jpg!
@@ -0,0 +1,125 @@
<?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" />
<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 type="tns:Sertifikat" name="Sertifikat" minOccurs="0" />
</xs:sequence>
</xs:complexType>

<xs:complexType name="Sertifikat" sawsdl:modelReference="http://begrep.difi.no/Oppslagstjenesten/Sertifikat.html">
<xs:sequence>
<xs:element ref="ds:X509Data"/>
</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"/>
<!-- TODO: USE PATTERN RESTRICTION HERE ?? -->
</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,72 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://kontaktinfo.difi.no/wsdl/oppslagstjeneste-14-05"
xmlns:ot14-05="http://kontaktinfo.difi.no/xsd/oppslagstjeneste/14-05"
name="kontaktinfo-oppslagstjeneste-14-05" targetNamespace="http://kontaktinfo.difi.no/wsdl/oppslagstjeneste-14-05">

<wsdl:types>
<xsd:schema>
<xsd:import namespace="http://kontaktinfo.difi.no/xsd/oppslagstjeneste/14-05" schemaLocation="oppslagstjeneste-ws-14-05.xsd" />
</xsd:schema>
</wsdl:types>

<wsdl:message name="HentEndringerForespoersel">
<wsdl:part name="HentEndringerForespoersel" element="ot14-05:HentEndringerForespoersel" />
</wsdl:message>
<wsdl:message name="HentEndringerRespons">
<wsdl:part name="HentEndringerRespons" element="ot14-05:HentEndringerRespons" />
</wsdl:message>

<wsdl:message name="HentPersonerForespoersel">
<wsdl:part name="HentPersonerForespoersel" element="ot14-05:HentPersonerForespoersel" />
</wsdl:message>
<wsdl:message name="HentPersonerRespons">
<wsdl:part name="HentPersonerRespons" element="ot14-05:HentPersonerRespons" />
</wsdl:message>

<wsdl:portType name="oppslagstjeneste-14-05">
<wsdl:operation name="HentEndringer">
<wsdl:input message="tns:HentEndringerForespoersel" />
<wsdl:output message="tns:HentEndringerRespons" />
</wsdl:operation>

<wsdl:operation name="HentPersoner">
<wsdl:input message="tns:HentPersonerForespoersel" />
<wsdl:output message="tns:HentPersonerRespons" />
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="oppslagstjeneste-14-05_SOAP11Binding" type="tns:oppslagstjeneste-14-05">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />

<wsdl:operation name="HentEndringer">
<soap:operation soapAction="" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>

<wsdl:operation name="HentPersoner">
<soap:operation soapAction="" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>

</wsdl:binding>

<wsdl:service name="oppslagstjeneste-14-05">
<wsdl:port binding="tns:oppslagstjeneste-14-05_SOAP11Binding" name="oppslagstjeneste">
<soap:address location="/ws-v3" />
</wsdl:port>
</wsdl:service>

</wsdl:definitions>
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:m="http://begrep.difi.no"
xmlns:sawsdl="http://www.w3.org/ns/sawsdl"
xmlns:tns="http://kontaktinfo.difi.no/xsd/oppslagstjeneste/14-05"
targetNamespace="http://kontaktinfo.difi.no/xsd/oppslagstjeneste/14-05"
elementFormDefault="qualified"
version="3.0">

<xs:import namespace="http://begrep.difi.no" schemaLocation="oppslagstjeneste-metadata-14-05.xsd" />

<xs:annotation>
<xs:appinfo>Oppslagstjenesten - Webtjeneste</xs:appinfo>
<xs:documentation xml:lang="nb">
Skjemaet definerer elementer i webtjeneste for Oppslagstjenesten Digitalt kontakt- og reservasjonsregister.
</xs:documentation>
</xs:annotation>

<xs:element name="HentPersonerForespoersel" sawsdl:modelReference="http://begrep.difi.no/Oppslagstjenesten/HentPersonerForespoersel.html">
<xs:complexType>
<xs:sequence>
<xs:element type="tns:informasjonsbehov" name="informasjonsbehov" maxOccurs="unbounded" />
<xs:element name="personidentifikator" minOccurs="1" maxOccurs="1000" type="m:personidentifikator"/>
</xs:sequence>
</xs:complexType>
</xs:element>

<xs:element name="HentPersonerRespons" sawsdl:modelReference="http://begrep.difi.no/Oppslagstjenesten/HentPersonerRespons.html">
<xs:complexType>
<xs:sequence>
<xs:element ref="m:Person" minOccurs="1" maxOccurs="1000"/>
</xs:sequence>
</xs:complexType>
</xs:element>

<xs:element name="HentEndringerForespoersel" sawsdl:modelReference="http://begrep.difi.no/Oppslagstjenesten/HentEndringerForespoersel.html">
<xs:complexType>
<xs:sequence>
<xs:element type="tns:informasjonsbehov" name="informasjonsbehov" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute type="tns:fraEndringsNummer" name="fraEndringsNummer" use="required"/>
</xs:complexType>
</xs:element>

<xs:simpleType name="fraEndringsNummer" sawsdl:modelReference="http://begrep.difi.no/Felles/fraEndringsNummer.html">
<xs:restriction base="xs:long" />
</xs:simpleType>

<xs:simpleType name="tilEndringsNummer" sawsdl:modelReference="http://begrep.difi.no/Felles/tilEndringsNummer.html">
<xs:restriction base="xs:long" />
</xs:simpleType>

<xs:simpleType name="senesteEndringsNummer" sawsdl:modelReference="http://begrep.difi.no/Felles/senesteEndringsNummer.html">
<xs:restriction base="xs:long" />
</xs:simpleType>

<xs:element name="HentEndringerRespons" sawsdl:modelReference="http://begrep.difi.no/Oppslagstjenesten/HentEndringerRespons.html">
<xs:complexType>
<xs:sequence>
<xs:element ref="m:Person" minOccurs="0" maxOccurs="1000"/>
</xs:sequence>
<xs:attribute type="tns:fraEndringsNummer" name="fraEndringsNummer" use="required"/>
<xs:attribute type="tns:tilEndringsNummer" name="tilEndringsNummer" use="required"/>
<xs:attribute type="tns:senesteEndringsNummer" name="senesteEndringsNummer" use="required"/>
</xs:complexType>
</xs:element>

<xs:simpleType name="informasjonsbehov" sawsdl:modelReference="http://begrep.difi.no/Felles/informasjonsbehov.html">
<xs:restriction base="xs:string">
<xs:enumeration value="Person" />
<xs:enumeration value="Kontaktinfo" />
<xs:enumeration value="Sertifikat" />
<xs:enumeration value="SikkerDigitalPost" />
</xs:restriction>
</xs:simpleType>

</xs:schema>

0 comments on commit d782238

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