SOAP - calculateRoute

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.

SOAP - calculateRoute

Postby DamianS » Fri May 19, 2017 9:26 am

Hi,
I'm testing xRoute WS. Simple test, analogous to https://xserver2-europe-eu-test.cloud.p ... _route.htm

My request:
Code: Select all
<?xml version="1.0"?>
<SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
        <calculateRoute
            xmlns="http://xroute.xserver.ptvgroup.com">
            <request
                xmlns="">
                <waypoints xsi:type="OffRoadWaypoint">
                    <location>
                        <offRoadCoordinate x="6.1256572" y="49.5983745"/>
                    </location>
                </waypoints>
                <waypoints xsi:type="OnRoadWaypoint">
                    <location>
                        <coordinate x="6.1256572" y="49.4816576"/>
                    </location>
                </waypoints>
            </request>
        </calculateRoute>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Server response:
Unmarshalling Error: cvc-elt.4.2: Cannot resolve 'OffRoadWaypoint' to a type definition for element 'waypoints'.

What is wrong with my request?
DamianS
 
Posts: 1
Joined: Fri May 19, 2017 8:48 am

Return to PTV xRouteServer

cron