The response serialization for each service is dictated by the HTTP header
Accept. The following table lists the possible return formats. Each format will be is described in the response section of the respective service method. Not all formats are applicable to all requests.
XHTML currently unused but may be supported in the future
CDWS determines the serialization method of the output in the following order:
- HTTP header:
- Query parameter:
- Pre-defined default per service (JSON with the exception of
/textwhich defaults to XML)
Typically, clients will have their own method of setting request HTTP headers.
The following examples use the UNIX wget command line utility.
wget -O- \ --header 'x-user: x' \ --header 'x-password: y' \ --header="Accept:text/xml" 'http://cdws21.ificlaims.com/search/query?q=pn:ep-0700000-b1'
Example 2: setting the content-type as a query-string parameter
Although the serialization is predetermined by the request
content-type, the response format for for each service group differs. The response formats will be are described under their respective service groups: