Hallo,
I'm now able to provide some further log output my colleague acquired. Alas, I'm afraid that it doesn't seem to help much, at least not for me. This first excerpt is from Orthanc in debug mode:
T1119 13:11:12.320096 HttpServer.cpp:728] HTTP header: [content-length]: [111]
T1119 13:11:12.320181 HttpServer.cpp:728] HTTP header: [content-type]: [application/x-www-form-urlencoded]
I1119 13:11:12.325333 HttpServer.cpp:813] POST /tools/find
I1119 13:11:12.383637 ServerContext.cpp:958] Number of candidate resources after fast DB filtering on main DICOM tags: 1
I1119 13:11:12.385961 ServerContext.cpp:1095] Number of matching resources: 1
T1119 13:11:15.469768 ServerContext.cpp:225] Serializing the content of the jobs engine
T1119 13:11:15.943078 Connection.cpp:388] SQLite::Connection::FlushToDisk
E1119 13:11:16.793845 CommandDispatcher.cpp:284] Receiving Association failed: Unrecognized PDU type: 47
E1119 13:11:16.822159 CommandDispatcher.cpp:284] Receiving Association failed: Unrecognized PDU type: 47
T1119 13:11:20.978823 Connection.cpp:388] SQLite::Connection::FlushToDisk
T1119 13:11:25.538636 ServerContext.cpp:225] Serializing the content of the jobs engine
What we're seeing here is at 13:11:12 a request by my PHP script to the tools/find REST-API to acquire a valid StudyUID for a given combination of patient, date and time. This request is answered as expected and a StudyUID is returned by Orthanc. At 13:11:16 we're seeing the result of the attempt of Weasis to request image data of said study via DICOMweb.
The next bit is from the debug log of Weasis:
22.11.2021 18:54:16.287 *DEBUG* [Dicom Model-pool-3-thread-1] org.weasis.dicom.explorer.rs.RsQueryResult: QIDO-RS request:
http://192.168.0.115:8090/dicom-web/studies?0020000D=2.25.168637000477662725344906985996927558964&includefield=00080020,00080030,00080050,00080061,00080090,00081030,00100010,00100020,00100021,00100030,00100040,0020000D,0020001022.11.2021 18:54:16.365 *ERROR* [Dicom Model-pool-3-thread-1] org.weasis.dicom.explorer.rs.RsQueryResult: QIDO-RS with studyUID 2.25.168637000477662725344906985996927558964 org.weasis.core.util.StreamIOException: java.net.SocketException: Unexpected end of file from server
at org.weasis.core.api.util.NetworkUtil.prepareConnection(NetworkUtil.java:104)
at org.weasis.core.api.util.NetworkUtil.getUrlConnection(NetworkUtil.java:72)
at org.weasis.dicom.explorer.rs.RsQueryResult.parseJSON(RsQueryResult.java:130)
Invoking exactly the same URL as Weasis uses for its request in a standard web browser yields in JSON encoded information on the images etc. of the given study, as would be expected. I don't know why Orthanc behaves differently upon the request of Weasis compared to the "manual" request with the same URL via web browser. I think the next thing we'll try is a packet capture to see what's going wrong here.
Best regards,
Julian Hartig