Beginner quetsion for first webservice call

Deals with generic topics such as logging, framework and so on. If you are not sure where to place your topic just put it here.

Beginner quetsion for first webservice call

Postby Daniel Seeger » Thu Feb 28, 2019 8:32 pm

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
Daniel Seeger
 
Posts: 1
Joined: Thu Feb 28, 2019 5:21 pm

Re: Beginner quetsion for first webservice call

Postby Bernd Welter » Mon Mar 04, 2019 9:36 am

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
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1340
Joined: Mon Apr 14, 2014 10:28 am

Re: Beginner quetsion for first webservice call

Postby Bernd Welter » Mon Mar 04, 2019 10:12 am

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
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1340
Joined: Mon Apr 14, 2014 10:28 am


Return to Generic questions