The DiscoveryProfiles element is the key in the "Unknown" communication patterns where the participants do not know who are the others. Thus the information is requested or routed based on the service profile. Instead of describe a specific participant we found a description of the required service. 

The DiscoveryProfiles element describes the characteristics associated in both the service and the provider. The underlying entity in the CISE service model is the ServiceProfile entity. It is used to request to the CISE Node to look for services of a specific type and/or from a specific type of provider (using information such as community, country, sea basin...). 

See the attributes described in The DiscoveryProfiles page.

Communication patterns that use the DiscoveryProfiles

The DiscoveryProfiles is used in the Push and PullRequest messages.

Example of the DiscoveryProfiles

In this example, we are defining a service addressed to the BorderControl in Italy, and in the Mediterranean sea basin.

<DiscoveryProfiles>
 <Community>BorderControl</Community>
 <Country>IT</Country>
 <DataFreshness>RealTime</DataFreshness>
 <Function>Security</Function>
 <SeaBasin>Mediterranean</SeaBasin>
 <ServiceID>rc.lsA.service1A1.vessel.pull.provider</ServiceID>
 <ServiceOperation>Pull</ServiceOperation>
 <ServiceRole>Consumer</ServiceRole>
 <ServiceType>RiskService</ServiceType>
 <ServiceStatus>Online</ServiceStatus>
 <ServiceCapability>
  <ExpectedResponseTime>15</ExpectedResponseTime>
  <MaxEntitiesPerMsg>10</MaxEntitiesPerMsg>
 </ServiceCapability>
</DiscoveryProfiles>


Example of the DiscoveryProfiles producing no results

In this example, we are defining a service; this service was not active at the time of the request. Below you can find the acknowledgement response of no services found.

<DiscoveryProfiles>
  <Country>IT</Country>
  <SeaBasin>Mediterranean</SeaBasin>
  <ServiceType>VesselService</ServiceType>
</DiscoveryProfiles>


Example of Synchronous Acknowledgement with No Services founded
Example of Synchronous Acknowledgement with No Services founded  Expand source
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:Acknowledgement xmlns:ns2="http://www.cise.eu/servicemodel/v1/authority/" xmlns:ns4="http://www.cise.eu/servicemodel/v1/message/" xmlns:ns3="http://www.cise.eu/servicemodel/v1/service/">
    <CorrelationID>1d352d4e-ac02-4548-857d-6b2a3149acb3</CorrelationID>
    <CreationDateTime>2019-08-22T14:25:27.140Z</CreationDateTime>
    <MessageID>1d352d4e-ac02-4548-857d-6b2a3149acb3</MessageID>
    <Priority>High</Priority>
    <RequiresAck>false</RequiresAck>
    <AckCode>ServiceManagerError</AckCode>
    <AckDetail>No Services found with the intended profile.</AckDetail>
</ns4:Acknowledgement>