api-ePA icon indicating copy to clipboard operation
api-ePA copied to clipboard

provideandregister.xop - Syntax error

Open oliverkoenig opened this issue 3 years ago • 0 comments

Bei Senden des Inhalts von provideandregister.xop an Konnektoren (getestet mit secunet und RISE) kommt ein Syntax Error. Bitte um Überprüfung, danke. :)

Hier ein Auszug aus dem Übertragungsprotokoll, was gesendet wurde:

POST https://192.168.135.1/fm/phrservice/v1 HTTP/1.1 Content-Type: Multipart/Related; start-info="text/xml"; type="application/xop+xml"; boundary=MIME_MTOM_Boundary; action="urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-b" SOAPAction: "ProvideAndRegisterDocumentSet" Host: 192.168.135.1 Content-Length: 14377 Expect: 100-continue Accept-Encoding: gzip, deflate Connection: Keep-Alive

(ab hier der Inhalt von provideandregister.xop)

Lösung:

Ein vollständiger korrekter Content-Type Header im Request für MTOM für ProvideAndRegisterDocumentSet sähe so aus:

Content-Type: multipart/related; start-info="application/soap+xml"; type="application/xop+xml"; action="urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-b"; boundary=MIME_MTOM_Boundary Darin kann der Wert von boundary beliebig gewählt werden, alles andere muss genau so sein wie hier angegeben.

In gemILF_PS_ePA_V1.4.3 steht es irreführend:

A_15570 - Content-Type und Charset im http-Header Beispiel einer korrekten Angabe im http-Header: Content-Type: text/xml; charset=utf-8.[<=]

Des weiteren steht im ILF steht unter 5.2.3.3 Nutzung: "Ein http-Request im MTOM/XOP - Format (type="application/xop+xml") führt zu einer MTOM-Response." Jedoch fehlt die Angabe, dass und wie dies in den Content-Type Header des Requests eingefügt werden muss, sowie ein Beispiel, wie es auszusehen hat.

oliverkoenig avatar Mar 29 '22 08:03 oliverkoenig