The programming guidelines may help you to develop your own application quite quickly. In order to avoid critical programming failures PTV recommends to read these instructions carefully.
PTV provides client classes for C# and Java. PTV recommends to use a powerful programming environment such as Visual Studio or Eclipse. Detailed information how to connect to PTV xServer to develop web services are explained in the following pages:
The WSDL of the PTV xServer supports SOAP version 1.2 to its full extent. Logically, the client generator of your programming tools must be in a current state to create correct client classes (using abstract classes, enumerations, inherited objects, etc.)
In order to get familiar with the PTV xServer, please use the information as follows:
final String XMAP_WS_URL = "http://localhost:50010/xmap/ws/XMap"; // Without use of package utils: instantiate the class "ClientFactory"" XMapRemoteInterface xmapClient = (XMapRemoteInterface) ClientFactory. createClient(XMapRemoteInterface.class, RemoteType.DOCSTYLE_CXF, "", "", XMAP_WS_URL); // Importing the package utils XMapRemoteInterface xmapClient = XMapUtils.makeClient(XMAP_WS_URL);
Map map = client.renderMap(mapSection, mapParams, imageInfo, null, includeImageInResponse); ... } catch (SystemException se) { System.err.println("Network or URL problem: " + se); ... } catch (XMapException xme) { System.err.println("Problem rendering map"); ... } catch (XServiceException xse) { System.err.println("Technical problem on server"); ... }
Some more important notes concerning installation, configuration and administration.
Copyright © 2025 PTV Logistics GmbH All rights reserved. | Imprint