NOT VERSIONED INFORMATIVE

Contents

1. Introduction

In this section, some examples for the evidence exchange using the OOTS Exchange Data Model are provided. These and more Request-Response samples can be found in the semantic repository (gitlab).

2. Example for requesting a birth certificate 

In this example, we consider the case of a natural person that needs to provide a prove of birth. Therefore an Evidence Requester is requesting a birth certificate on behalf of the natural person. To do this, an Evidence Request is sent, which contains information about who is participating in this data exchange and which DataServiceEvidenceType  is required. The information about the required DataServiceEvidenceType  has been received from the DSD. The request is sent to a service that can provide the evidence (Evidence Provider). The Evidence Provider then sends back to the Evidence Requester an Evidence Response that contains the certificates that has been requested. The  example can be also found in the git repository.

2.1. Step 1: Evidence Request Header and Evidence Request

The sender of the Evidence Request uses an ebMS message header that contains the Access Point identifiers as sender and receiver. Using an eDelivery AS4 profile enhancement, however, the outer corners, i.e. the Evidence Requester (originalSender) and Evidence Provider (finalRecipient), can be included in the ebMS message header. The Evidence Provider can be identified by the sdg:Publisher/sdg:Identifier  element of the DSD Response. For the identification of the receiving Access Point in the ebMS message header, i.e. the values to be used in the /PartyInfo/To/PartyId element are extracted from the DSD Response sdg:AccessService/sdg:Identifier . The Evidence Request itself is referenced in the /PayloadInfo element. More information about the ebMS message header can be found at in the eDelivery Configuration.

Step 1 (Header): XML example of the ebMS Evidence Request Header for a Birth Certificate
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eb:Messaging xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"  
    xmlns:S12="http://www.w3.org/2003/05/soap-envelope"
    xsi:schemaLocation="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/ 
    https://www.oasis-open.org/committees/download.php/64179/ebms-header-3_0-200704_with_property_type_attribute.xsd"
    S12:mustUnderstand="true"
    wsu:Id="_148995f58ebb3087d1d3dccbd089db9f7922188240a56eaa657f1a8998a6c45be">

    <!-- The attributes S12:mustUnderstand and wsu:Id are optional. -->

    <?IDENTIFIER "8d0eebb5-daa5-4443-bfc0-a8f76945e210"?>
    <?DESCRIPTION?>
    <?TYPE "EDM-REQ"?>
    
    <eb:UserMessage>
        <eb:MessageInfo>
            <!--  The date at which the message header was created, must be dateTime (see [XMLSCHEMA]).  -->
            <eb:Timestamp>2017-10-24T09:07:36.000Z</eb:Timestamp>
            <!--  A globally unique identifier for the message. MUST be expressed according to RFC2822.  -->
            <eb:MessageId>69b00c83-ab63-4426-b90d-1896817cceec@digst.dk</eb:MessageId>
        </eb:MessageInfo>
        <eb:PartyInfo>
            <!--  The 'eb:PartyId/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.    -->
            <eb:From>
                <!--  The AS4 gateway (C2) that is sending the message on behalf of the Evidence Requester.     -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0060">8889909098</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:From>
            <eb:To>
                <!--  The AS4 gateway (C3) that is receiving the message on behalf of the Evidence Provider.   -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0204">991-GatewayGermany-11</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:To>
        </eb:PartyInfo>
        <eb:CollaborationInfo>
            <!-- Fixed Value that follows the rules of the ebXML Messaging Protocol Binding for RegRep Version 1.0 -->
            <eb:Service type="urn:oasis:names:tc:ebcore:ebrs:ebms:binding:1.0">QueryManager</eb:Service>
            <!--  Element identifying an operation. For the Evidence Request the value ExecuteQueryRequest is used.  -->
            <eb:Action>ExecuteQueryRequest</eb:Action>
            <!-- The unique ConversationId applies to all requests and their responses within a user session to link requests-response scenarios executed throughout a procedure. MUST be expressed as UUID. -->
            <eb:ConversationId>c73b7fdc-1ab0-4b1e-b295-ac9e4a35d764</eb:ConversationId>
        </eb:CollaborationInfo>
        <eb:MessageProperties>
            <!--  The value of the 'eb:Property/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.   -->
            <!--  This element points to the Evidence Requester (C1) that is described in the Evidence Request. eb:Property/@name must be declared as 'originalSender'  -->
            <eb:Property name="originalSender" type="urn:cef.eu:names:identifier:EAS:0096">DK22233223</eb:Property>
            <!--  This element points to the Evidence Provider (C4) that is described in the Evidence Request. eb:Property/@name must be declared as 'finalRecipient'  -->
            <eb:Property name="finalRecipient" type="urn:cef.eu:names:identifier:EAS:9930">DE73524311</eb:Property>
        </eb:MessageProperties>
        <eb:PayloadInfo>
            <!--  The href attribute of every PartInfo MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. The payload object must be referenced with the same UUID as defined in the RegRep payload as rim:slot "SpecificationIdentifier". The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:4ffb5281-179d-4578-adf2-39fd13ccc797@digst.dk">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--  The value of the property MUST be the MIME type of the payload, which for the ebXML RegRep document is defined as application/x-ebrs+xml.  -->
                    <eb:Property name="MimeType">application/x-ebrs+xml</eb:Property>
                    <!--   The element declares the compression format of payload. If present, the value of the property MUST be application/gzip and MUST have a name attribute with the fixed value "CompressionType".  -->
                    <eb:Property name="CompressionType">application/gzip</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
        </eb:PayloadInfo>
    </eb:UserMessage>
</eb:Messaging>

The Evidence Request itself contains information about the Evidence Requester who is requesting the birth certificate for a natural person from the Evidence Provider based on the underlying procedure and requirements. More information about how this information is represented within the XML document can be found in the Evidence Request Syntax Mapping. 

Step 1 (Payload): XML example of Evidence Request for a Birth Certificate
<?xml version="1.0" encoding="UTF-8"?>
<query:QueryRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
					xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
					xmlns:sdg="http://data.europa.eu/p4s"
					xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
					xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
					xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
					xmlns:xlink="http://www.w3.org/1999/xlink"
					xmlns:xml="http://www.w3.org/XML/1998/namespace"
					xml:lang="EN"
					id="urn:uuid:4ffb5281-179d-4578-adf2-39fd13ccc797">
	<!-- The 'id' attribute of a 'QueryRequest' MUST be unique UUID (RFC 4122) for each request starting with prefix "urn:uuid:" -->
	<!-- The optional 'lang' attribute can be used to indicate a preferred language of the requested Evidence  -->
	
	<rim:Slot name="SpecificationIdentifier">
		<rim:SlotValue xsi:type="rim:StringValueType">
			<!-- MUST be the fixed value "oots-edm:v1.0", depending on the release version -->
			<rim:Value>oots-edm:v1.0</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="IssueDateTime">
		<rim:SlotValue xsi:type="rim:DateTimeValueType">
			<!-- MUST be according to xsd:dateTime.  -->
			<rim:Value>2022-05-19T17:08:10.872Z</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="Procedure">
		<rim:SlotValue xsi:type="rim:InternationalStringValueType">
			<rim:Value>
				<!-- Code for "Requesting a birth certificate". MUST be part of the code list 'Procedures' -->
				<!-- MUST be part of the code list 'LanguageCode'.  Default value "EN" -->
				<rim:LocalizedString xml:lang="EN"
					value="R1"/>
			</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="PossibilityForPreview">
		<rim:SlotValue xsi:type="rim:BooleanValueType">
			<!-- MUST be according to xs:boolean -->
			<rim:Value>false</rim:Value>
		</rim:SlotValue>
	</rim:Slot>	
	<rim:Slot name="ExplicitRequestGiven">
		<rim:SlotValue xsi:type="rim:BooleanValueType">
			<!-- MUST be according to xs:boolean -->
			<rim:Value>true</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="Requirements">
		<rim:SlotValue xsi:type="rim:CollectionValueType" 
			collectionType="urn:oasis:names:tc:ebxml-regrep:CollectionType:Set">
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:Requirement>
					<!--  The value of 'Identifier' of a 'Requirement' MUST be a unique UUID (RFC 4122) listed in the EvidenceBroker and use the prefix ''https://sr.oots.tech.ec.europa.eu/requirements/[UUID]'' pointing to the Semantic Repository. -->
					<sdg:Identifier>https://sr.oots.tech.ec.europa.eu/requirements/315cfd75-6605-49c4-b0fe-799833b41099</sdg:Identifier>
					<!-- MUST be part of the code list 'LanguageCode'. Default value "EN" -->
					<sdg:Name lang="EN">Proof of Birth</sdg:Name>
				</sdg:Requirement>
			</rim:Element>
			<!--  another requirement may be added as rim:Element-->
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceRequester">
		<rim:SlotValue xsi:type="rim:CollectionValueType">
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:Agent>
					<!-- The value of the 'schemeID' attribute of the 'Identifier' SHOULD be part of the code list 'EAS' (Electronic Address Scheme ) and use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]'  -->
					<sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0096">DK22233223</sdg:Identifier>
					<!-- The language attribute MUST be part of the code list 'LanguageCode'.  Default value "EN" -->
					<sdg:Name lang="EN">Denmark University Portal</sdg:Name>
					<sdg:Address>
						<sdg:FullAddress>Prince Street 15, 1050 Copenhagen, Denmark</sdg:FullAddress>
						<sdg:LocatorDesignator>15</sdg:LocatorDesignator>
						<sdg:PostCode>1050</sdg:PostCode>
						<sdg:PostCityName>Copenhagen</sdg:PostCityName>
						<sdg:Thoroughfare>Prince Street</sdg:Thoroughfare>
						<!-- The value of the 'AdminUnitLevel1' MUST be coded using the code list 'CountryIdentificationCode' (ISO 3166-1' alpha-2 codes).  -->
						<sdg:AdminUnitLevel1>DK</sdg:AdminUnitLevel1>
						<!-- The value of the 'AdminUnitLevel2' MUST be coded using the code list 'NUTS' (Nomenclature of Territorial Units for Statistics).  -->
						<sdg:AdminUnitLevel2>DK011</sdg:AdminUnitLevel2>
					</sdg:Address>
					<!-- The value MUST be part of the code list 'AgentClassification'. Default value: ER (Evidence Requester). If the code 'IP' (Intermediary Platform) is present there must be another 'sdg:Agent' Element containing the code 'ER'. The codes 'EP' and 'ERRP' shall not be used by this transaction.   -->
					<sdg:Classification>ER</sdg:Classification>
				</sdg:Agent>
			</rim:Element>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceProvider">
		<rim:SlotValue xsi:type="rim:AnyValueType">
			<sdg:Agent>
				<!-- The value of the 'schemeID' attribute of the 'Identifier' SHOULD be part of the code list 'EAS' (Electronic Address Scheme ) and use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]'.  -->
				<sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:9930">DE73524311</sdg:Identifier>
				<!-- The language attribute MUST be part of the code list 'LanguageCode'.  Default value "EN" -->
				<sdg:Name lang="EN">Civil Registration Office Berlin I</sdg:Name>
			</sdg:Agent>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceProviderClassification">
		<rim:SlotValue xsi:type="rim:CollectionValueType">
			<!-- Classification Information - Used for finding the evidence. In this example the applicant must indicate if he has ever resided in the country. -->
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:EvidenceProviderClassification>
					<!-- The value of 'Identifier' of MUST be unique UUID (RFC 4122) pointing to a concept for Evidence Provider Classification in the DSD and Semantic Repository.  -->
					<sdg:Identifier>b07146b6-1468-41a7-a10f-ee2a61429dbc</sdg:Identifier>
					<sdg:Type>Codelist</sdg:Type>
					<!-- Definition of the value expression. Must be published in the Semantic Repository. The codelist contains the values ApplicantHasNeverBeenResidentInGermany and ApplicantHasBeenResidentInGermany -->
					<!-- During the DSD query process the user has to select one of the two values as additional input parameter for the query in order to identify the correct publisher / evidence provider -->
					<!-- The selected value will be mapped against the ClassificationValue of Publishers -->
					<sdg:ValueExpression>https://sr.oots.tech.ec.europa.eu/ep-classification/de/countryresidence</sdg:ValueExpression>
					<sdg:Description lang="EN">Rules of responsibility for the processing of personal status cases of German citizens without residence information
					</sdg:Description>
					<sdg:Description lang="DE">Zuständigkeitsregelungen für die Bearbeitung von personenstandsrechtlichen Vorgängen deutscher Staatsangehöriger ohne Wohnsitzinformation</sdg:Description>
					<!-- The selected value of the user MUST be provided in the Evidence Request-->
					<sdg:SupportedValue>
						<sdg:StringValue>ApplicantHasNeverBeenResidentInGermany</sdg:StringValue>
					</sdg:SupportedValue>
				</sdg:EvidenceProviderClassification>
			</rim:Element>
		</rim:SlotValue>
	</rim:Slot>
	<!-- Default Response Option -->
	<query:ResponseOption returnType="LeafClassWithRepositoryItem"/>
	<!-- Query Definition -->
	<query:Query queryDefinition="DocumentQuery">
		<rim:Slot name="NaturalPerson">
			<rim:SlotValue xsi:type="rim:AnyValueType">
				<sdg:Person>
					<!-- Level of Assurance for the Minimum Data Set (MDS). The value of 'LevelOfAssurance' must be part of the code list 'LoA' (eIDAS Levels Of Assurance). -->
					<sdg:LevelOfAssurance>High</sdg:LevelOfAssurance>
					<!-- eIDAS Identifier: MUST have the format XX/YY/ZZZZZZZ where XX is the Nationality Code of the identifier and YY is the Nationality Code of the destination country and ZZZZZZZ is an undefined combination of characters which uniquely identifies the identity asserted in the country of origin. The values of XX and YY MUST be part of the code list ‘ISO 3166-1 alpha-2 country code (EEA_country subset)’. Example: ES/AT/02635542Y.  -->
					<!-- The 'schemeID' attribute of the 'Identifier' MUST have the fixed value 'eidas'.  -->
					<sdg:Identifier schemeID="eidas">DK/DE/123123123</sdg:Identifier>

					<!-- eIDAS Mandatory Attributes of the Minimum Data Set -->
					<sdg:FamilyName>Smith</sdg:FamilyName>
					<sdg:GivenName>John</sdg:GivenName>
					<!-- The value of 'DateOfBirth' MUST use the following format YYYY + “-“ + MM + “-“ + DD  -->
					<sdg:DateOfBirth>1970-03-01</sdg:DateOfBirth>
					<!-- eIDAS Optional Attributes of the Minimum Data Set -->
					<sdg:BirthName>John Doepidis</sdg:BirthName>
					<sdg:PlaceOfBirth>Hamburg, Germany</sdg:PlaceOfBirth>
					<sdg:CurrentAddress>
						<sdg:FullAddress>Refshalevej 96, 1432 København, Denmark</sdg:FullAddress>
						<sdg:LocatorDesignator>96</sdg:LocatorDesignator>
						<sdg:PostCode>1432</sdg:PostCode>
						<sdg:PostCityName>København</sdg:PostCityName>
						<sdg:Thoroughfare>Refshalevej</sdg:Thoroughfare>
						<!-- The value of the 'AdminUnitLevel1' MUST be coded using the code list 'CountryIdentificationCode' (ISO 3166-1' alpha-2 codes).  -->
						<sdg:AdminUnitLevel1>DK</sdg:AdminUnitLevel1>
						<!-- The value of the 'AdminUnitLevel2' MUST be coded using the code list 'NUTS' (Nomenclature of Territorial Units for Statistics).  -->
						<sdg:AdminUnitLevel2>DK011</sdg:AdminUnitLevel2>
					</sdg:CurrentAddress>
					<!-- The value of 'Gender' MUST be part of the code list 'Gender' (eIDAS Gender Code). -->
					<sdg:Gender>Male</sdg:Gender>
					<!-- Optional Sector Specific Attributes not belonging to the Minimum Data Set -->
					<sdg:SectorSpecificAttribute>
						<sdg:AttributeName>IBAN</sdg:AttributeName>
						<sdg:AttributeURI>http://eidas.europa.eu/attributes/naturalperson/banking/IBAN</sdg:AttributeURI>
						<sdg:AttributeValue>DE02500105170137075032</sdg:AttributeValue>
					</sdg:SectorSpecificAttribute>
					<sdg:SectorSpecificAttribute>
						<sdg:AttributeName>BIC</sdg:AttributeName>
						<sdg:AttributeURI>http://eidas.europa.eu/attributes/naturalperson/banking/BIC</sdg:AttributeURI>
						<sdg:AttributeValue>INGDDEFFYYY</sdg:AttributeValue>
					</sdg:SectorSpecificAttribute>
				</sdg:Person>
			</rim:SlotValue>
		</rim:Slot> 
		<rim:Slot name="EvidenceRequest">
			<rim:SlotValue xsi:type="rim:AnyValueType">
				<sdg:DataServiceEvidenceType xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0">
					<!-- MUST be unique UUID (RFC 4122) fetched from the Data Services Directory. Must be used in the Evidence Exchange Request -->
					<sdg:Identifier>2af27699-f131-4411-8fdb-9e8cd4e8bded</sdg:Identifier>
					<!-- MUST be a UUID retrieved from the Evidence Broker/DSD and include a code of the code list 'Country‘ISO 3166-1 alpha-2 country code (EEA_country subset)’ using the prefix and scheme ''https://sr.oots.tech.ec.europa.eu/evidencetypeclassifications/[EE_Country]/[UUID]'' pointing to the Semantic Repository -->
					<sdg:EvidenceTypeClassification>https://sr.oots.tech.ec.europa.eu/evidencetypeclassifications/DE/ca8afed6-2dc0-422a-a931-d21c3d8d370e</sdg:EvidenceTypeClassification>
					<!-- The value of 'lang' attribute of Title and Description MUST be part of the code list 'LanguageCode'.  Default Value "EN"  -->
					<sdg:Title lang="EN">Certificate of Birth</sdg:Title>
					<sdg:Title lang="DE">Geburtsurkunde</sdg:Title>
					<sdg:Description lang="EN">An official certificate of birth of a person - with first name, surname, sex, date and place of birth, which is obtained from the birth register of the place of birth.</sdg:Description>
					<sdg:Description lang="DE">Eine amtliche Bescheinigung über die Geburt einer Person – mit Vorname, Familienname, Geschlecht, Datum und Ort der Geburt, welche aus dem Geburtsregister des Geburtsortes erstellt wird.</sdg:Description>
					<!-- This is the selected distribution requested. It must be one of the distributions provided by the DSD for this specific Data Service Evidence Type-->
					<sdg:DistributedAs>
						<!-- The value of 'Format' of the requested distribution MUST be part of the code list 'OOTSMediaTypes'.-->
						<sdg:Format>application/xml</sdg:Format>
						<!-- MUST be a persistent URL with a link to a "DataModelScheme" of the Evidence Type retrieved by the DSD and described in the Semantic Repository which uses the prefix "https://sr.oots.tech.ec.europa.eu/distributions/[DataModelScheme]".-->
						<sdg:ConformsTo>https://sr.oots.tech.ec.europa.eu/distributions/certificate-of-birth-1.0.0</sdg:ConformsTo>
						<!-- MUST be a persistent URL with link to a "DataModelScheme" and "Subset" of the EvidenceType retrieved from the Data Service Directory, described in the Semantic Repository which uses the prefix "https://sr.oots.tech.ec.europa.eu/distributions/[DataModelScheme]/[Subset]"-->
						<sdg:Transformation>https://sr.oots.tech.ec.europa.eu/distributions/certificate-of-birth-1.0.0/age-of-majority</sdg:Transformation>
					</sdg:DistributedAs>
				</sdg:DataServiceEvidenceType>
			</rim:SlotValue>
		</rim:Slot>
	</query:Query>
</query:QueryRequest>

2.2. Step 2: Evidence Response Header and Evidence Response

Similar to the request, the sender of the Evidence Response uses an ebMS message header that contains the Access Point identifiers as sender and receiver. Next to the Evidence Request itself the requested evidence object is additionally included to the /PayloadInfo element of the ebMS message header. More information about the ebMS message header can be found at in the eDelivery Configuration.

Step 2 (Header): XML example of ebMS Evidence Response Header for a Birth Certificate
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eb:Messaging xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xmlns:S12="http://www.w3.org/2003/05/soap-envelope"
    xsi:schemaLocation="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/ 
    https://www.oasis-open.org/committees/download.php/64179/ebms-header-3_0-200704_with_property_type_attribute.xsd"
    S12:mustUnderstand="true"
    wsu:Id="_148995f58ebb3087d1d3dccbd089db9f7922188240a56eaa657f1a8998a6c45be">

    <!-- The attributes S12:mustUnderstand and wsu:Id are optional. -->
    
    <?IDENTIFIER "92fa73f6-657c-4799-8f55-ebb8fca5eda0"?>
    <?DESCRIPTION?>
    <?TYPE "EDM-ebMS"?>
    
    <eb:UserMessage>
        <eb:MessageInfo>
            <!--  The date at which the message header was created, must be dateTime (see [XMLSCHEMA]).  -->
            <eb:Timestamp>2017-10-24T09:07:38.000Z</eb:Timestamp>
            <!--  A globally unique identifier for the message. MUST be expressed according to RFC2822.  -->
            <eb:MessageId>15b41ec1-47cc-46f5-b5ec-05561ebceeb5@it.nrw</eb:MessageId>
        </eb:MessageInfo>
        <eb:PartyInfo>
            <!--  The 'eb:PartyId/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.    -->
            <eb:From>
                <!--  The AS4 gateway (C2) that is sending the message on behalf of the Evidence Provider.     -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0204">991-GatewayGermany-11</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:From>
            <eb:To>
                <!--  The AS4 gateway (C3) that is receiving the message on behalf of the Evidence Requester.   -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0060">8889909098</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:To>
        </eb:PartyInfo>
        <eb:CollaborationInfo>
            <!-- Fixed Value that follows the rules of the ebXML Messaging Protocol Binding for RegRep Version 1.0 -->
            <eb:Service type="urn:oasis:names:tc:ebcore:ebrs:ebms:binding:1.0">QueryManager</eb:Service>
            <!--  Element identifying an operation. For the Evidence Response the value ExecuteQueryResponse is used.  -->
            <eb:Action>ExecuteQueryResponse</eb:Action>
            <!-- The unique ConversationId applies to all requests and their responses within a user session to link requests-response scenarios executed throughout a procedure. MUST be expressed as UUID. -->
            <eb:ConversationId>c73b7fdc-1ab0-4b1e-b295-ac9e4a35d764</eb:ConversationId>
        </eb:CollaborationInfo>
        <eb:MessageProperties>
            <!--  The value of the 'eb:Property/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.   -->
            <!--  This element points to the Evidence Provider (C1) that is described in the Evidence Response. eb:Property/@name must be declared as 'originalSender'  -->
            <eb:Property name="originalSender" type="urn:cef.eu:names:identifier:EAS:9930">DE73524311</eb:Property>
            <!--  This element points to the Evidence Requester (C4) that is described in the Evidence Request. eb:Property/@name must be declared as 'finalRecipient'  -->
            <eb:Property name="finalRecipient" type="urn:cef.eu:names:identifier:EAS:0096">DK22233223</eb:Property>
        </eb:MessageProperties>
        <eb:PayloadInfo>
            <!--  The href attribute of every PartInfo MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. The payload object must be referenced with the same UUID as defined in the RegRep payload as rim:slot "SpecificationIdentifier". The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:166155eb-d7a7-4cac-9086-8a85f0116462@it.nrw">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--  If the eb:Action value is 'ExecuteQueryResponse' the first eb:PartInfo[1]/eb:PartProperties/eb:Property with name="MimeType" SHALL be 'application/x-ebrs+xml' to declare the Evidence Response payload defined as ebXML RegRep document  -->
                    <eb:Property name="MimeType">application/x-ebrs+xml</eb:Property>
                    <!--   The element declares the compression format of payload. If present, the value of the property MUST be application/gzip and MUST have a name attribute with the fixed value "CompressionType".  -->
                    <eb:Property name="CompressionType">application/gzip</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
            <!--  The href attribute MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. For Evidence documents the same CID as defined in the RegRep payload element 'rim:RepositoryItemRef/@xlink:href' MUST be used. The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:3ec68c74-7f4f-4ec0-b511-0e89f062781e@it.nrw">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--   Additional eb:PartProperties are used to describe the Evidence documents. MUST be a valid mime type of the code list 'OOTSMediaTypes'.  -->
                    <eb:Property name="MimeType">application/xml</eb:Property>
                    <!--   The element declares the compression format of payload. If present, the value of the property MUST be application/gzip and MUST have a name attribute with the fixed value "CompressionType".  -->
                    <eb:Property name="CompressionType">application/gzip</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
        </eb:PayloadInfo>
    </eb:UserMessage>
</eb:Messaging>

The Evidence Response itself contains information about the Evidence Provider who is providing the birth certificate and its associated Evidence Metadata for a natural person based on the Evidence Request issued by the Evidence Requester. The /rim:RepositoryItemRef provides a references to the evidence object in the ebMS message header.  More information about how this information is represented within the XML document can be found in the Evidence Response Syntax Mapping. 

XML example of Evidence Response for a birth certificate

Step 2 (Payload): XML example of Evidence Response for a Birth Certificate
<?xml version="1.0" encoding="UTF-8"?> 
<query:QueryResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
    xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0" xmlns:sdg="http://data.europa.eu/p4s"
    xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success"
    requestId="urn:uuid:4ffb5281-179d-4578-adf2-39fd13ccc797">
    <!-- The 'id' attribute of a 'QueryResponse' MUST be unique UUID (RFC 4122) for each request starting with prefix "urn:uuid:" -->
    <!-- The 'status attribute of a 'QueryResponse' MUST be encoded as "urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success" for successful responses or as "urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Unavailable" for responses that will be available at a later time .  -->


    <!-- Top Level Slots, providing metadata about the Response and the Evidence Provider -->
    <rim:Slot name="SpecificationIdentifier">
        <rim:SlotValue xsi:type="rim:StringValueType">
            <!-- MUST be the fixed value "oots-edm:v1.0" depending on release version -->
            <rim:Value>oots-edm:v1.0</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="EvidenceResponseIdentifier">
        <rim:SlotValue xsi:type="rim:StringValueType">
            <!-- The 'rim:Value' of the 'EvidenceResponseIdentifier' MUST be unique UUID (RFC 4122) for each response. -->
            <rim:Value>166155eb-d7a7-4cac-9086-8a85f0116462</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="IssueDateTime">
        <rim:SlotValue xsi:type="rim:DateTimeValueType">
            <!-- MUST be according to xsd:dateTime.  -->
            <rim:Value>2022-05-19T17:10:10.872Z</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="EvidenceProvider">
        <rim:SlotValue xsi:type="rim:CollectionValueType">
            <rim:Element xsi:type="rim:AnyValueType">
                <sdg:Agent>
                    <!-- The value of the 'schemeID' attribute of the 'Identifier' SHOULD be part of the code list 'EAS' (Electronic Address Scheme ) and use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]'  -->
                    <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:9930"
                        >DE73524311</sdg:Identifier>
                    <sdg:Name lang="EN">Civil Registration Office Berlin I</sdg:Name>
                    <sdg:Address>
                        <sdg:FullAddress>Schönstedtstraße 5, 13357 Berlin, Germany</sdg:FullAddress>
                        <sdg:LocatorDesignator>5</sdg:LocatorDesignator>
                        <sdg:PostCode>13357</sdg:PostCode>
                        <sdg:PostCityName>Berlin</sdg:PostCityName>
                        <sdg:Thoroughfare>Schönstedtstraße</sdg:Thoroughfare>
                        <!-- The value of the 'AdminUnitLevel1' MUST be coded using the code list 'CountryIdentificationCode' (ISO 3166-1' alpha-2 codes).  -->
                        <sdg:AdminUnitLevel1>DE</sdg:AdminUnitLevel1>
                        <!-- The value of the 'AdminUnitLevel2' MUST be coded using the code list 'NUTS' (Nomenclature of Territorial Units for Statistics).  -->
                        <sdg:AdminUnitLevel2>DE3</sdg:AdminUnitLevel2>
                    </sdg:Address>
                    <!--   The value MUST be part of the code list 'AgentClassification'. Default value: EP (Evidence Provider). If the code 'IP' (Intermediary Platform) is present there must be another 'sdg:Agent' Element containing the code 'EP'. The code 'ER' and 'ERRP' shall not be used by this transaction.  -->
                    <sdg:Classification>EP</sdg:Classification>
                </sdg:Agent>
            </rim:Element>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="EvidenceRequester">
        <rim:SlotValue xsi:type="rim:AnyValueType">
            <sdg:Agent>
                <!-- The value of the 'schemeID' attribute of the 'Identifier' SHOULD be part of the code list 'EAS' (Electronic Address Scheme ) and use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]'  -->
                <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0096"
                    >DK22233223</sdg:Identifier>
                <sdg:Name lang="EN">Denmark University Portal</sdg:Name>
            </sdg:Agent>
        </rim:SlotValue>
    </rim:Slot>
    <rim:RegistryObjectList>
        <!-- First Object. The 'id' attribute of a 'RegistryObject' MUST be unique UUID (RFC 4122) starting with prefix "urn:uuid:". -->
        <rim:RegistryObject xsi:type="rim:ExtrinsicObjectType"
            id="urn:uuid:f073cbe2-cf2a-4f46-b9ff-d4b0fde53ab1">
            <rim:Slot name="EvidenceMetadata">
                <rim:SlotValue xsi:type="rim:AnyValueType">
                    <sdg:Evidence>
                        <!--   The value of 'Identifier' of an 'Evidence' MUST be unique UUID (RFC 4122).  -->
                        <sdg:Identifier>37a169f1-9cf6-4aa8-ac24-b083fa569173</sdg:Identifier>
                        <!-- Must contain the Minimum Data Set part of the evidence Subject attributes to confirm identity matching. Must contain either a IsAbout <<NaturalPerson>> or <<LegalPerson>> but NOT both. An example for <<LegalPerson>> is <sdg:LegalPersonIdentifier schemeID="eidas">ES/SE/12132123Y</sdg:LegalPersonIdentifier> <sdg:LegalName>AnyCompanyName</sdg:LegalName> -->
                        <sdg:IsAbout>
                            <sdg:NaturalPerson>
                                <!-- The identifier of the user retrieved through the EvidenceRequest from eIDAS -->
                                <!-- eIDAS Identifier: MUST have the format XX/YY/ZZZZZZZ where XX is the Nationality Code of the identifier and YY is the Nationality Code of the destination country and ZZZZZZZ is an undefined combination of characters which uniquely identifies the identity asserted in the country of origin. The values of XX and YY MUST be part of the code list ‘ISO 3166-1 alpha-2 country code (EEA_country subset)’. Example: ES/AT/02635542Y.  -->
                                <!-- The 'schemeID' attribute of the 'Identifier' MUST have the fixed value 'eidas'.  -->
                                <sdg:Identifier schemeID="eidas">DK/DE/123123123</sdg:Identifier>
                                <!-- Mandatory Minimum Data Set -->
                                <sdg:FamilyName>Smith</sdg:FamilyName>
                                <sdg:GivenName>John</sdg:GivenName>
                                <!-- The value of 'DateOfBirth' MUST use the following format YYYY + “-“ + MM + “-“ + DD -->
                                <sdg:DateOfBirth>1970-03-01</sdg:DateOfBirth>
                            </sdg:NaturalPerson>
                        </sdg:IsAbout>
                        <sdg:IssuingAuthority>
                            <!-- The issuing authority which might be different from the evidence provider e.g. if the evidence provider acts as national base registry that aggregates local authorities issuing the evidence -->
                            <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:9930"
                                >DE73524311</sdg:Identifier>
                            <sdg:Name lang="EN">Civil Registration Office Berlin I</sdg:Name>
                        </sdg:IssuingAuthority>
                        <sdg:IsConformantTo>
                            <!-- MUST be a UUID of the request which was retrieved from the Evidence Broker/DSD and include a code of the code list ‘ISO 3166-1 alpha-2 country code (EEA_country subset)’ using the prefix and scheme 'https://sr.oots.tech.ec.europa.eu/evidencetypeclassifications/[EEA_Country]/[UUID]'' pointing to the Semantic Repository -->
                            <sdg:EvidenceTypeClassification>https://sr.oots.tech.ec.europa.eu/evidencetypeclassifications/DE/ca8afed6-2dc0-422a-a931-d21c3d8d370e</sdg:EvidenceTypeClassification>
                            <!-- The value of 'lang' attribute of Title and Description MUST be part of the code list 'LanguageCode'. Default value 'EN'.    -->
                            <sdg:Title lang="EN">Certificate of Birth</sdg:Title>
                            <sdg:Title lang="DE">Geburtsurkunde</sdg:Title>
                            <sdg:Description lang="EN">An official certificate of birth of a person
                                - with first name, surname, sex, date and place of birth, which is
                                obtained from the birth register of the place of
                                birth.</sdg:Description>
                            <sdg:Description lang="DE">Eine amtliche Bescheinigung über die Geburt
                                einer Person – mit Vorname, Familienname, Geschlecht, Datum und Ort
                                der Geburt, welche aus dem Geburtsregister des Geburtsortes erstellt
                                wird.</sdg:Description>
                        </sdg:IsConformantTo>
                        <!-- The issuing date, distribution and validity period of the evidence. MUST be according to xsd:date. -->
                        <sdg:IssuingDate>1970-03-03</sdg:IssuingDate>
                        <sdg:Distribution>
                            <!-- The value of 'Format' of the requested distribution MUST be part of the code list 'OOTSMediaTypes' and should match the one requested by the Evidence Requester -->
                            <sdg:Format>application/xml</sdg:Format>
                            <!-- The value of Language attribute MUST be part of the code list 'LanguageCode'.    -->
                            <sdg:Language>DE</sdg:Language>
                            <!-- MUST be a persistent URL with a link to a "DataModelScheme" of the Evidence Type retrieved by the DSD and described in the Semantic Repository which uses the prefix "https://sr.oots.tech.ec.europa.eu/distributions/[DataModelScheme]".-->
                            <sdg:ConformsTo>https://sr.oots.tech.ec.europa.eu/distributions/certificate-of-birth-1.0.0</sdg:ConformsTo>
                            <!-- MUST be a persistent URL with link to a "DataModelScheme" and "Subset" of the EvidenceType retrieved from the Data Service Directory, described in the Semantic Repository which uses the prefix "https://sr.oots.tech.ec.europa.eu/distributions/[DataModelScheme]/[Subset]"-->
                            <sdg:Transformation>https://sr.oots.tech.ec.europa.eu/distributions/certificate-of-birth-1.0.0/age-of-majority</sdg:Transformation>
                        </sdg:Distribution>
                        <sdg:ValidityPeriod>
                            <!-- The StartDate and EndDate MUST be according to xsd:date. -->
                            <sdg:StartDate>2023-01-19</sdg:StartDate>
                            <sdg:EndDate>2024-05-19</sdg:EndDate>
                        </sdg:ValidityPeriod>
                    </sdg:Evidence>
                </rim:SlotValue>
            </rim:Slot>
            <!-- The attached Document Provided as Evidence. Points to an AS4 attachment -->
            <rim:RepositoryItemRef xlink:href="cid:3ec68c74-7f4f-4ec0-b511-0e89f062781e@it.nrw"
                xlink:title="BirthCertificate"/>
        </rim:RegistryObject>
        <!-- Another Object might be placed here. The 'id' attribute of a 'RegistryObject' MUST be unique UUID (RFC 4122) starting with prefix "urn:uuid:". -->
    </rim:RegistryObjectList>
</query:QueryResponse>

3. Example for requesting Secondary Education Completion Evidence with Error Response requesting an Evidence Provider side Preview 

In this example, we consider the case of a natural person that needs to prove Secondary Education Completion. Therefore an Evidence Requester is requesting a Secondary Education Completion Evidence and its supplement on behalf of the natural person. To do this, an Evidence Request is sent, which contains information about who is participating in this data exchange and which DataServiceEvidenceType  is required. The information about the required DataServiceEvidenceType  has been received from the DSD. The request is sent to a service that can provide the evidence (Evidence Provider).

Since for this evidence type a preview on the side of the Evidence Provider is required, the Evidence Provider responds with an Error Response who rejects a direct evidence provision and informs the Evidence Requester about the required preview, its location and method offered for the Evidence Provider. The Evidence Requester than redirects the user (natural person) to the corresponding preview location and sends a second Evidence Request after the preview.  The Evidence Provider matches the second Evidence Request with the preview results and sends an Evidence Response with the the Secondary Education Completion Evidence and its supplement to the Evidence Requester.   

The complete example can be found in the git repository.

3.1 Step1: First Evidence Request

The first Evidence Request contains information about the Evidence Requester who is requesting the Secondary Education Completion Evidence for a natural person from the Evidence Provider based on the underlying procedure and requirements. More information about how this information is represented within the XML document can be found in the Evidence Request Syntax Mapping. 

Step 1 (Payload): XML example of the first Evidence Request for a Secondary Education Completition Evidence
<?xml version="1.0" encoding="UTF-8"?>
<query:QueryRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
					xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0" xmlns:sdg="http://data.europa.eu/p4s"
					xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
					xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
					xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
					xmlns:xlink="http://www.w3.org/1999/xlink"
					xml:lang="DE"
					id="urn:uuid:4ffb5281-179d-4578-adf2-39fd13ccc797">
	
	<rim:Slot name="SpecificationIdentifier">
		<rim:SlotValue xsi:type="rim:StringValueType">
			<rim:Value>oots-edm:v1.0</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="IssueDateTime">
		<rim:SlotValue xsi:type="rim:DateTimeValueType">
			<rim:Value>2022-02-14T19:20:30+01:00</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="Procedure">
		<rim:SlotValue xsi:type="rim:InternationalStringValueType">
			<rim:Value>
				<rim:LocalizedString xml:lang="EN" value="T2"/>
			</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="PossibilityForPreview">
		<rim:SlotValue xsi:type="rim:BooleanValueType">
			<rim:Value>true</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="ExplicitRequestGiven">
		<rim:SlotValue xsi:type="rim:BooleanValueType">
			<rim:Value>true</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="Requirements">
		<rim:SlotValue xsi:type="rim:CollectionValueType"
			collectionType="urn:oasis:names:tc:ebxml-regrep:CollectionType:Set">
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:Requirement>
					<sdg:Identifier>https://sr.oots.tech.ec.europa.eu/requirements/cfcd4e22-30f1-48fa-93e4-6cf98cedbf40</sdg:Identifier>
					<sdg:Name lang="EN">Proof of secondary education diploma/certificate</sdg:Name>
					<sdg:Name lang="DE">Nachweis eines Sekundarschulabschlusses/Zeugnisses</sdg:Name>
				</sdg:Requirement>
			</rim:Element>
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:Requirement>
					<sdg:Identifier>https://sr.oots.tech.ec.europa.eu/requirements/99a0a5d4-10ba-42c3-a0be-5566b441cbb6</sdg:Identifier>
					<sdg:Name lang="EN">Submission of secondary education diploma supplemenent</sdg:Name>
					<sdg:Name lang="DE">Einreichung der Anlage zum Nachweis des SekundarschulabschlussesNachweis</sdg:Name>
				</sdg:Requirement>
			</rim:Element>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceRequester">
		<rim:SlotValue xsi:type="rim:CollectionValueType">
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:Agent>
					<sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0190">NL222332239</sdg:Identifier>
					<sdg:Name lang="EN">University of Amsterdam</sdg:Name>
					<sdg:Address>
						<sdg:FullAddress>Binnengasthuisstraat 9</sdg:FullAddress>
						<sdg:LocatorDesignator>9</sdg:LocatorDesignator>
						<sdg:PostCode>1012</sdg:PostCode>
						<sdg:PostCityName>Amsterdam</sdg:PostCityName>
						<sdg:AdminUnitLevel1>NL</sdg:AdminUnitLevel1>
						<sdg:AdminUnitLevel2>NL329</sdg:AdminUnitLevel2>
					</sdg:Address>
					<sdg:Classification>ER</sdg:Classification>
				</sdg:Agent>
			</rim:Element>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceProvider">
		<rim:SlotValue xsi:type="rim:AnyValueType">
			<sdg:Agent>
				<sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0204">02-SchoolAuthority-34</sdg:Identifier>
				<sdg:Name lang="EN">Authority for school and occupational training</sdg:Name>
			</sdg:Agent>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceProviderClassification">
		<rim:SlotValue xsi:type="rim:CollectionValueType">
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:EvidenceProviderClassification>
					<sdg:Identifier>12c58ee8-f40a-42ac-b056-938499d55a1a</sdg:Identifier>
					<sdg:Type>Codelist</sdg:Type>
					<sdg:ValueExpression>https://sr.oots.tech.ec.europa.eu/ep-classification/de/secondary-education-type</sdg:ValueExpression>
					<sdg:Description lang="EN">Type of Secondary Education</sdg:Description>
					<sdg:Description lang="DE">Art der Sekundarschulbildung</sdg:Description>
					<sdg:SupportedValue>
						<sdg:StringValue>HigherEducationEntranceQualification</sdg:StringValue>
					</sdg:SupportedValue>
				</sdg:EvidenceProviderClassification>
			</rim:Element>
		</rim:SlotValue>
	</rim:Slot>
	<query:ResponseOption returnType="LeafClassWithRepositoryItem"/>
	<query:Query queryDefinition="DocumentQuery">
		<rim:Slot name="NaturalPerson">
			<rim:SlotValue xsi:type="rim:AnyValueType">
				<sdg:Person>
					<sdg:LevelOfAssurance>High</sdg:LevelOfAssurance>
					<sdg:Identifier schemeID="eidas">DE/DE/123456789</sdg:Identifier>
					<sdg:FamilyName>Smith</sdg:FamilyName>
					<sdg:GivenName>Jack</sdg:GivenName>
					<sdg:DateOfBirth>1999-03-01</sdg:DateOfBirth>
					<sdg:PlaceOfBirth>Duesseldorf</sdg:PlaceOfBirth>
					<sdg:CurrentAddress>
						<sdg:FullAddress>Lansstraße 81, 50825 Koeln, Germany</sdg:FullAddress>
						<sdg:LocatorDesignator>81</sdg:LocatorDesignator>
						<sdg:PostCode>50825</sdg:PostCode>
						<sdg:PostCityName>Koeln</sdg:PostCityName>
						<sdg:Thoroughfare>Lansstraße</sdg:Thoroughfare>
						<sdg:AdminUnitLevel1>DE</sdg:AdminUnitLevel1>
						<sdg:AdminUnitLevel2>DEA2</sdg:AdminUnitLevel2>
					</sdg:CurrentAddress>
					<sdg:Gender>Male</sdg:Gender>
					<!-- Optional Sector Specific Attribute not belonging to the Minimum Data Set -->
					<sdg:SectorSpecificAttribute>
						<sdg:AttributeName>Mobile-ID</sdg:AttributeName>
						<sdg:AttributeURI>http://eidas.europa.eu/attributes/naturalperson/payment/Mobile-ID</sdg:AttributeURI>
						<sdg:AttributeValue>5170137075032</sdg:AttributeValue>
					</sdg:SectorSpecificAttribute>
					<sdg:SectorSpecificAttribute>
						<sdg:AttributeName>Residency-ID</sdg:AttributeName>
						<sdg:AttributeURI>http://eidas.europa.eu/attributes/naturalperson/location/Residency-ID</sdg:AttributeURI>
						<sdg:AttributeValue>INGTTTFYYY</sdg:AttributeValue>
					</sdg:SectorSpecificAttribute>
				</sdg:Person>
			</rim:SlotValue>
		</rim:Slot>
		<rim:Slot name="EvidenceRequest">
			<rim:SlotValue xsi:type="rim:AnyValueType">
				<sdg:DataServiceEvidenceType>
					<sdg:Identifier>487fdfdc-7f92-42bb-a690-dcbd3d65f435</sdg:Identifier>
					<sdg:EvidenceTypeClassification>https://sr.oots.tech.ec.europa.eu/evidencetypeclassifications/DE/edf717b7-b373-40b1-b51b-cbb7c9d64de5</sdg:EvidenceTypeClassification>
					<sdg:Title lang="EN">Secondary Education Completion Evidence</sdg:Title>
					<sdg:Title lang="DE">Nachweis des Sekundarschulabschlusses</sdg:Title>
					<sdg:Description lang="EN">Proof of a secondary school graduation which is acquired after 12 or 13 school years in the upper secondary school and which entitles the holder to the general higher education entrance qualification, i.e. opens up access to all higher education institutions and fields of study.</sdg:Description>
					<sdg:Description lang="DE">Nachweis für einen Sekundarschulabschluss, der nach 12 bzw. 13 Schuljahren in der gymnasialen Oberstufe erworben wird und die Allgemeine Hochschulreife verleiht, d.h. den Zugang zu allen Hochschulen und Fachrichtungen eröffnet.</sdg:Description>
					<sdg:DistributedAs>
						<sdg:Format>application/xml</sdg:Format>
						<sdg:ConformsTo>https://sr.oots.tech.ec.europa.eu/distributions/secondary-education-evidence-1.0.0</sdg:ConformsTo>
						<sdg:Transformation>https://sr.oots.tech.ec.europa.eu/distributions/secondary-education-evidence-1.0.0/passed</sdg:Transformation>
					</sdg:DistributedAs>
				</sdg:DataServiceEvidenceType>
			</rim:SlotValue>
		</rim:Slot>
	</query:Query>
</query:QueryRequest>

XML example of the first ebMS Evidence Request Header for Secondary Education Completion Evidence

Step 1 (Header): XML example of the first ebMS Evidence Request Header for Secondary Education Completition Evidence
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eb:Messaging xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:S12="http://www.w3.org/2003/05/soap-envelope"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xsi:schemaLocation="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/ 
    https://www.oasis-open.org/committees/download.php/64179/ebms-header-3_0-200704_with_property_type_attribute.xsd"
    S12:mustUnderstand="true"
    wsu:Id="_148995f58ebb3087d1d3dccbd089db9f7922188240a56eaa657f1a8998a6c45be">

    <!-- The attributes S12:mustUnderstand and wsu:Id are optional. -->
    
    <?IDENTIFIER "8ef02fe4-ea42-4a90-b229-e6cd7e698719"?>
    <?DESCRIPTION?>
    <?TYPE "EDM-REQ"?>
    
    <eb:UserMessage>
        <eb:MessageInfo>
            <!--  The date at which the message header was created, must be dateTime (see [XMLSCHEMA]).  -->
            <eb:Timestamp>2023-09-24T09:07:36.000Z</eb:Timestamp>
            <!--  A globally unique identifier for the message. MUST be expressed according to RFC2822.  -->
            <eb:MessageId>db26ead7-61f3-4df0-beee-521cd83c9306@government.nl</eb:MessageId>
        </eb:MessageInfo>
        <eb:PartyInfo>
            <!--  The 'eb:PartyId/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.    -->
            <eb:From>
                <!--  The AS4 gateway (C2) that is sending the message on behalf of the Evidence Requester.     -->
                <eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:NL">GovernmentNLGateway01</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:From>
            <eb:To>
                <!--  The AS4 gateway (C3) that is receiving the message on behalf of the Evidence Provider.   -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0204">991-GatewayGermany-11</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:To>
        </eb:PartyInfo>
        <eb:CollaborationInfo>
            <!-- Fixed Value that follows the rules of the ebXML Messaging Protocol Binding for RegRep Version 1.0 -->
            <eb:Service type="urn:oasis:names:tc:ebcore:ebrs:ebms:binding:1.0">QueryManager</eb:Service>
            <!--  Element identifying an operation. For the Evidence Request the value ExecuteQueryRequest is used.  -->
            <eb:Action>ExecuteQueryRequest</eb:Action>
            <!-- The unique ConversationId applies to all requests and their responses within a user session to link requests-response scenarios executed throughout a procedure. MUST be expressed as UUID. -->
            <eb:ConversationId>b11c2a3c-3be9-4aac-9a03-cf2c6d4e7bbe</eb:ConversationId>
        </eb:CollaborationInfo>
        <eb:MessageProperties>
            <!--  The value of the 'eb:Property/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.   -->
            <!--  This element points to the Evidence Requester (C1) that is described in the Evidence Request. eb:Property/@name must be declared as 'originalSender'  -->
            <eb:Property name="originalSender" type="urn:cef.eu:names:identifier:EAS:0190">NL222332239</eb:Property>
            <!--  This element points to the Evidence Provider (C4) that is described in the Evidence Request. eb:Property/@name must be declared as 'finalRecipient'  -->
            <eb:Property name="finalRecipient" type="urn:cef.eu:names:identifier:EAS:0204">02-SchoolAuthority-34</eb:Property>
        </eb:MessageProperties>
        <eb:PayloadInfo>
            <!--  The href attribute of every PartInfo MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. The payload object must be referenced with the same UUID as defined in the RegRep payload as rim:slot "SpecificationIdentifier". The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:4ffb5281-179d-4578-adf2-39fd13ccc797@government.nl">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--  To declare the Evidence Request payload which is defined as ebXML RegRep document, the MIME must be  "application/x-ebrs+xml."  -->
                    <eb:Property name="MimeType">application/x-ebrs+xml</eb:Property>
                    <!--   The element declares the compression format of payload. If present, the value of the property MUST be application/gzip and MUST have a name attribute with the fixed value "CompressionType".  -->
                    <eb:Property name="CompressionType">application/gzip</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
        </eb:PayloadInfo>
    </eb:UserMessage>
</eb:Messaging>

3.2 Step 2: Error Response

The response status provided by the Evidence Provider is declared as failure. The rs:Exception type provided by the Evidence Provider references to an authorization problem combined with the severity  value urn:sr.oots.tech.ec.europa.eu:codes:ErrorSeverity:EDMErrorResponse:PreviewRequired which requires a user redirection to a preview location where the user can preview, select and give his consent to use the evidence. Therefore the Evidence provider informs the Evdience Requester about the required preview, its location and the method. More information about how this information is represented within the XML document can be found in the Error Response Syntax Mapping. 

Step 2 (Payload): XML example of the Evidence Error Response for the Secondary Education Completition Evidence
<?xml version="1.0" encoding="UTF-8"?>
<query:QueryResponse xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0" 
    xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0" 
    xmlns:sdg="http://data.europa.eu/p4s"
    xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    requestId="urn:uuid:4ffb5281-179d-4578-adf2-39fd13ccc797"
    status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure">
    <!-- The 'id' attribute of a 'QueryResponse' MUST be unique UUID (RFC 4122) for each request starting with prefix "urn:uuid:" -->
    <!-- The 'status' attribute of an unsuccessfull 'query:QueryResponse' MUST be encoded as as 'urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure'. -->
    
    <rim:Slot name="SpecificationIdentifier">
        <rim:SlotValue xsi:type="rim:StringValueType">
            <!-- MUST be the fixed value "oots-edm:v1.0", depending on the version of the OOTS -->
            <rim:Value>oots-edm:v1.0</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="EvidenceResponseIdentifier">
        <rim:SlotValue xsi:type="rim:StringValueType">
            <!-- The 'rim:Value' of the 'EvidenceResponseIdentifier' MUST be unique UUID (RFC 4122) for each response. -->
            <rim:Value>530ad1e2-5eaf-4a9a-8192-227432eea95d</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="ErrorProvider">
        <rim:SlotValue xsi:type="rim:AnyValueType">
            <sdg:Agent>
                <!-- The value of the 'schemeID' attribute of the 'Identifier' SHOULD be part of the code list 'EAS' (Electronic Address Scheme ) and use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]'  -->
                <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0204">DE765758700</sdg:Identifier>
                <sdg:Name lang="EN">Authority for school and occupational training</sdg:Name>
                <sdg:Address>
                    <sdg:FullAddress>Hamburger Str. 31</sdg:FullAddress>
                    <sdg:LocatorDesignator>31</sdg:LocatorDesignator>
                    <sdg:PostCode>22083</sdg:PostCode>
                    <sdg:PostCityName>Hamburg</sdg:PostCityName>
                    <!-- The value of the 'AdminUnitLevel1' MUST be coded using the code list 'CountryIdentificationCode' (ISO 3166-1' alpha-2 codes).  -->
                    <sdg:AdminUnitLevel1>DE</sdg:AdminUnitLevel1>
                    <!-- The value of the 'AdminUnitLevel2' MUST be coded using the code list 'NUTS' (Nomenclature of Territorial Units for Statistics).  -->
                    <sdg:AdminUnitLevel2>DE60</sdg:AdminUnitLevel2>
                </sdg:Address>
                <!--   The value MUST be part of the code list 'AgentClassification'. Default value: ERRP (Error Provider). The code 'ER' shall not be used by this transaction.  -->
                <sdg:Classification>ERRP</sdg:Classification>
            </sdg:Agent>
        </rim:SlotValue>
    </rim:Slot>
    
    <rim:Slot name="EvidenceRequester">
        <rim:SlotValue xsi:type="rim:AnyValueType">
            <sdg:Agent>
                <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0190">NL22233223</sdg:Identifier>
                <sdg:Name lang="en">University of Amsterdam</sdg:Name>
            </sdg:Agent>  
        </rim:SlotValue>
    </rim:Slot>

    <!-- The value of 'xsi:type' attribute of a 'rs:Exception' MUST be a 'type' provided by code list 'EDMErrorCodes' (Exchange Data Model Error Response Codes).  -->
    <!-- The 'severity' attribute must be part of the code list 'ErrorSeverity' (Error Severity). The code 'urn:sr.oots.tech.ec.europa.eu:codes:ErrorSeverity:DSDErrorResponse:AdditionalInput' shall not be used by this transaction.  -->
    <!-- The value of 'severity' attribute of a 'rs:Exception' MUST  be 'urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error' if the rs:Exception xsi:type='rs:AuthorizationExceptionType' (@code 'EDM:ERR:0002') is NOT used.  -->
    <!-- The value of 'code' attribute of a 'rs:Exception' MUST be a 'code' matching the 'type' provided by code list 'EDMErrorCodes' (Exchange Data Model Error Response Codes). -->
    <!-- If a 'rim:Slot[@name='PreviewLocation']' is provided, the 'rs:Exception' MUST  be 'urn:sr.oots.tech.ec.europa.eu:codes:ErrorSeverity:EDMErrorResponse:PreviewRequired' and use the rs:Exception xsi:type='rs:AuthorizationExceptionType' (@code 'EDM:ERR:0002').  -->
    <!-- This Example for rs:Exception points to a required preview on the side of the Evidence Provider -->
    <rs:Exception xsi:type="rs:AuthorizationExceptionType" message="Missing Authorization" severity="urn:sr.oots.tech.ec.europa.eu:codes:ErrorSeverity:EDMErrorResponse:PreviewRequired" detail="The server needs authorisation and preview on its side to process the request" code="EDM:ERR:0002">
        <rim:Slot name="Timestamp">
            <rim:SlotValue xsi:type="rim:DateTimeValueType">
                <!-- The 'rim:Value' of 'Timestamp' MUST be according to xsd:dateTime.  -->
                <rim:Value>2020-02-14T19:21:30+01:00</rim:Value>
            </rim:SlotValue>
        </rim:Slot>
        <rim:Slot name="PreviewLocation">
            <rim:SlotValue xsi:type="rim:StringValueType">
                <!-- The 'rim:Value' of a 'PreviewLocation' MUST be a URI starting with 'https://'. -->
                <rim:Value>https://preview.space.example.com/requests?session=d36af8bc-fea6-4ee5-a32d-5bef82cdb071</rim:Value>
            </rim:SlotValue>
        </rim:Slot>
        <rim:Slot name="PreviewDescription">
            <rim:SlotValue xsi:type="rim:InternationalStringValueType">
                <!-- The 'language' attribute of 'PreviewDescription' MUST be specified using the code list 'LanguageCode'. Default value 'EN'. -->
                <rim:Value>
                    <rim:LocalizedString xml:lang="NL" value="Kies uw diploma."/>
                    <rim:LocalizedString xml:lang="RO" value="Vă rugăm să selectați diploma dvs."/>
                    <rim:LocalizedString xml:lang="EN" value="Please select your diploma."/>
                </rim:Value>
            </rim:SlotValue>
        </rim:Slot>
        <rim:Slot name="PreviewMethod">
            <rim:SlotValue xsi:type="rim:StringValueType">
                <!-- The 'rim:Value' of a 'PreviewMethod' MUST be either the HTTP verb 'GET' or 'POST'. -->
                <rim:Value>GET</rim:Value>
            </rim:SlotValue>
        </rim:Slot>
    </rs:Exception>
</query:QueryResponse>

XML example of the ebMS Evidence Error Response Header for Secondary Education Completion Evidence

Step 2 (Header): XML example of the ebMS Evidence Error Response Header for Secondary Education Completition Evidence
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eb:Messaging  xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/ 
    https://www.oasis-open.org/committees/download.php/64179/ebms-header-3_0-200704_with_property_type_attribute.xsd">
    
    <?IDENTIFIER "2747f9ff-6f6a-4ae6-8338-3c5511bc31a2"?>
    <?DESCRIPTION?>
    <?TYPE "EDM-ebMS"?>
    
    <eb:UserMessage>
        <eb:MessageInfo>
            <!--  The date at which the message header was created, must be dateTime (see [XMLSCHEMA]).  -->
            <eb:Timestamp>2023-09-24T09:07:45.000Z</eb:Timestamp>
            <!--  A globally unique identifier for the message. MUST be expressed according to RFC2822.  -->
            <eb:MessageId>124cd3d8-6301-4c09-a3b7-d9f39ce60efd@it.nrw</eb:MessageId>
        </eb:MessageInfo>
        <eb:PartyInfo>
            <!--  The 'eb:PartyId/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.    -->
            <eb:From>
                <!--  The AS4 gateway (C2) that is sending the message on behalf of the Evidence Provider.     -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0204">991-GatewayGermany-11</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:From>
            <eb:To>
                <!--  The AS4 gateway (C3) that is receiving the message on behalf of the Evidence Requester.   -->
                <eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:NL">GovernmentNLGateway01</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:To>
        </eb:PartyInfo>
        <eb:CollaborationInfo>
            <!-- Fixed Value that follows the rules of the ebXML Messaging Protocol Binding for RegRep Version 1.0 -->
            <eb:Service type="urn:oasis:names:tc:ebcore:ebrs:ebms:binding:1.0">QueryManager</eb:Service>
            <!--  Element identifying an operation. For the Evidence Error Response the value ExceptionResponse is used.  -->
            <eb:Action>ExceptionResponse</eb:Action>
            <!-- The unique ConversationId applies to all requests and their responses within a user session to link requests-response scenarios executed throughout a procedure. MUST be expressed as UUID. -->
            <eb:ConversationId>b11c2a3c-3be9-4aac-9a03-cf2c6d4e7bbe</eb:ConversationId>
        </eb:CollaborationInfo>
        <eb:MessageProperties>
            <!--  The value of the 'eb:Property/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.   -->
            <!--  This element points to the Evidence Provider (C1) that is described in the Evidence Error Response. eb:Property/@name must be declared as 'originalSender' In case of exceptions the originalSender of the response message may be the Error Provider declared in the Evidence Error Response Message.  -->
            <eb:Property name="originalSender" type="urn:cef.eu:names:identifier:EAS:0204">02-SchoolAuthority-34</eb:Property>
            <!--  This element points to the Evidence Requester (C4) that is described in the Evidence Request. eb:Property/@name must be declared as 'finalRecipient'  -->
            <eb:Property name="finalRecipient" type="urn:cef.eu:names:identifier:EAS:0190">NL222332239</eb:Property>
        </eb:MessageProperties>
        <eb:PayloadInfo>
            <!--  The href attribute of every PartInfo MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. The payload object must be referenced with the same UUID as defined in the RegRep payload as rim:slot "SpecificationIdentifier". The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:530ad1e2-5eaf-4a9a-8192-227432eea95d@it.nrw">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--  To declare the Evidence Error Response payload which is defined as ebXML RegRep document, the MIME must be  "application/x-ebrs+xml."  -->
                    <eb:Property name="MimeType">application/x-ebrs+xml</eb:Property>
                    <!--   The element declares the compression format of payload. If present, the value of the property MUST be application/gzip and MUST have a name attribute with the fixed value "CompressionType".  -->
                    <eb:Property name="CompressionType">application/gzip</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
        </eb:PayloadInfo>
    </eb:UserMessage>
</eb:Messaging>

3.3 Step 3: Second Evidence Request

The Evidence Requester redirects the user (natural person) to the corresponding preview location. After the execution of the preview the Evidence Requester sends a second Evidence Request to the Evidence Provider which contains the location of the performed preview as a reference. More information about how this information is represented within the XML document can be found in the Evidence Request Syntax Mapping. 

Step 3 (Payload): XML example of the second Evidence Request for a Secondary Education Completition Evidence
<?xml version="1.0" encoding="UTF-8"?>
<query:QueryRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
					xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
					xmlns:sdg="http://data.europa.eu/p4s"
					xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
					xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
					xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
					xmlns:xlink="http://www.w3.org/1999/xlink"
					xmlns:xml="http://www.w3.org/XML/1998/namespace"
					xml:lang="DE"
					id="urn:uuid:cb6b247f-232a-4163-87ce-c3e49b148e0a">
	
	<rim:Slot name="SpecificationIdentifier">
		<rim:SlotValue xsi:type="rim:StringValueType">
			<rim:Value>oots-edm:v1.0</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="IssueDateTime">
		<rim:SlotValue xsi:type="rim:DateTimeValueType">
			<rim:Value>2022-02-15T19:20:30+01:00</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="Procedure">
		<rim:SlotValue xsi:type="rim:InternationalStringValueType">
			<rim:Value>
				<rim:LocalizedString xml:lang="EN"
					value="T2"/>
			</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="PreviewLocation">
		<rim:SlotValue xsi:type="rim:StringValueType">
			<!-- MUST be a URI starting with 'https://' -->
			<rim:Value>https://preview.space.example.com/requests?session=d36af8bc-fea6-4ee5-a32d-5bef82cdb071</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="PossibilityForPreview">
		<rim:SlotValue xsi:type="rim:BooleanValueType">
			<rim:Value>true</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="ExplicitRequestGiven">
		<rim:SlotValue xsi:type="rim:BooleanValueType">
			<rim:Value>true</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="Requirements">
		<rim:SlotValue xsi:type="rim:CollectionValueType"
					   collectionType="urn:oasis:names:tc:ebxml-regrep:CollectionType:Set">
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:Requirement>
					<sdg:Identifier>https://sr.oots.tech.ec.europa.eu/requirements/cfcd4e22-30f1-48fa-93e4-6cf98cedbf40</sdg:Identifier>
					<sdg:Name lang="EN">Proof of secondary education diploma/certificate</sdg:Name>
					<sdg:Name lang="DE">Nachweis eines Sekundarschulabschlusses/Zeugnisses</sdg:Name>
				</sdg:Requirement>
			</rim:Element>
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:Requirement>
					<sdg:Identifier>https://sr.oots.tech.ec.europa.eu/requirements/99a0a5d4-10ba-42c3-a0be-5566b441cbb6</sdg:Identifier>
					<sdg:Name lang="EN">Submission of secondary education diploma supplemenent</sdg:Name>
					<sdg:Name lang="DE">Einreichung der Anlage zum Nachweis des SekundarschulabschlussesNachweis</sdg:Name>
				</sdg:Requirement>
			</rim:Element>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceRequester">
		<rim:SlotValue xsi:type="rim:CollectionValueType">
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:Agent>
					<sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0190">NL22233223</sdg:Identifier>
					<sdg:Name lang="EN">University of Amsterdam</sdg:Name>
					<sdg:Address>
						<sdg:FullAddress>Binnengasthuisstraat 9</sdg:FullAddress>
						<sdg:LocatorDesignator>9</sdg:LocatorDesignator>
						<sdg:PostCode>1012</sdg:PostCode>
						<sdg:PostCityName>Amsterdam</sdg:PostCityName>
						<sdg:AdminUnitLevel1>NL</sdg:AdminUnitLevel1>
						<sdg:AdminUnitLevel2>NL329</sdg:AdminUnitLevel2>
					</sdg:Address>
					<sdg:Classification>ER</sdg:Classification>
				</sdg:Agent>
			</rim:Element>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceProvider">
		<rim:SlotValue xsi:type="rim:AnyValueType">
			<sdg:Agent>
				<sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0204">DE7657587001</sdg:Identifier>
				<sdg:Name lang="EN">Authority for school and occupational training</sdg:Name>
			</sdg:Agent>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceProviderClassification">
		<rim:SlotValue xsi:type="rim:CollectionValueType">
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:EvidenceProviderClassification>
					<sdg:Identifier>12c58ee8-f40a-42ac-b056-938499d55a1a</sdg:Identifier>
					<sdg:Type>Codelist</sdg:Type>
					<sdg:ValueExpression>https://sr.oots.tech.ec.europa.eu/ep-classification/de/secondary-education-type</sdg:ValueExpression>
					<sdg:Description lang="EN">Type of Secondary Education</sdg:Description>
					<sdg:Description lang="DE">Art der Sekundarschulbildung</sdg:Description>
					<sdg:SupportedValue>
						<sdg:StringValue>HigherEducationEntranceQualification</sdg:StringValue>
					</sdg:SupportedValue>
				</sdg:EvidenceProviderClassification>
			</rim:Element>
		</rim:SlotValue>
	</rim:Slot>
	<query:ResponseOption returnType="LeafClassWithRepositoryItem"/>
	<query:Query queryDefinition="DocumentQuery">
		<rim:Slot name="NaturalPerson">
			<rim:SlotValue xsi:type="rim:AnyValueType">
				<sdg:Person>
					<sdg:LevelOfAssurance>High</sdg:LevelOfAssurance>
					<sdg:Identifier schemeID="eidas">DE/DE/123456789</sdg:Identifier>
					<sdg:FamilyName>Smith</sdg:FamilyName>
					<sdg:GivenName>Jack</sdg:GivenName>
					<sdg:DateOfBirth>1999-03-01</sdg:DateOfBirth>
					<sdg:PlaceOfBirth>Duesseldorf</sdg:PlaceOfBirth>
					<sdg:CurrentAddress>
						<sdg:FullAddress>Lansstraße 81, 50825 Koeln, Germany</sdg:FullAddress>
						<sdg:LocatorDesignator>81</sdg:LocatorDesignator>
						<sdg:PostCode>50825</sdg:PostCode>
						<sdg:PostCityName>Koeln</sdg:PostCityName>
						<sdg:Thoroughfare>Lansstraße</sdg:Thoroughfare>
						<sdg:AdminUnitLevel1>DE</sdg:AdminUnitLevel1>
						<sdg:AdminUnitLevel2>DEA2</sdg:AdminUnitLevel2>
					</sdg:CurrentAddress>
					<sdg:Gender>Male</sdg:Gender>
					<!-- Optional Sector Specific Attribute not belonging to the Minimum Data Set -->
					<sdg:SectorSpecificAttribute>
						<sdg:AttributeName>Mobile-ID</sdg:AttributeName>
						<sdg:AttributeURI>http://eidas.europa.eu/attributes/naturalperson/payment/mobile-id</sdg:AttributeURI>
						<sdg:AttributeValue>5170137075032</sdg:AttributeValue>
					</sdg:SectorSpecificAttribute>
					<sdg:SectorSpecificAttribute>
						<sdg:AttributeName>Residency-ID</sdg:AttributeName>
						<sdg:AttributeURI>http://eidas.europa.eu/attributes/naturalperson/location/residency-id</sdg:AttributeURI>
						<sdg:AttributeValue>INGTTTFYYY</sdg:AttributeValue>
					</sdg:SectorSpecificAttribute>
				</sdg:Person>
			</rim:SlotValue>
		</rim:Slot>
		<rim:Slot name="EvidenceRequest">
			<rim:SlotValue xsi:type="rim:AnyValueType">
				<sdg:DataServiceEvidenceType>
					<sdg:Identifier>487fdfdc-7f92-42bb-a690-dcbd3d65f435</sdg:Identifier>
					<sdg:EvidenceTypeClassification>https://sr.oots.tech.ec.europa.eu/evidencetypeclassifications/DE/edf717b7-b373-40b1-b51b-cbb7c9d64de5</sdg:EvidenceTypeClassification>
					<sdg:Title lang="EN">Secondary Education Completion Evidence</sdg:Title>
					<sdg:Title lang="DE">Nachweis des Sekundarschulabschlusses</sdg:Title>
					<sdg:Description lang="EN">Proof of a secondary school graduation which is acquired after 12 or 13 school years in the upper secondary school and which entitles the holder to the general higher education entrance qualification, i.e. opens up access to all higher education institutions and fields of study.</sdg:Description>
					<sdg:Description lang="DE">Nachweis für einen Sekundarschulabschluss, der nach 12 bzw. 13 Schuljahren in der gymnasialen Oberstufe erworben wird und die Allgemeine Hochschulreife verleiht, d.h. den Zugang zu allen Hochschulen und Fachrichtungen eröffnet.</sdg:Description>
					<sdg:DistributedAs>
						<sdg:Format>application/pdf</sdg:Format>
						<sdg:ConformsTo>https://sr.oots.tech.ec.europa.eu/distributions/secondary-education-evidence-1.0.0</sdg:ConformsTo>
						<sdg:Transformation>https://sr.oots.tech.ec.europa.eu/distributions/secondary-education-evidence-1.0.0/passed</sdg:Transformation>
					</sdg:DistributedAs>
				</sdg:DataServiceEvidenceType>
			</rim:SlotValue>
		</rim:Slot>
	</query:Query>
</query:QueryRequest>

XML example of the second ebMS Evidence Request Header for Secondary Education Completion Evidence

Step 3 (Header): XML example of the second ebMS Evidence Request Header for Secondary Education Completition Evidence
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eb:Messaging xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:S12="http://www.w3.org/2003/05/soap-envelope"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xsi:schemaLocation="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/
    https://www.oasis-open.org/committees/download.php/64179/ebms-header-3_0-200704_with_property_type_attribute.xsd"
    S12:mustUnderstand="true"
    wsu:Id="_148995f58ebb3087d1d3dccbd089db9f7922188240a56eaa657f1a8998a6c45be">

    <!-- The attributes S12:mustUnderstand and wsu:Id are optional. -->

    <?IDENTIFIER "8ef02fe4-ea42-4a90-b229-e6cd7e698719"?>
    <?DESCRIPTION?>
    <?TYPE "EDM-REQ"?>

    <eb:UserMessage>
        <eb:MessageInfo>
            <!--  The date at which the message header was created, must be dateTime (see [XMLSCHEMA]).  -->
            <eb:Timestamp>2023-09-24T09:07:36.000Z</eb:Timestamp>
            <!--  A globally unique identifier for the message. MUST be expressed according to RFC2822.  -->
            <eb:MessageId>db26ead7-61f3-4df0-beee-521cd83c9306@government.nl</eb:MessageId>
        </eb:MessageInfo>
        <eb:PartyInfo>
            <!--  The 'eb:PartyId/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.    -->
            <eb:From>
                <!--  The AS4 gateway (C2) that is sending the message on behalf of the Evidence Requester.     -->
                <eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:NL">GovernmentNLGateway01</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:From>
            <eb:To>
                <!--  The AS4 gateway (C3) that is receiving the message on behalf of the Evidence Provider.   -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0204">991-GatewayGermany-11</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:To>
        </eb:PartyInfo>
        <eb:CollaborationInfo>
            <!-- Fixed Value that follows the rules of the ebXML Messaging Protocol Binding for RegRep Version 1.0 -->
            <eb:Service type="urn:oasis:names:tc:ebcore:ebrs:ebms:binding:1.0">QueryManager</eb:Service>
            <!--  Element identifying an operation. For the Evidence Request the value ExecuteQueryRequest is used.  -->
            <eb:Action>ExecuteQueryRequest</eb:Action>
            <!-- The unique ConversationId applies to all requests and their responses within a user session to link requests-response scenarios executed throughout a procedure. MUST be expressed as UUID. -->
            <eb:ConversationId>b11c2a3c-3be9-4aac-9a03-cf2c6d4e7bbe</eb:ConversationId>
        </eb:CollaborationInfo>
        <eb:MessageProperties>
            <!--  The value of the 'eb:Property/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.   -->
            <!--  This element points to the Evidence Requester (C1) that is described in the Evidence Request. eb:Property/@name must be declared as 'originalSender'  -->
            <eb:Property name="originalSender" type="urn:cef.eu:names:identifier:EAS:0190">NL222332239</eb:Property>
            <!--  This element points to the Evidence Provider (C4) that is described in the Evidence Request. eb:Property/@name must be declared as 'finalRecipient'  -->
            <eb:Property name="finalRecipient" type="urn:cef.eu:names:identifier:EAS:0204">02-SchoolAuthority-34</eb:Property>
        </eb:MessageProperties>
        <eb:PayloadInfo>
            <!--  The href attribute of every PartInfo MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. The payload object must be referenced with the same UUID as defined in the RegRep payload as rim:slot "SpecificationIdentifier". The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:4ffb5281-179d-4578-adf2-39fd13ccc797@government.nl">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--  To declare the Evidence Request payload which is defined as ebXML RegRep document, the MIME must be  "application/x-ebrs+xml."  -->
                    <eb:Property name="MimeType">application/x-ebrs+xml</eb:Property>
                    <!--   The element declares the compression format of payload. If present, the value of the property MUST be application/gzip and MUST have a name attribute with the fixed value "CompressionType".  -->
                    <eb:Property name="CompressionType">application/gzip</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
        </eb:PayloadInfo>
    </eb:UserMessage>
</eb:Messaging>

3.4 Step 4: Evidence Response

After the execution of the preview and a matching of the preview results with the second Evidence Request, the Evidence Provider sends an Evidence Response with the Secondary Education Completion Evidence and its supplement to the Evidence Requester. More information about how this information is represented within the XML document can be found in the Evidence Response Syntax Mapping. 

Step 4 (Payload): XML example of Evidence Response for a Secondary Education Completition Evidence
<?xml version="1.0" encoding="UTF-8"?>
 
<query:QueryResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
    xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
    xmlns:sdg="http://data.europa.eu/p4s"
    xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success"
    xmlns:xml="http://www.w3.org/XML/1998/namespace" 
    requestId="urn:uuid:cb6b247f-232a-4163-87ce-c3e49b148e0a">
    
 
    <!-- Top Level Slots, providing metadata about the Response and the Evidence Provider -->
    <rim:Slot name="SpecificationIdentifier">
        <rim:SlotValue xsi:type="rim:StringValueType"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <rim:Value>oots-edm:v1.0</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="EvidenceResponseIdentifier">
        <rim:SlotValue xsi:type="rim:StringValueType">
            <rim:Value>abd12484-aa7d-4bb7-a697-7b15ab9b3b79</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="IssueDateTime">
        <rim:SlotValue xsi:type="rim:DateTimeValueType">
            <rim:Value>2022-02-14T19:20:30+02:00</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="EvidenceProvider">
        <rim:SlotValue xsi:type="rim:CollectionValueType">
            <rim:Element xsi:type="rim:AnyValueType">
                <sdg:Agent>
                    <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0204">02-SchoolAuthority-34</sdg:Identifier>
                    <sdg:Name lang="EN">Authority for school and occupational training</sdg:Name>
                    <sdg:Address>
                        <sdg:FullAddress>Hamburger Str. 31</sdg:FullAddress>
                        <sdg:LocatorDesignator>31</sdg:LocatorDesignator>
                        <sdg:PostCode>22083</sdg:PostCode>
                        <sdg:PostCityName>Hamburg</sdg:PostCityName>
                        <sdg:AdminUnitLevel1>DE</sdg:AdminUnitLevel1>
                        <sdg:AdminUnitLevel2>DE600</sdg:AdminUnitLevel2>
                    </sdg:Address>
                    <sdg:Classification>EP</sdg:Classification>
                </sdg:Agent>
            </rim:Element>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="EvidenceRequester">
        <rim:SlotValue xsi:type="rim:AnyValueType">
            <sdg:Agent>
                <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0190">NL222332239</sdg:Identifier>
                <sdg:Name lang="EN">University of Amsterdam</sdg:Name>
            </sdg:Agent>
        </rim:SlotValue>
    </rim:Slot>
    <rim:RegistryObjectList>
        <rim:RegistryObject xsi:type="rim:ExtrinsicObjectType" id="urn:uuid:6fb9fe0f-c0bf-4172-849b-7e7a1d86f98a">
        <rim:Slot name="EvidenceMetadata">
            <rim:SlotValue xsi:type="rim:AnyValueType">
                <sdg:Evidence>
                    <sdg:Identifier>7c2e04cf-7d20-4363-908d-827817746725</sdg:Identifier>
                    <sdg:IsAbout>
                        <sdg:NaturalPerson>
                            <sdg:Identifier schemeID="eidas">DE/DE/123456789</sdg:Identifier>
                            <sdg:FamilyName>Smith</sdg:FamilyName>
                            <sdg:GivenName>Jack</sdg:GivenName>
                            <sdg:DateOfBirth>1999-03-01</sdg:DateOfBirth>
                            <sdg:PlaceOfBirth>Duesseldorf</sdg:PlaceOfBirth>
                        </sdg:NaturalPerson>
                    </sdg:IsAbout>
                    <sdg:IssuingAuthority>
                        <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:9930">DE7657587001</sdg:Identifier>
                        <sdg:Name lang="EN">Wilhelm Gymnasium</sdg:Name>
                    </sdg:IssuingAuthority>
                    <sdg:IsConformantTo>
                        <sdg:EvidenceTypeClassification>https://sr.oots.tech.ec.europa.eu/evidencetypeclassifications/DE/17a2b329-5ae5-4de6-b360-db504fad0526</sdg:EvidenceTypeClassification>
                        <sdg:Title lang="EN">Secondary Education Completion Evidence</sdg:Title>
                        <sdg:Title lang="DE">Nachweis des Sekundarschulabschlusses</sdg:Title>
                        <sdg:Description lang="EN">Proof of a secondary school graduation which is acquired after 12 or 13 school years in the upper secondary school and which entitles the holder to the general higher education entrance qualification, i.e. opens up access to all higher education institutions and fields of study.</sdg:Description>
                        <sdg:Description lang="DE">Nachweis für einen Sekundarschulabschluss, der nach 12 bzw. 13 Schuljahren in der gymnasialen Oberstufe erworben wird und die Allgemeine Hochschulreife verleiht, d.h. den Zugang zu allen Hochschulen und Fachrichtungen eröffnet.</sdg:Description>
                    </sdg:IsConformantTo>
                    <sdg:IssuingDate>2019-05-10</sdg:IssuingDate>
                    <sdg:Distribution>
                        <sdg:Format>application/pdf</sdg:Format>
                        <sdg:ConformsTo>https://sr.oots.tech.ec.europa.eu/distributions/secondary-education-evidence-1.0.0</sdg:ConformsTo>
                        <sdg:Transformation>https://sr.oots.tech.ec.europa.eu/distributions/secondary-education-evidence-1.0.0/passed</sdg:Transformation>
                    </sdg:Distribution>
                </sdg:Evidence>         
            </rim:SlotValue>
        </rim:Slot>           
        <!-- The attached Document Provided as Evidence. Points to an AS4 attachment -->
        <rim:RepositoryItemRef xlink:href="cid:bb39b56b-57e2-4e0b-98a4-70f5a8127b3c@it.nrw" xlink:title="SecondaryEducationCompletion"/>
    </rim:RegistryObject>
        <rim:RegistryObject xsi:type="rim:ExtrinsicObjectType" id="urn:uuid:dc518a5b-ff25-44de-9bc5-2ecda71d3f6e">
        <rim:Slot name="EvidenceMetadata">
            <rim:SlotValue xsi:type="rim:AnyValueType">
                <sdg:Evidence>
                    <sdg:Identifier>5ee5c0de-c066-4637-bea3-6e3511ada970</sdg:Identifier>
                    <sdg:IsAbout>
                        <sdg:NaturalPerson>
                            <sdg:Identifier schemeID="eidas">DE/DE/123456789</sdg:Identifier>
                            <sdg:FamilyName>Smith</sdg:FamilyName>
                            <sdg:GivenName>Jack</sdg:GivenName>
                            <sdg:DateOfBirth>1999-03-01</sdg:DateOfBirth>
                            <sdg:PlaceOfBirth>Duesseldorf</sdg:PlaceOfBirth>
                        </sdg:NaturalPerson>
                    </sdg:IsAbout>
                    <sdg:IssuingAuthority>
                        <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:9930">DE7657587001</sdg:Identifier>
                        <sdg:Name>Wilhelm Gymnasium</sdg:Name>
                    </sdg:IssuingAuthority>
                    <sdg:IsConformantTo>
                        <sdg:EvidenceTypeClassification>https://sr.oots.tech.ec.europa.eu/evidencetypeclassifications/DE/1602e8e5-43be-45e6-ba58-c1ca075a5d2b</sdg:EvidenceTypeClassification>
                        <sdg:Title lang="EN">Secondary Education Completion Evidence Supplement</sdg:Title>
                        <sdg:Title lang="DE">Anhang zum Nachweis des Sekundarschulabschlusses</sdg:Title>
                        <sdg:Description lang="EN">The Supplement of the Secondary Education Completion Evidence Supplement to understand the qualification.</sdg:Description>
                        <sdg:Description lang="DE">Die Anlage zum Nachweis des Sekundarschulabschlusses, um die Qualifikation zu verstehen.</sdg:Description>
                    </sdg:IsConformantTo>
                    <sdg:IssuingDate>2019-05-10</sdg:IssuingDate>
                    <sdg:Distribution>
                        <sdg:Format>application/pdf</sdg:Format>
                    </sdg:Distribution>
                </sdg:Evidence>
            </rim:SlotValue>
        </rim:Slot>           
        <!-- The attached Document Provided as Evidence. Points to an AS4 attachment -->
        <rim:RepositoryItemRef xlink:href="cid:cbc1c97c-093c-4a6b-98db-cfef5647a50e@it.nrw" xlink:title="SecondaryEducationCompletionSupplement"/>
    </rim:RegistryObject>
</rim:RegistryObjectList>  
</query:QueryResponse>

XML example of the ebMS Evidence Response Header for Secondary Education Completion Evidence

Step 4 (Header): XML example of the ebMS Evidence Response Header for Secondary Education Completition Evidence
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eb:Messaging  xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:S12="http://www.w3.org/2003/05/soap-envelope"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xsi:schemaLocation="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/ 
    https://www.oasis-open.org/committees/download.php/64179/ebms-header-3_0-200704_with_property_type_attribute.xsd"
    S12:mustUnderstand="true"
    wsu:Id="_148995f58ebb3087d1d3dccbd089db9f7922188240a56eaa657f1a8998a6c45be">

    <!-- The attributes S12:mustUnderstand and wsu:Id are optional. -->
    
    <?IDENTIFIER "24c04cdb-f033-4797-9cc6-c603c61b156d"?>
    <?DESCRIPTION?>
    <?TYPE "EDM-ebMS"?>
    
    <eb:UserMessage>
        <eb:MessageInfo>
            <!--  The date at which the message header was created, must be dateTime (see [XMLSCHEMA]).  -->
            <eb:Timestamp>2023-09-24T09:08:02.000Z</eb:Timestamp>
            <!--  A globally unique identifier for the message. MUST be expressed according to RFC2822.  -->
            <eb:MessageId>69b00c83-ab63-4426-b90d-1896817cceec@it.nrw</eb:MessageId>
        </eb:MessageInfo>
        <eb:PartyInfo>
            <!--  The 'eb:PartyId/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.    -->
            <eb:From>
                <!--  The AS4 gateway (C2) that is sending the message on behalf of the Evidence Provider.     -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0204">991-GatewayGermany-11</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:From>
            <eb:To>
                <!--  The AS4 gateway (C3) that is receiving the message on behalf of the Evidence Requester.   -->
                <eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:unregistered:NL">GovernmentNLGateway01</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:To>
        </eb:PartyInfo>
        <eb:CollaborationInfo>
            <!-- Fixed Value that follows the rules of the ebXML Messaging Protocol Binding for RegRep Version 1.0 -->
            <eb:Service type="urn:oasis:names:tc:ebcore:ebrs:ebms:binding:1.0">QueryManager</eb:Service>
            <!--  Element identifying an operation. For the Evidence Response the value ExecuteQueryResponse is used.  -->
            <eb:Action>ExecuteQueryResponse</eb:Action>
            <!-- The unique ConversationId applies to all requests and their responses within a user session to link requests-response scenarios executed throughout a procedure. MUST be expressed as UUID. -->
            <eb:ConversationId>b11c2a3c-3be9-4aac-9a03-cf2c6d4e7bbe</eb:ConversationId>
        </eb:CollaborationInfo>
        <eb:MessageProperties>
            <!--  The value of the 'eb:Property/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.   -->
            <!--  This element points to the Evidence Provider (C1) that is described in the Evidence Response. eb:Property/@name must be declared as 'originalSender'  -->
            <eb:Property name="originalSender" type="urn:cef.eu:names:identifier:EAS:0204">02-SchoolAuthority-34</eb:Property>
            <!--  This element points to the Evidence Requester (C4) that is described in the Evidence Request. eb:Property/@name must be declared as 'finalRecipient'  -->
            <eb:Property name="finalRecipient" type="urn:cef.eu:names:identifier:EAS:0190">NL222332239</eb:Property>
        </eb:MessageProperties>
        <eb:PayloadInfo>
            <!--  The href attribute of every PartInfo MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. The payload object must be referenced with the same UUID as defined in the RegRep payload as rim:slot "SpecificationIdentifier". The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:abd12484-aa7d-4bb7-a697-7b15ab9b3b79@it.nrw">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--  If the eb:Action value is 'ExecuteQueryResponse' the first eb:PartInfo[1]/eb:PartProperties/eb:Property with name="MimeType" SHALL be 'application/x-ebrs+xml' to declare the Evidence Response payload defined as ebXML RegRep document  -->
                    <eb:Property name="MimeType">application/x-ebrs+xml</eb:Property>
                    <!--   The element declares the compression format of payload. If present, the value of the property MUST be application/gzip and MUST have a name attribute with the fixed value "CompressionType".  -->
                    <eb:Property name="CompressionType">application/gzip</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
            <!--  The href attribute MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. For Evidence documents the same CID as defined in the RegRep payload element 'rim:RepositoryItemRef/@xlink:href' MUST be used. The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
			<eb:PartInfo href="cid:bb39b56b-57e2-4e0b-98a4-70f5a8127b3c@it.nrw">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--   Additional eb:PartProperties are used to describe the Evidence documents. MUST be a valid mime type of the code list 'OOTSMediaTypes'.  -->
                    <eb:Property name="MimeType">application/pdf</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
            <!--  The href attribute MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. For Evidence documents the same CID as defined in the RegRep payload element 'rim:RepositoryItemRef/@xlink:href' MUST be used. The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:cbc1c97c-093c-4a6b-98db-cfef5647a50e@it.nr">
                <eb:PartProperties>
                    <!--   Additional eb:PartProperties are used to describe the Evidence documents. MUST be a valid mime type of the code list 'OOTSMediaTypes'.  -->
                    <eb:Property name="MimeType">application/pdf</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
        </eb:PayloadInfo>
    </eb:UserMessage>
</eb:Messaging>

4. Example for requesting an Extract of a Commercial Register

In this example, we consider the case of a legal person that needs to provide an Extract of a Commercial Register. The legal person is represented by an authorized representative.
Therefore, an Evidence Requester is requesting an Extract of a Commercial Register on behalf of the legal person. To do this, an Evidence Request is sent, which
contains information about who is participating in this data exchange and which DataServiceEvidenceType is required.
The information about the required DataServiceEvidenceType has been received from the DSD. The request is sent to a service that can provide the
evidence (Evidence Provider). The Evidence Provider then sends back to the Evidence Requester an Evidence Response that contains the extract
that has been requested. The example can be also found in the git repository.

4.1. Step 1: Evidence Request 

The Evidence Request itself contains information about the Evidence Requester who is requesting an Extract of a Commercial Register for a legal person from the Evidence Provider based on the underlying procedure and requirements. More information about how this information is represented within the XML document can be found in the Evidence Request Syntax Mapping. 

Step 1 (Payload): XML example of Evidence Request for an Extract of a Commercial Register
<?xml version="1.0" encoding="UTF-8"?>
<query:QueryRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
					xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
					xmlns:sdg="http://data.europa.eu/p4s"
					xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
					xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
					xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
					xmlns:xlink="http://www.w3.org/1999/xlink"
					xmlns:xml="http://www.w3.org/XML/1998/namespace"
					xml:lang="DE"
					id="urn:uuid:361e43b5-bd1b-4eb5-9b1f-93971ce2e811">
	
	<rim:Slot name="SpecificationIdentifier">
		<rim:SlotValue xsi:type="rim:StringValueType">
			<rim:Value>oots-edm:v1.0</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="IssueDateTime">
		<rim:SlotValue xsi:type="rim:DateTimeValueType">
			<rim:Value>2022-05-19T17:08:10.872Z</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="Procedure">
		<rim:SlotValue xsi:type="rim:InternationalStringValueType">
			<rim:Value>
				<rim:LocalizedString xml:lang="EN"
					value="X4"/>
			</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="PossibilityForPreview">
		<rim:SlotValue xsi:type="rim:BooleanValueType">
			<rim:Value>false</rim:Value>
		</rim:SlotValue>
	</rim:Slot>	
	<rim:Slot name="ExplicitRequestGiven">
		<rim:SlotValue xsi:type="rim:BooleanValueType">
			<rim:Value>true</rim:Value>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="Requirements">
		<rim:SlotValue xsi:type="rim:CollectionValueType" 
			collectionType="urn:oasis:names:tc:ebxml-regrep:CollectionType:Set">
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:Requirement>
					<sdg:Identifier>https://sr.oots.tech.ec.europa.eu/requirements/315cfd75-6605-49c4-b0fe-799833b41099</sdg:Identifier>
					<sdg:Name lang="EN">Proof of business registry number to submit corporate tax declaration</sdg:Name>
				</sdg:Requirement>
			</rim:Element>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceRequester">
		<rim:SlotValue xsi:type="rim:CollectionValueType">
			<rim:Element xsi:type="rim:AnyValueType">
				<sdg:Agent>
					<sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0096">DK22234444</sdg:Identifier>
					<sdg:Name lang="EN">Danish Tax Agency</sdg:Name>
					<sdg:Address>
						<sdg:FullAddress>Prince Street 15, 1050 Copenhagen, Denmark</sdg:FullAddress>
						<sdg:LocatorDesignator>15</sdg:LocatorDesignator>
						<sdg:PostCode>1050</sdg:PostCode>
						<sdg:PostCityName>Copenhagen</sdg:PostCityName>
						<sdg:Thoroughfare>Prince Street</sdg:Thoroughfare>
						<sdg:AdminUnitLevel1>DK</sdg:AdminUnitLevel1>
						<sdg:AdminUnitLevel2>DK011</sdg:AdminUnitLevel2>
					</sdg:Address>
					<sdg:Classification>ER</sdg:Classification>
				</sdg:Agent>
			</rim:Element>
		</rim:SlotValue>
	</rim:Slot>
	<rim:Slot name="EvidenceProvider">
		<rim:SlotValue xsi:type="rim:AnyValueType">
			<sdg:Agent>
				<sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:9930">DE73524311</sdg:Identifier>
				<sdg:Name lang="EN">Tax Agency Berlin I</sdg:Name>
			</sdg:Agent>
		</rim:SlotValue>
	</rim:Slot>
	<query:ResponseOption returnType="LeafClassWithRepositoryItem"/>
	<query:Query queryDefinition="DocumentQuery">
		<rim:Slot name="LegalPerson">
			<rim:SlotValue xsi:type="rim:AnyValueType">  
				<sdg:LegalPerson>
					<!-- Level of Assurance for the Minimum Data Set (MDS) -->
					<sdg:LevelOfAssurance>High</sdg:LevelOfAssurance>
					<!-- Optional Attribute of the Minimum Data Set -->
					<sdg:Identifier schemeID="TAX">113123123123123</sdg:Identifier>
					<sdg:Identifier schemeID="VAT">SE730757727</sdg:Identifier>
					<!-- eIDAS Mandatory Attributes of the Minimum Data Set -->
					<sdg:LegalPersonIdentifier schemeID="eidas">SE/DE/12132123Y</sdg:LegalPersonIdentifier>
					<sdg:LegalName>Sweden ltd</sdg:LegalName>
					
					<sdg:RegisteredAddress>
						<sdg:FullAddress>Prince Street 15, 11121 Stockholm, Sweden</sdg:FullAddress>
						<sdg:LocatorDesignator>15</sdg:LocatorDesignator>
						<sdg:PostCode>11121</sdg:PostCode>
						<sdg:PostCityName>Stockholm</sdg:PostCityName>
						<sdg:Thoroughfare>PrinceStreet</sdg:Thoroughfare>
						<sdg:AdminUnitLevel1>SE</sdg:AdminUnitLevel1>
						<sdg:AdminUnitLevel2>SE11</sdg:AdminUnitLevel2>
					</sdg:RegisteredAddress> 
					
					<!-- Optional Sector Specific Attributes not belonging to the Minimum Data Set -->
					<sdg:SectorSpecificAttribute>
						<sdg:AttributeName>IBAN</sdg:AttributeName>
						<sdg:AttributeURI>http://eidas.europa.eu/attributes/legalperson/banking/IBAN</sdg:AttributeURI>
						<sdg:AttributeValue>SE02500105170137075032</sdg:AttributeValue>
					</sdg:SectorSpecificAttribute>
					<sdg:SectorSpecificAttribute>
						<sdg:AttributeName>BIC</sdg:AttributeName>
						<sdg:AttributeURI>http://eidas.europa.eu/attributes/legalperson/banking/BIC</sdg:AttributeURI>
						<sdg:AttributeValue>INGDDEFFYYY</sdg:AttributeValue>
					</sdg:SectorSpecificAttribute>
				</sdg:LegalPerson>
			</rim:SlotValue>
		</rim:Slot>
		<rim:Slot name="AuthorizedRepresentative">
			<rim:SlotValue xsi:type="rim:AnyValueType">
				<!--     Core Person Vocabulary (CPV) Expression of the LegalRepresentative -->
				<sdg:Person>
					
					<!-- Level of Assurance for the Minimum Data Set (MDS) -->
					<sdg:LevelOfAssurance>High</sdg:LevelOfAssurance>                          
					
					<!-- eIDAS Mandatory Attributes of the Minimum Data Set -->
					<sdg:Identifier schemeID="eidas">EL/DE/123131329</sdg:Identifier>
					<sdg:FamilyName>Doe</sdg:FamilyName>
					<sdg:GivenName>John</sdg:GivenName>
					<sdg:DateOfBirth>1978-09-09</sdg:DateOfBirth>
					
					<!-- eIDAS Optional Attributes of the Minimum Data Set -->
					<sdg:BirthName>Jonathan Doepidis</sdg:BirthName>     
					<sdg:PlaceOfBirth>Athens</sdg:PlaceOfBirth>
					<sdg:CurrentAddress >
						<sdg:FullAddress>Panepistimou 5, 85101 Athens, Greece</sdg:FullAddress>
						<sdg:LocatorDesignator>5</sdg:LocatorDesignator>
						<sdg:PostCode>85101</sdg:PostCode>
						<sdg:PostCityName>Athens</sdg:PostCityName>
						<sdg:Thoroughfare>Panepistimou</sdg:Thoroughfare>
						<!-- The value of the 'AdminUnitLevel1' MUST be coded using the code list 'CountryIdentificationCode' (ISO 3166-1' alpha-2 codes).  -->
						<sdg:AdminUnitLevel1>EL</sdg:AdminUnitLevel1>
						<sdg:AdminUnitLevel2>EL3</sdg:AdminUnitLevel2>
					</sdg:CurrentAddress>
					<sdg:Gender>Male</sdg:Gender>

					<!-- Optional Sector Specific Attributes not belonging to the Minimum Data Set. It MUST be included if received from eIDAS -->
					<!-- Sector Specific Attribute Power of Representation Scope retrieved from the eIDAS authentication of the user to the Online Procedure Portal or Intermediary Platform. In this example Power of Representation is associated to "ALL" SDG procedures. Attribute Value may also contain only one procedure e.g. T1 or comma-separated list of code values "T1, T2, S1" from the SDG Procedure code list -->
					<sdg:SectorSpecificAttribute>
						<sdg:AttributeName>PowerOfRepresentationScope</sdg:AttributeName>
						<sdg:AttributeURI>http://data.europa.eu/p4s/attributes/PowerOfRepresentationScope</sdg:AttributeURI>
						<sdg:AttributeValue>All</sdg:AttributeValue>
					</sdg:SectorSpecificAttribute>

				</sdg:Person>
			</rim:SlotValue>
		</rim:Slot>
		<rim:Slot name="EvidenceRequest">
			<rim:SlotValue xsi:type="rim:AnyValueType">
				<sdg:DataServiceEvidenceType xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0">
					<sdg:Identifier>2af27699-f131-4411-8fdb-9e8cd4e8bded</sdg:Identifier>
					<sdg:EvidenceTypeClassification>https://sr.oots.tech.ec.europa.eu/evidencetypeclassifications/DE/ca8afed6-2dc0-422a-a931-d21c3d8d370e</sdg:EvidenceTypeClassification>
					<sdg:Title lang="EN">Extract of the Commercial Register (Type A)</sdg:Title>
					<sdg:Title lang="DE">Amtlicher chronologischer Ausdruck aus dem Handelsregister A</sdg:Title>
					<sdg:Description lang="EN">Extract of the trade register department A for sole traders and corporations. (for example OHG, KG, GmbH, AG) </sdg:Description>
					<sdg:Description lang="DE">Auszug aus dem Handelsregister Abteilung A für Einzelkaufleute und Personengesellschaften (z.B. OHG, KG, GmbH, AG) </sdg:Description>
					<sdg:DistributedAs>
						<sdg:Format>application/xml</sdg:Format>
						<sdg:ConformsTo>https://sr.oots.tech.ec.europa.eu/distributions/BRIS-1.0.0</sdg:ConformsTo>
						<sdg:Transformation>https://sr.oots.tech.ec.europa.eu/distributions/BRIS-1.0.0/business-registry-number-1.0.0</sdg:Transformation>
					</sdg:DistributedAs>
				</sdg:DataServiceEvidenceType>
			</rim:SlotValue>
		</rim:Slot>
	</query:Query>
</query:QueryRequest>

XML example of the ebMS Evidence Request Header for Extract of a Commercial Register

Step 1 (Header): XML example of the ebMS Evidence Request Header for Extract of a Commercial Register
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eb:Messaging xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:S12="http://www.w3.org/2003/05/soap-envelope"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xsi:schemaLocation="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/
    https://www.oasis-open.org/committees/download.php/64179/ebms-header-3_0-200704_with_property_type_attribute.xsd"
    S12:mustUnderstand="true"
    wsu:Id="_148995f58ebb3087d1d3dccbd089db9f7922188240a56eaa657f1a8998a6c45be">

    <!-- The attributes S12:mustUnderstand and wsu:Id are optional. -->
    
    <?IDENTIFIER "10006e73-0ab3-4850-964b-93d1c985d110"?>
    <?DESCRIPTION?>
    <?TYPE "EDM-ebMS"?>   
    
    <eb:UserMessage>
        <eb:MessageInfo>
            <!--  The date at which the message header was created, must be dateTime (see [XMLSCHEMA]).  -->
            <eb:Timestamp>2023-07-14T09:02:36.000Z</eb:Timestamp>
            <!--  A globally unique identifier for the message. MUST be expressed according to RFC2822.  -->
            <eb:MessageId>69b00c83-ab63-4426-b90d-1896817cceec@digst.dk</eb:MessageId>
        </eb:MessageInfo>
        <eb:PartyInfo>
            <!--  The 'eb:PartyId/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.    -->
            <eb:From>
                <!--  The AS4 gateway (C2) that is sending the message on behalf of the Evidence Requester.     -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0060">8889909098</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:From>
            <eb:To>
                <!--  The AS4 gateway (C3) that is receiving the message on behalf of the Evidence Provider.   -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0204">991-GatewayGermany-11</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:To>
        </eb:PartyInfo>
        <eb:CollaborationInfo>
            <!-- Fixed Value that follows the rules of the ebXML Messaging Protocol Binding for RegRep Version 1.0 -->
            <eb:Service type="urn:oasis:names:tc:ebcore:ebrs:ebms:binding:1.0">QueryManager</eb:Service>
            <!--  Element identifying an operation. For the Evidence Request the value ExecuteQueryRequest is used.  -->
            <eb:Action>ExecuteQueryRequest</eb:Action>
            <!-- The unique ConversationId applies to all requests and their responses within a user session to link requests-response scenarios executed throughout a procedure. MUST be expressed as UUID. -->
            <eb:ConversationId>124cd3d8-6301-4c09-a3b7-d9f39ce60efd</eb:ConversationId>
        </eb:CollaborationInfo>
        <eb:MessageProperties>
            <!--  The value of the 'eb:Property/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.   -->
            <!--  This element points to the Evidence Requester (C1) that is described in the Evidence Request. eb:Property/@name must be declared as 'originalSender'  -->
            <eb:Property name="originalSender" type="urn:cef.eu:names:identifier:EAS:0096">DK22234444</eb:Property>
            <!--  This element points to the Evidence Provider (C4) that is described in the Evidence Request. eb:Property/@name must be declared as 'finalRecipient'  -->
            <eb:Property name="finalRecipient" type="urn:cef.eu:names:identifier:EAS:9930">DE73524311</eb:Property>
        </eb:MessageProperties>
        <eb:PayloadInfo>
            <!--  The href attribute of every PartInfo MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. The payload object must be referenced with the same UUID as defined in the RegRep payload as rim:slot "SpecificationIdentifier". The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:361e43b5-bd1b-4eb5-9b1f-93971ce2e811@digst.dk">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--  To declare the Evidence Request payload which is defined as ebXML RegRep document, the MIME must be  "application/x-ebrs+xml."  -->
                    <eb:Property name="MimeType">application/x-ebrs+xml</eb:Property>
                    <!--   The element declares the compression format of payload. If present, the value of the property MUST be application/gzip and MUST have a name attribute with the fixed value "CompressionType".  -->
                    <eb:Property name="CompressionType">application/gzip</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
        </eb:PayloadInfo>
    </eb:UserMessage>
</eb:Messaging>

4.2. Step 2: Evidence Response 


The Evidence Response itself contains information about the Evidence 
Provider who is providing an Extract of a Commercial Register and its associated Evidence Metadata for a legal person based on the Evidence Request issued by the 
Evidence Requester. The /rim:RepositoryItemRef provides a references to the evidence object in the ebMS message header.  
More information about how this information is represented within the XML document can be found in the Evidence Response Syntax Mapping. 

Step 2 (Payload): XML example of Evidence Response for an Extract of a Commercial Register
<?xml version="1.0" encoding="UTF-8"?> 
<query:QueryResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0"
    xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0"
    xmlns:sdg="http://data.europa.eu/p4s"
    xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success"
    xmlns:xml="http://www.w3.org/XML/1998/namespace" 
    requestId="urn:uuid:361e43b5-bd1b-4eb5-9b1f-93971ce2e811">
    
 
    <!-- Top Level Slots, providing metadata about the Response and the Evidence Provider -->
    <rim:Slot name="SpecificationIdentifier">
        <rim:SlotValue xsi:type="rim:StringValueType">
            <rim:Value>oots-edm:v1.0</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="EvidenceResponseIdentifier">
        <rim:SlotValue xsi:type="rim:StringValueType">
            <rim:Value>166155eb-d7a7-4cac-9086-8a85f0116462</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="IssueDateTime">
        <rim:SlotValue xsi:type="rim:DateTimeValueType">
            <rim:Value>2022-05-19T17:10:10.872Z</rim:Value>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="EvidenceProvider">
        <rim:SlotValue xsi:type="rim:CollectionValueType">
            <rim:Element xsi:type="rim:AnyValueType">
                <sdg:Agent>
                    <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:9930">DE73524311</sdg:Identifier>
                    <sdg:Name lang="EN">Tax Agency Berlin I</sdg:Name>
                    <sdg:Address>
                        <sdg:FullAddress>Schönstedtstraße 5, 13357 Berlin, Germany</sdg:FullAddress>
                        <sdg:LocatorDesignator>5</sdg:LocatorDesignator>
                        <sdg:PostCode>13357</sdg:PostCode>
                        <sdg:PostCityName>Berlin</sdg:PostCityName>
                        <sdg:Thoroughfare>Schönstedtstraße</sdg:Thoroughfare>
                        <sdg:AdminUnitLevel1>DE</sdg:AdminUnitLevel1>
                        <sdg:AdminUnitLevel2>DE3</sdg:AdminUnitLevel2>
                    </sdg:Address>
                    <sdg:Classification>EP</sdg:Classification>
                </sdg:Agent>
            </rim:Element>
        </rim:SlotValue>
    </rim:Slot>
    <rim:Slot name="EvidenceRequester">
        <rim:SlotValue xsi:type="rim:AnyValueType">
            <sdg:Agent>
                <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:0096">DK22234444</sdg:Identifier>
                <sdg:Name lang="EN">Danish Tax Agency</sdg:Name>
            </sdg:Agent>
        </rim:SlotValue>
    </rim:Slot>
    <rim:RegistryObjectList>
        <rim:RegistryObject xsi:type="rim:ExtrinsicObjectType" id="urn:uuid:f073cbe2-cf2a-4f46-b9ff-d4b0fde53ab1">
             <rim:Slot name="EvidenceMetadata">
                 <rim:SlotValue xsi:type="rim:AnyValueType">
                     <sdg:Evidence>
                         <sdg:Identifier>37a169f1-9cf6-4aa8-ac24-b083fa569173</sdg:Identifier>
                         <sdg:IsAbout>
                             <sdg:LegalPerson>
                                 <!-- eIDAS Mandatory Attributes of the Minimum Data Set -->
                                 <sdg:LegalPersonIdentifier schemeID="eidas">SE/DE/12132123Y</sdg:LegalPersonIdentifier>
                                 <sdg:LegalName>Sweden ltd</sdg:LegalName>
                             </sdg:LegalPerson>
                         </sdg:IsAbout>
                         <sdg:IssuingAuthority>
                             <sdg:Identifier schemeID="urn:cef.eu:names:identifier:EAS:9930">DE73524311</sdg:Identifier>
                             <sdg:Name lang="EN">Tax Agency Berlin I</sdg:Name>
                         </sdg:IssuingAuthority>
                         <sdg:IsConformantTo>
                             <sdg:EvidenceTypeClassification>https://sr.oots.tech.ec.europa.eu/evidencetypeclassifications/DE/ca8afed6-2dc0-422a-a931-d21c3d8d370e</sdg:EvidenceTypeClassification>
                             <sdg:Title lang="EN">Extract of the Commercial Register (Type A)</sdg:Title>
                             <sdg:Title lang="DE">Amtlicher chronologischer Ausdruck aus dem Handelsregister A</sdg:Title>
                             <sdg:Description lang="EN">Extract of the trade register department A for sole traders and corporations. (for example OHG, KG, GmbH, AG) </sdg:Description>
                             <sdg:Description lang="DE">Auszug aus dem Handelsregister Abteilung A für Einzelkaufleute und Personengesellschaften (z.B. OHG, KG, GmbH, AG) </sdg:Description>
                         </sdg:IsConformantTo>
                         <sdg:IssuingDate>2023-02-09</sdg:IssuingDate>
                         <sdg:Distribution>
                             <sdg:Format>application/xml</sdg:Format>
                             <sdg:Language>DE</sdg:Language>
                             <sdg:ConformsTo>https://sr.oots.tech.ec.europa.eu/distributions/BRIS-1.0.0</sdg:ConformsTo>
                             <sdg:Transformation>https://sr.oots.tech.ec.europa.eu/distributions/BRIS-1.0.0/business-registry-number-1.0.0</sdg:Transformation>
                         </sdg:Distribution>
                         <sdg:ValidityPeriod>
                             <sdg:StartDate>2023-02-09</sdg:StartDate>
                             <sdg:EndDate>2023-05-09</sdg:EndDate>
                         </sdg:ValidityPeriod>
                     </sdg:Evidence>      
                 </rim:SlotValue>
             </rim:Slot>           
             <!-- The attached Document Provided as Evidence. Points to an AS4 attachment -->
             <rim:RepositoryItemRef xlink:href="cid:3af8848d-88fd-47f4-a766-90ecd9e7b1fd@it.nrw" xlink:title="business-registry-number"/>
         </rim:RegistryObject>
    </rim:RegistryObjectList>  
</query:QueryResponse>

XML example of the ebMS Evidence Response Header for Extract of a Commercial Register

Step 2 (Header): XML example of the ebMS Evidence Response Header for Extract of a Commercial Register
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eb:Messaging xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:S12="http://www.w3.org/2003/05/soap-envelope"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xsi:schemaLocation="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/ 
    https://www.oasis-open.org/committees/download.php/64179/ebms-header-3_0-200704_with_property_type_attribute.xsd"
    S12:mustUnderstand="true"
    wsu:Id="_148995f58ebb3087d1d3dccbd089db9f7922188240a56eaa657f1a8998a6c45be">

    <!-- The attributes S12:mustUnderstand and wsu:Id are optional. -->
    
    <?IDENTIFIER "8d67633a-f580-431b-a6e3-565e2d01da4b"?>
    <?DESCRIPTION?>
    <?TYPE "EDM-ebMS"?>
    
    <eb:UserMessage>
        <eb:MessageInfo>
            <!--  The date at which the message header was created, must be dateTime (see [XMLSCHEMA]).  -->
            <eb:Timestamp>2023-07-14T09:02:38.000Z</eb:Timestamp>
            <!--  A globally unique identifier for the message. MUST be expressed according to RFC2822.  -->
            <eb:MessageId>15b41ec1-47cc-46f5-b5ec-05561ebceeb5@it.nrw</eb:MessageId>
        </eb:MessageInfo>
        <eb:PartyInfo>
            <!--  The 'eb:PartyId/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.    -->
            <eb:From>
                <!--  The AS4 gateway (C2) that is sending the message on behalf of the Evidence Provider.     -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0204">991-GatewayGermany-11</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:From>
            <eb:To>
                <!--  The AS4 gateway (C3) that is receiving the message on behalf of the Evidence Requester.   -->
                <eb:PartyId type="urn:cef.eu:names:identifier:EAS:0060">8889909098</eb:PartyId>
                <!--  Fixed Value   -->
                <eb:Role>http://sdg.europa.eu/edelivery/gateway</eb:Role>
            </eb:To>
        </eb:PartyInfo>
        <eb:CollaborationInfo>
            <!-- Fixed Value that follows the rules of the ebXML Messaging Protocol Binding for RegRep Version 1.0 -->
            <eb:Service type="urn:oasis:names:tc:ebcore:ebrs:ebms:binding:1.0">QueryManager</eb:Service>
            <!--  Element identifying an operation. For the Evidence Response the value ExecuteQueryResponse is used.  -->
            <eb:Action>ExecuteQueryResponse</eb:Action>
            <!-- The unique ConversationId applies to all requests and their responses within a user session to link requests-response scenarios executed throughout a procedure. MUST be expressed as UUID. -->
            <eb:ConversationId>124cd3d8-6301-4c09-a3b7-d9f39ce60efd</eb:ConversationId>
        </eb:CollaborationInfo>
        <eb:MessageProperties>
            <!--  The value of the 'eb:Property/@type' MUST not extend 256 characters and it either, MUST use the prefix 'urn:cef.eu:names:identifier:EAS:[Code]' and a code being part of the code list 'EAS' (Electronic Address Scheme ) OR it MUST use the prefix 'urn:oasis:names:tc:ebcore:partyid-type:unregistered:[Code]' and a code being part of the code list ‘EEA_Country-CodeList’. For testing purposes the code "oots" can be used.   -->
            <!--  This element points to the Evidence Provider (C1) that is described in the Evidence Response. eb:Property/@name must be declared as 'originalSender'  -->
            <eb:Property name="originalSender" type="urn:cef.eu:names:identifier:EAS:9930">DE73524311</eb:Property>
            <!--  This element points to the Evidence Requester (C4) that is described in the Evidence Request. eb:Property/@name must be declared as 'finalRecipient'  -->
            <eb:Property name="finalRecipient" type="urn:cef.eu:names:identifier:EAS:0096">DK22233223</eb:Property>
        </eb:MessageProperties>
        <eb:PayloadInfo>
            <!--  The href attribute of every PartInfo MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. The payload object must be referenced with the same UUID as defined in the RegRep payload as rim:slot "SpecificationIdentifier". The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:166155eb-d7a7-4cac-9086-8a85f0116462@it.nrw">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--  If the eb:Action value is 'ExecuteQueryResponse' the first eb:PartInfo[1]/eb:PartProperties/eb:Property with name="MimeType" SHALL be 'application/x-ebrs+xml' to declare the Evidence Response payload defined as ebXML RegRep document  -->
                    <eb:Property name="MimeType">application/x-ebrs+xml</eb:Property>
                    <!--   The element declares the compression format of payload. If present, the value of the property MUST be application/gzip and MUST have a name attribute with the fixed value "CompressionType".  -->
                    <eb:Property name="CompressionType">application/gzip</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
            <!--  The href attribute MUST have a value that is the [RFC2392] Content-ID (CID) URI of the payload object referenced. For Evidence documents the same CID as defined in the RegRep payload element 'rim:RepositoryItemRef/@xlink:href' MUST be used. The value on the right side of the prefix 'cid:' and left from the symbol '@' MUST be a valid UUID. eb:PartInfo/@href MUST use the prefix 'cid:' and be expressed according to RFC2822.   -->
            <eb:PartInfo href="cid:3af8848d-88fd-47f4-a766-90ecd9e7b1fd@it.nr">
                <!--  There MUST be one or two eb:Property of eb:PartProperties. There MUST be one eb:Property/@name  with the fixed value "MimeType".  -->
                <eb:PartProperties>
                    <!--   Additional eb:PartProperties are used to describe the Evidence documents. MUST be a valid mime type of the code list 'OOTSMediaTypes'.  -->
                    <eb:Property name="MimeType">application/xml</eb:Property>
                    <!--   The element declares the compression format of payload. If present, the value of the property MUST be application/gzip and MUST have a name attribute with the fixed value "CompressionType".  -->
                    <eb:Property name="CompressionType">application/gzip</eb:Property>
                </eb:PartProperties>
            </eb:PartInfo>
        </eb:PayloadInfo>
    </eb:UserMessage>
</eb:Messaging>
  • No labels