Page 1 of 1

SOAP - calculateRoute

Posted: Fri May 19, 2017 9:26 am
by DamianS
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?