OxalisCommunity / oxalis

Oxalis - PEPPOL Access Point open source implementation - Core component
Other
124 stars 90 forks source link

uploading sample xml to Difi's test access point (Content does not contain SBDH.) #469

Closed vvvvvvpp closed 4 years ago

vvvvvvpp commented 4 years ago

I am getting this error Message failed : Content does not contain SBDH. when I run the test. I understand that it needs to wrap the document with SBDH wrapper before being able to run for the test. But how do i go about doing it ?

madhawag commented 4 years ago

@vincentpwnz00r ,

You could externally use oxalis-document-sniffer dependency to wrap your document payload with SBDH headers. "no.difi.oxalis" % "oxalis-document-sniffer" % "4.0.2"

In SbdhWrapper class you could find the below method which does that.

public byte[] wrap(InputStream inputStream, Header headers)

I have also mentioned about this in the case https://github.com/difi/oxalis/issues/451

klakegg commented 4 years ago

Duplicate of #451

kukel commented 4 years ago

You get this same error if you have very small typos in the documents. Oxalis is not the best in reporting the real issue. A line break in a namepace declaration already caused this error.