Hi DCM4CHE team,
Issue has been traced to the incorrect value wadors places in the
Accept header field which results in the Accept header being silently
ignored by .NET applications using WCF WebAPI technology.
Because the DICOM Server thinks no Accept header is present, it returns
the default (JSON) format.
wadors sends 'Accept: multipart/related; type=application/dicom+xml' as
the Accept header, which is not valid http, the application/dicom+xml should
be a double quoted string as '/' is a special character.
Correct value is 'Accept: multipart/related; type="application/dicom+xml"'.
This error is still in the examples in the DICOM standard (I'll post that on the
DICOM group), but DICOM2016a added definition of Accept header as part of
WADO redoc effort and future redoc work will likely correct the examples.
for definition for Multipart Media Types used in Accept header.
I'll update our DICOM Server implementation to also support wrong format as
this will probably happen with other, non .NET, WADO-RS clients in the spirit
of "send pedantic correct, accept forgivingly" and suggest wadors is updated to
send correct Accept header (might require option to work with all WADO-RS servers).
In the meantime, wadors users and DCM4CHE service providers should be aware of
this discrepance in Accept header content.
Best Regards.
Jouke Numan
Software Architect
GE Healthcare
PS: Nusrat is on my team, doing integration testing on our DICOM Server.