Skip to content

Probleme mit HTTP Daemon #57

Closed
Closed
@stedekay

Description

@stedekay

Wir versuchen derzeit den HTTP Daemon zum Laufen zu bringen und testen das anhand einer gültigen ubl.xml aus der Testsuite aus.
Wenn wir den Befehl:
java -jar validationtool-1.3.1-java8-standalone.jar -s scenarios.xml -h ubl.xml
ausführen, ist die Antwort auch "ACCEPTABLE", wie erwartet.

Wenn wir den Daemon starten mit:
java -jar validationtool-1.3.1-java8-standalone.jar -s scenarios.xml -D -P 8081
und dann
curl --location --request POST 'http://127.0.0.1:8081' --header 'Content-Type: application/xml' --data-binary './ubl.xml'
ausführen erhalten wir folgende Fehlermeldung im Log vom Daemon:

2020-09-25 11:47:24 [INFO] Server /127.0.0.1:8081 started
2020-09-25 11:47:35 [INFO] Checking content of supplied_instance_1
Error on line 1 column 1 of supplied_instance_1:
  SXXP0003: Error reported by XML parser: Content ist nicht zulässig in Prolog.
2020-09-25 11:47:35 [ERROR] No valid scenario configuration found for supplied_instance_1
2020-09-25 11:47:35 [INFO] Finished check of supplied_instance_1 in 168ms

Ich hätte erwartet, dass auch mit dem Daemon das Dokument als valide angesehen wird. Was machen wir falsch?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions