IBM Support

Including responses to every WebService call

Question & Answer


Question

How is it possible to add responses for all WebService operations ?

Cause

When using MIF WebServices, by default only Query Operation will return a response having attribute data.

By default, Sync, Delete and Update operations will only return a header, having HTTP 200 for SUCCESS and any other HTTP Code for FAILED transactions.

There is a need to retrieve key attributes for all WebService operations.

Answer

The System Property mxe.int.keyresponse will control whether the response is provided or not:

Possible values are:

0 - No attributes are sent back to the caller

1 - Key attributes are added to the response

For example, when this System Property value is 1, the following response is sent back for MXWOSync operation:


MXWOResponse.xmlMXWOResponse.xml


Note: this option will only include the Key attributes in the response.
Java customization will be required to add other attributes.

[{"Product":{"code":"SSLKT6","label":"Maximo Asset Management"},"Business Unit":{"code":"BU005","label":"IoT"},"Component":"MEA: Generic","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1;7.1.1;7.5;7.6","Edition":""}]

Document Information

Modified date:
17 June 2018

UID

swg21648092