openTdataCH / ojp-sdk

Meta OJP SDK repo
MIT License
4 stars 0 forks source link

Falscher Kontext in TripInformationDelivrey #90

Open ue71603 opened 2 months ago

ue71603 commented 2 months ago

Eigentlich sollte der TIR nichts liefern (zu alter Betriebstag)

Allerdings liefert er einen ungültigen Kontext Aktuelles Problem:

<?xml version="1.0" encoding="utf-8"?>
<OJP xmlns:siri="http://www.siri.org.uk/siri" version="2.0" xmlns="http://www.vdv.de/ojp">
  <OJPResponse>
    <siri:ServiceDelivery>
      <siri:ResponseTimestamp>2024-08-14T16:54:03.2522629+02:00</siri:ResponseTimestamp>
      <siri:ProducerRef>MENTZ</siri:ProducerRef>
      <OJPTripInfoDelivery>
        <siri:ResponseTimestamp>2024-08-14T16:54:03.252267+02:00</siri:ResponseTimestamp>
        <siri:RequestMessageRef>4ca859c9-186c-4d02-be01-4190bbde8720</siri:RequestMessageRef>
        <siri:DefaultLanguage>de</siri:DefaultLanguage>
        <CalcTime>1</CalcTime>
        <TripInfoResponseContext>
          <Places/>
        </TripInfoResponseContext>
        <TripInfoResult/>
      </OJPTripInfoDelivery>
    </siri:ServiceDelivery>
  </OJPResponse>
</OJP>

existiert gar nicht

TO-mdv commented 2 months ago

Fehler reproduzierbar mit folgendem Request

<?xml version="1.0" encoding="UTF-8"?>
<OJP xmlns="http://www.vdv.de/ojp" xmlns:siri="http://www.siri.org.uk/siri" version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vdv.de/ojp OJP_changes_for_v1.1/OJP.xsd">
    <OJPRequest>
        <siri:ServiceRequest>
            <siri:RequestTimestamp>2024-08-16T09:37:40.441Z</siri:RequestTimestamp>
            <siri:RequestorRef>MENTZRegTest</siri:RequestorRef>
            <OJPTripInfoRequest>
                <siri:RequestTimestamp>2024-08-16T09:37:40.441Z</siri:RequestTimestamp>
                <siri:MessageIdentifier>TIR-1a</siri:MessageIdentifier>
                <JourneyRef>ojp-91-14-E-j24-1-1755-TA</JourneyRef>
                <OperatingDayRef>2024-01-01</OperatingDayRef>
            </OJPTripInfoRequest>
        </siri:ServiceRequest>
    </OJPRequest>
</OJP>