Calculate Route stored XML profile requirements

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
Dobos Ionut
Posts: 25
Joined: Tue Dec 03, 2019 11:27 am

Calculate Route stored XML profile requirements

Post by Dobos Ionut »

Hello,

We've encountered a problem when trying to calculate a route with a stored profiled passed in as an url. As per the documentation, we've added the following key:

Code: Select all

{
...
"storedProfile": "{baseUrl}/publicFolder/carProfile.xml"
...
}
The profile is public and can be accessed via the browser and it has the following structure:

Code: Select all

<profile version="2" dataCompatibilityVersion="2" parent="truck40t.xml">
<vehicleProfile>
<engine/>
<weight/>
<dimensions height="244" length="1360" width="240"/>
<axle/>
<legalCondition/>
<load/>
<speeds/>
</vehicleProfile>
</profile>
We've tried both with and without the parent propertie as we've seen in the documentation that parent profiles are not allowed for http urls.

The server responds with a 400 and the following hint:
"The profile must be available in the folder conf/profiles

Is there something we are missing? Are there any other criteria for accepting an xml profile?
As always your help is highly appreciated.

Thanks,
John
Mathias.Heß
Posts: 6
Joined: Fri May 29, 2015 8:53 am

Re: Calculate Route stored XML profile requirements

Post by Mathias.Heß »

Hi,

is the baseurl whitelisted? There is the configuration key core.security.externalResourcesAccessWhitelist
in conf/xserver.conf. Further documentation can be found on https://xserver2.cloud.ptvgroup.com/das ... sWhitelist.

Regards,
Mathias Heß
Post Reply