Invoke webMethods IS
This policy processes the native API’s response messages into the format required by the application, before API Gateway returns the responses to the application.
The following are the input and output parameters for REST, SOAP, and WebSocket APIs as specified in the above IS Specification. Input parameters can be used to access the existing values of the response while output parameters can be used to modify/write the values to the response.
Parameter name | Description | |
---|---|---|
Input parameters | headers | Headers in response.
Data type: Document |
payload | Payload of the response.
Data type: String |
|
payloadObject | The payload for binary content types like
multi-part / form-data.
Data type: Object |
|
statusCode | Status code of the response.
Data type: String |
|
statusMessage | Status message of the response.
Data type: String |
|
MessageContext | The message context object of the
response.
Data type: Object |
|
apiName | Name of the API invoked by the response.
Data type: String |
|
requestUrl | URL of the response.
Data type: String |
|
ipInfo | Contains IP information of the response.
Data type: Document |
|
websocketInfo | Websocket related information of the
response.
Data type: Document |
|
correlationID | Correlation ID of the request/response.
This is unique and same for a request and response.
Data type: String |
|
customFieldsMap | Custom transactional fields can be added
to the transactional events using this field. For more information, see
Adding Custom Fields to
Transactional Events section.
Data type: Document |
|
Output parameters | headers | Headers in response.
Data type: Document |
payload | Payload of the response.
Data type: String |
|
payloadObject | The payload for binary content types like
multi-part / form-data.
Data type: Object |
|
statusCode | Status code of the response.
Data type: String |
|
statusMessage | Status message of the response.
Data type: String |
|
MessageContext | The message context object of the
response.
Data type: Object |
|
customFieldsMap | Custom transactional fields can be added
to the transactional events using this field. For more information, see
Adding Custom Fields to
Transactional Events section.
Data type: Document |
- For SOAP to REST APIS, the payload contains the transformed JSON response.
- Payload transformation does not happen automatically for content-type transformation. When you change the content type, ensure to do payload transformation also as part of IS Service.
- When Comply to IS spec is true, you can change the values of headers, query, payload, and so on, programatically using Message Context, as well as using the pipeline variables given. Software AG recommends you not to change those values directly in Message Context, as the values in output pipeline variables are written to Message Context after the invocation of IS Service.
If Comply to IS Spec parameter is set to false, API Gateway invokes the IS Service with the same input and output parameters supported in 10.1 and the earlier versions::
- proxy.name
- JSONRESTContentString (REST only)
- SOAPEnvelope (SOAP only)
- EnvelopeString (SOAP only)
Property | Description |
---|---|
Invoke webMethods Integration Server Service | |
Add invoke webMethods Integration Server service | Specifies the webMethods IS service to be
invoked to process the response messages and the authentication mode for the IS
service.
Provide the following information:
|
webMethods IS Service alias | Specifies the webMethods IS service alias
used to invoke the webMethods IS service to pre-process the response messages.
Start typing the webMethods alias name, select the alias
from the type-ahead search results displayed and click
You can use the delete icon |
Adding Custom Fields to Transactional Events
- Create webMethods IS service by specifying the pub.apigateway.utils:customFieldInTransactionEventSpec as a specification reference.
- In the webMethods IS service, set the required custom fields in the customFieldsMap output variable.
- Once when customFieldsMap gets created, the custom fields will be available in the transactional events.
- Invoke the API with the Invoke webMethods IS policy.