-
Notifications
You must be signed in to change notification settings - Fork 0
Description
VAO uses primeraly "InitialInput" for the search by location name.
SBB has also test cases that use a PlaceRef and only a LocationName in it. This throws an error in the VAO passive system.
What do you think? Is this something to be supported?
Version that works on the VAO system:
<?xml version="1.0" encoding="UTF-8"?> <OJP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.siri.org.uk/siri" version="1.0" xmlns:ojp="http://www.vdv.de/ojp" xsi:schemaLocation="http://www.siri.org.uk/siri ../ojp-xsd-v1.0/OJP.xsd"> <OJPRequest> <ServiceRequest> <RequestTimestamp>2021-07-13T12:00:00+02:00</RequestTimestamp> <RequestorRef>VAO</RequestorRef> <ojp:OJPLocationInformationRequest> <RequestTimestamp>2021-07-13T12:00:00+02:00</RequestTimestamp> <MessageIdentifier>123</MessageIdentifier> <ojp:InitialInput> <ojp:LocationName>Domodossola</ojp:LocationName> </ojp:InitialInput> <ojp:Restrictions> <ojp:Type>stop</ojp:Type> </ojp:Restrictions> </ojp:OJPLocationInformationRequest> </ServiceRequest> </OJPRequest> </OJP>
Version that does not work:
<?xml version="1.0" encoding="UTF-8"?> <OJP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.siri.org.uk/siri" version="1.0" xmlns:ojp="http://www.vdv.de/ojp" xsi:schemaLocation="http://www.siri.org.uk/siri ../ojp-xsd-v1.0/OJP.xsd"> <OJPRequest> <ServiceRequest> <RequestTimestamp>2020-01-19T12:00:00Z</RequestTimestamp> <RequestorRef>IRMA</RequestorRef> <ojp:OJPLocationInformationRequest> <RequestTimestamp>2020-01-19T12:00:00Z</RequestTimestamp> <MessageIdentifier>4711</MessageIdentifier> <ojp:PlaceRef> <ojp:LocationName> <ojp:Text>Domodossola</ojp:Text> </ojp:LocationName> </ojp:PlaceRef> <ojp:Restrictions> <ojp:Type>stop</ojp:Type> <ojp:IncludePtModes>true</ojp:IncludePtModes> </ojp:Restrictions> </ojp:OJPLocationInformationRequest> </ServiceRequest> </OJPRequest> </OJP>