Message Containers and Versioning

Aus DRV STRING
Wechseln zu: Navigation, Suche

Our mission is to create an interface which is backwards compatible within a major version. Backwards compatible we define as never changing existing elements and types but only adding new ones, making them optional. Thus a message of version x.y will be completely valid in x.y+1 while x.y+1 messages will not necessarily validate in x.y but may be used when not validated against the schema.

We encourage using several versions at the same time to ease transitions and migrating to new (minor or major) versions. A version is defined as the set of schemas excluding the container StringMessage (and the DrvGlobalTypes which are not part of the STRING project).

A StringMessage is a generic request/response pair containing versioning information and a <Content> element defined as xs:anyType which will contain the payload valid for the given version. An empty StringMessage should be replied to with the list of valid versions for the operator system.

<StringMessageRequest xmlns="http://string.drv.de/xmlschema/string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Version>0.9</Version>
  <Content>
    <StringRequest TimeStamp="2018-04-13T13:44:33Z" Version="0.9" xmlns="http://string.drv.de/xmlschema/string/v0">
      <Requestor>
        <Agency>
          <AgencyID>1</AgencyID>
        </Agency>
      </Requestor>
      <MessageContext>
        <TouroperatorCode>BEWO</TouroperatorCode>
        <TouroperatorSessionID>none</TouroperatorSessionID>
        <ExternalSessionID>none</ExternalSessionID>
        <TransactionCounter>1</TransactionCounter>
      </MessageContext>
      <ConfigurationRequest/>
    </StringRequest>
  </Content>
</StringMessageRequest>