Page 1 of 1

Beginner quetsion for first webservice call

PostPosted: Thu Feb 28, 2019 8:32 pm
by Daniel Seeger
Hi there,
I am trying to use ptv xserver internet out of excel. For this I created a 60 days trial server. To be honest this is my first project using webservices but I tried to figure it out on my own for some hours.

I was working with the sample of the free text search for API 2.0 (https://xserver2-dashboard.cloud.ptvgro ... g%7C_____1)

My token and the connection overall is working but I allways receive the error:
{ "errorMessage" : "Server threw a WebApplicationException with status 404 and origin message: empty", "exceptionType" : "javax.ws.rs.WebApplicationException" }


the call is made via the url:
https://xlocate-eu-n-test.cloud.ptvgrou ... burg%22%7D


It would be a great help to me if you could have a look on this and help me to overcome my starting problems.

Thank you
Daniel Seeger

Re: Beginner quetsion for first webservice call

PostPosted: Mon Mar 04, 2019 9:36 am
by Bernd Welter
Hello Daniel,

welcome on board of the xServers!

A first very important hint is here: you refer to two different APIs:

The first statement deals with xServer2.
The call is then sent to xServer1.

I'll give you a call to get a quick "hello" ;-)

C u,
Bernd

Re: Beginner quetsion for first webservice call

PostPosted: Mon Mar 04, 2019 10:12 am
by Bernd Welter
Just some example URLs for the xServer2 REST calls:

Complete documentation of the REST features is available at
  • https://xserver2-europe-eu-test.cloud.ptvgroup.com/dashboard/Default.htm#API-Documentation/xlocate.html#com.ptvgroup.xserver.xlocate.XLocate.searchLocations(REST)%3FTocPath%3DAPI%2520Documentation%7Cservices%7Cxlocate%7CREST%7C_____1
  • https://xserver2-europe-eu-test.cloud.ptvgroup.com/dashboard/Default.htm#API-Documentation/xroute.html#com.ptvgroup.xserver.xroute.XRoute.calculateRoute(REST)%3FTocPath%3DAPI%2520Documentation%7Cservices%7Cxroute%7CREST%7C_____1