Troubles due to missing required toll manoeuvre type

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Troubles due to missing required toll manoeuvre type

Post by Bernd Welter »

Hi there,

just faced an inconvenient situation:
A customer (uses SAP) tried to work with auto generated clients based on xRoute's WSDL.
One attribute of a TollStationDescripton object is the "required" TollManoeuvreType.

Though the property is labeled as "required":

Code: Select all

<complexType name="TollStationDescription">
<complexContent>
<extension base="ns1:TransientVO">
<sequence></sequence>
<attribute name="manoeuvreType" type="tns:TollManoeuvreType" use="required"/>
<attribute name="routeListIndex" type="xsd:int" use="required"/>
<attribute name="time" type="xsd:string" use="optional"/>
<attribute name="tollLocationType" type="tns:InfoNodeType" use="required"/>
<attribute name="tollStationID" type="xsd:int" use="required"/>
<attribute name="tollStationName" type="xsd:string" use="optional"/>
</extension>
</complexContent>
</complexType>
you can activate or disable it via the ResultListOptions:

Code: Select all

<ns2:ResultListOptions_4 totalRectangle="false" boundingRectanglesOffset="300" 
boundingRectanglesC="5" tollManoeuvres="false"
manoeuvreGroupRatio="1.0" manoeuvreGroups="true" urbanManoeuvres="false" 
brunnelManoeuvres="false" manoeuvreAttributes="false" segmentAttributes="false" 
segments="true" dynamicInfo="false" detailLevel="STANDARD" polygon="true" 
binaryPathDesc="false" nodes="false" texts="true" manoeuvres="true"/>
Them issue happens if you set the tollManoeuvres="false":
Then the response will return the stations without the ManoeuvreType...

Code: Select all

<ns3:TollCostInfo currency="EUR" tollType="NATIONALTOLL" tollPrice="5" tollDistance="427" tollProviderID="201" tollSectionID="0">
<ns3:tollStationFrom routeListIndex="1083" tollLocationType="NORMAL"
 tollStationID="619038" tollStationName="619038"/>
<ns3:tollStationTo routeListIndex="1088" tollLocationType="NORMAL" 
tollStationID="2000000806" tollStationName="2000000806"/>
</ns3:TollCostInfo>
...which causes your runtime to fail...

If the manoeuvres are requested the response is proper:

Code: Select all

<ns3:TollCostInfo currency="EUR" tollType="NATIONALTOLL" tollPrice="34" tollDistance="2703" tollProviderID="205" tollSectionID="0">
<ns3:tollStationFrom manoeuvreType="ENTER" routeListIndex="654" tollLocationType="NORMAL" tollStationID="2000000719" tollStationName="2000000719"/>
<ns3:tollStationTo manoeuvreType="FURTHER" routeListIndex="666" tollLocationType="NORMAL" tollStationID="19180" tollStationName="19180"/>
</ns3:TollCostInfo>
This error is proudly presented by FREDERIK!
Thanks,

Best regards Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply