Skip to main content
Skip table of contents

REST On-premise Installation and Setup Guide

Introduction

This guide is designed for users of the XML Data Compare REST API. It provides help for the installation and initial setup of the HTTP server and wrapper component that provides the XML Data Compare REST API. The XML Data Compare REST service allows you to invoke XML comparisons from a wide range of programming languages and systems.

Installation

This release contains a JAR with a suffix indicating the major.minor.patch version:

  • deltaxml-data-compare-1.0.0.jar

A license file is required to enable the REST service. The file should be called deltaxml-data-compare-rest.lic and should contain a license feature for 'xml_data_compare_rest'. The file should also be placed into the XML Data Compare install directory together with existing jar files.

Starting and Stopping the Service

To start the REST service use the following command (adjust heap and stack sizes as needed or to suit the target system) from the install directory. If all is well some lines of debug and information messages will appear as indicated below.

Note

Replace x.y.z with the major.minor.patch version number of your release e.g. deltaxml-data-compare-1.0.0.jar

CODE
$ java -Xmx4g -Xss20m -jar deltaxml-data-compare-x.y.z.jar 
XML Data Compare REST service started, navigate to: http://0.0.0.0:8080/api/xml-data-compare/v1/compare
Press Control-C to stop it...

When using JDK 9.0 or later an additional add-modules argument is required:

CODE
$ java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
CODE
$ java --add-modules java.xml.bind -jar deltaxml-rest-x.y.z.jar

To stop the service use Control-C as indicated or an appropriate operating system command/tool such as 'kill'.

Using the Service

Command-Line Tool

See here for how to use the XML Data Compare command line tool.

Postman

The Postman API development and testing app provides a simple way to test the XML Data Compare REST API. We provide a Postman Collection to help get you started with the REST API, details on this are included in the Testing using Postman section of the REST User Guide.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.