Absolutely new revolutional XML against XSD validation service. It's written in Java with use of SpringBoot framework.
The service has simple RESTful API. It handles HTTP requests of the following form:
Method: POST
Path: /validate
Content-Type: multipart/form-data
-------------------------------------------------------------------
Content-Disposition: form-data; name="xml"; filename="somexml.xml"
Content-Type: text/plain
content of somexml.xml.
-------------------------------------------------------------------
Content-Disposition: form-data; name="xsd"; filename="somexsd.xsd"
Content-Type: text/plain
content of somexsd.xsd.
-------------------------------------------------------------------
and sends responses of the following form:
Status-Code: 202 (Accepted)
Content-Type: application/json;charset=UTF-8
{
"valid": "true"
}
You don't need to build from source to use this service, because there is complete jar in releases, but if you want, jar can be built with gradle
$ ./gradlew bootJar
To start running service use gradle command
$ ./gradlew runService
See Dockerfile
Docker container is stored on hub.docker.com, so you can pull latest version with command
$ docker pull lamtev/xml-against-xsd-validation-service:latest
Docker container can be run using launch.sh bash-script
$ ./launch.sh <TCP_port>
or it can be run manually in manner described in that script
You can use Postman HTTP-client for this case. Form a request in a way it formed in figure below:
Response should looks like: