PCS Capacity Broker (CB) basics – UNDER CONSTRUCTION

Quick access to API-related documents

GUI

Reference train creation

Basic steps to create a reference train.

Editing reference train

How to add PaP to an existing reference train

How to edit the reference train

How to manage my territory

How to manage my locations

How to edit the train parameters

How to copy train parameters

How to add border sections

How to fulfil NSPs

How to manage train parameters

How to use the search functionality

Working with offers

How to create an offer

Working with PaPs

Working with PaPs as an IM

Other views

How to use the search

Compare function

How to manage reference train filters

How manage filters

How to create PaP filers (PaP search)

How do you carry forward

API

PCS Capacity Broker API

1.0 Introduction

An important aspect of PCS is its connection via automatic programming interface (API) to national (IM and RU) systems. Via API communication, it is possible to trigger actions and be notified when an action is triggered in PCS without the use of PCS’s graphical user interface. API communication occurs through a standardised set of TAF TAP TSI messages.

2.0 TAF TAP TSI

The technical specifications for interoperability relating to telematic applications for freight or passenger services (TAF TAP TSI) provide common standards for the exchange of data related to railway capacity and traffic management activities. This allows for direct communication between communication partners, as well as communication between central European IT tools (for example PCS CB).

A common XSD schema is used to define data standards and messages used for API communication. PCS CB uses the schema version 3.4.1.0. The complete schema and messages can be found at this link. Additional information regarding TAF TAP TSI and XSD schemas can be found at the Joint Sector Group website.

3.0 Common Interface Architecture

The common interface facilitates the exchange of inbound (from interfacing companies to PCS) and outbound (from PCS to interfacing companies) TAF TAP TSI messages. The CI architecture is detailed in the following visual:

4.0 PCS CB API testing

PCS CB is currently under development and will replace the current PCS (PCS Envelope Concept). An important aspect of this development is comprehensive testing by users prior to its adoption for use in production: this testing is performed by dedicated working group.

In addition to the work conducted by this dedicated group, a test environment and materials (specifications and other general information) is publicly available. Support from the RNE PCS team to public testers is limited, however the reporting of issues and comments is welcome (please send issues and comments to dev.pcscb@rne.eu).

4.1 PCS Environments and Local Instances:

There is one PCS environment which is available to testers: PCS Pre Production Sandbox (https://cb-pre-prod-sandbox.rne.eu/pcs-cb/). This environment utilises the RNE Pre production LI (local Instance), the information for which is provided below:

More detailed information regarding PCS environments and local instances can be found in here.

4.2 Connecting and testing

Users wishing to test PCS CB’s API functionalities can do so either via direct CI connection between their national system and PCS, or via SoapUI.

4.2.1 LI connection

  • If the IM or RU IT system of the user’s company has a common interface, their tool can be connected to PCS via the CI. The table in section 4.2.3 indicates which companies are currently connected (see configuration type ‘Company CI’)
  • Companies wishing to connect can send an email to dev.pcscb@rne.eu with the following details of their CI:
    • IP address
    • DNS/hostname
    • Port number
    • Instance number

4.2.2 SoapUI

  • SoapUI is a free software which is used to send XML messages, further information can be found at this link: https://www.soapui.org/
  • SoapUI allows a user to simulate messages from their company in case a CI connection is not yet possible
  • Templates for all messages which are sent from IMs and RUs are available (see section 4.4). These templates can be imported directly into SoapUI.
  • In order to send messages from a company via SoapUI, a ‘local connection’ must first be configured in the PCS LI. Users wishing to do API testing via SoapUI should send their companies’ name and UIC RICs code to dev.pcscb@rne.eu
  • The table in the section 4.2.3 indicates which companies already have this local connection (see Configuration Type ‘Local RNE CI’)

4.2.3 Configured companies

Configuration typeCompany nameCompany codeCompany type
Local RNE CISNCF Reseau0087IM
Local RNE CIRFI0083IM
Local RNE CISBB Infrastructure0085IM
Company CIDB InfraGO0080IM
Local RNE CIACF2189IM
Company CIINFRABEL0088IM
Company CIProRail0084IM
Local RNE CIBanedanmark0086IM
Company CITrafikverket0074IM
Company CIBane NOR Bane NOR0076IM
Local RNE CIInfraestruturas de Portugal0094IM
Local RNE CIADIF0071IM
Local RNE CIÖBB-Infrastruktur AG0081IM
Local RNE CIVPE3032IM
Local RNE CIZSR-I, Železnice Slovenskej republiky0056IM
Company CISpráva železnic, statni organizace0054IM
Local RNE CITRENITALIA FRANCE3216Applicant – Passenger
Local RNE CISBB Personenverkehr1285Applicant – Passenger
Local RNE CINS International1184Applicant – Passenger
Local RNE CISociété nationale des chemins de fer Belges1088Applicant – Passenger
Local RNE CISJ AB1174Applicant – Passenger
Local RNE CIØresundståg3126Applicant – Passenger
Local RNE CIGreen Cargo2174Applicant – Freight
Local RNE CIHector Rail AB3208Applicant – Freight
Company CIČD Cargo, a.s.2154Applicant – Freight
Local RNE CIDB Cargo Deutschland AG2180Applicant – Freight
Local RNE CISIBELIT8987Applicant – Freight
Local RNE CILOKORAIL3080Applicant – Freight
Local RNE CIVy Tag2174Applicant – Freight
Local RNE CIDB Fernverkehr AG2480Applicant – Passenger
Local RNE CIPKP Intercity 1251Applicant – Passenger
Local RNE CIThalys International 3018Applicant – Passenger
Local RNE CILineas2188Applicant – Freight
Local RNE CITX Logistik AG3308Applicant – Freight
Local RNE CICrossrail Benelux3423Applicant – Freight
Local RNE CITHI Factory S.A.0018Applicant – Passenger
Local RNE CINS Reizigers BV1484Applicant – Passenger
Local RNE CIArriva Nederland3095Applicant – Passenger
Local RNE CIVygruppen AS1076Applicant – Passenger
Local RNE CIDB Regio AG3864Applicant – Passenger
Local RNE CIRail Cargo Austria2181Applicant – Freight
Local RNE CIPKP CARGO INTERNATIONAL a.s.3145Applicant – Freight
Local RNE CIMETRANS Rail s.r.o.3207Applicant – Freight
Local RNE CICD ceske drahy1154Applicant – Passenger, freight
Local RNE CIArriva vlaky3189Applicant – Passenger
Local RNE CIÖBB Personenverkehr AG-FV1181Applicant – Passenger
Local RNE CIEurope Express5223Applicant – Passenger
Local RNE CITransdev Sverige AB5006Applicant – Passenger
Local RNE CICargoNet4314Applicant – Passenger

4.2.3 PCS Pre Production Local Interface

Users testing via SoapUI and direct CI connection can see inbound and outbound message flows in the PCS Pre production LI application. To have an account created in the LI, testers should send an email to dev.pcscb@rne.eu with the following information:

  • First and last name
  • Company
  • Work email address

The Pre Production LI can be accessed via this link: https://ci-cb-pre-prod.rne.eu:8443/LI/logoutUser.action

4.3 Testing PCS API

Testing of PCS CB’s API functionalities should be structured around the PCS Technical Specifications and the testing framework (see section 4.4)

The testing framework should be followed based on the process flows included in the technical specifications (section 4 – Process flow). Each scenario corresponds to a specific action in the corresponding process type. The scenarios shall be tested according to the sequence described in the process flow.  

Example:

The promotion of a Reference Train from Harmonisation to Path Elaboration corresponds to scenario ID 65 and is named either “PR submission (no PaPs included in the Reference Train)” or “PR submission (PaPs included in the Reference Train)”.  

The following available scenario to continue the process are scenario ID 95, 324 or 127. 

In case a scenario is not successful, a message can be sent to dev.pcscb@rne.eu with the details of the failed test.

4.4 PCS API Documentation

The link to the PCS Technical Specifications is currently only accessable via Microsoft Edge or Firefox. If accessing through these browsers is not possible, please contact dev.pcscb@rne.eu.

PCS Technical Specifications