Guidelines for application teams that switch from v2 to v3
For a general understanding of the IMS interaction, see IMS interaction.
If your application currently supports v2, you must complete at least these steps to support v3:
-
Adjust: When calling the ION
versionsmethod, check whether ION supports at least v3. -
If you still use the IMS
messagemethod:-
Adopt the
v3/multipartMessagemethod. -
Adjust your
protocolresponse to return"messageMethod" : "multipartMessage".
-
Adopt the
-
Decide whether you are going to continue to populate documents
through the
discoverymethod. Alternatively, you can configure documents by pushing them to ION by calling the appropriate ION Desk API methods.If you plan to switch to using the ION Desk APIs, you must add this property in the protocol response:"hasDiscovery" : false -
In IMS v2, when
ION sends a
multipartMessage, it actually deviates from themultipartMessageas defined in IMS swagger.With IMS v3 that issue is fixed, but as a consequence you receive themultipartMessagein a different format from ION.The differences are:-
The body for the payload now has a fixed
Content-Disposition: form-data;name="MessagePayload". With v2 ION would send theContent-Dispositionwith the same name as used in theContent-Dispositionof the parameter body. -
The body for the parameters now has a fixed
Content-Disposition: form-data;name="ParameterRequest". With v2 ION would send theContent-Dispositionwith the same name as used in theContent-Dispositionof the payload body.
-
The body for the payload now has a fixed
-
After successfully processing a
multipartMessagev3 request, ION sends an HTTP status code 202 (Accepted) instead of 201 (Created). We recommend that you handle any 2xx HTTP status response as a positive response. If you check specifically for 201, you must change your implementation. -
Based on the
multipartMessageHTTP status response that is provided by ION, you now can better identify these situations:- The method was called incorrectly: HTTP status response 400
- The request itself is correct but the ION side is not yet configured to receive the message: HTTP status response 412
-
In IMS v3, the
acceptedDocumentsmethod is introduced as a replacement for thetestmethod. With a single method you now can retrieve all documents that are accepted by a connection point in ION. -
When ION sends a v3
multipartMessage, it includes thedocumentNameandlogicalIdas HTTP parameters. Therefore, you can use these parameters to route the incoming request instead of having to parse the parameter body.