Invoke webMethods IS Policy Properties for Request Processing
If Comply to IS Spec parameter is configured as true, API Gateway invokes the IS Service with IS specification in the path pub.apigateway.invokeISService.specifications:RequestSpec for Request Processing
The following are the input and output parameters for REST, SOAP, and WebSocket APIs as specified in the above IS Specification.
API type | Input parameters | Output parameters |
---|---|---|
REST |
|
|
SOAP |
|
|
WebSocket |
|
|
By default the "query" pipeline variable is a key value pair, where the value is of type string. But, if the incoming request contains multiple values for the same query parameter and if you want to access those multiple values using webMethods IS Service, you have to ensure two things:
- Make sure that you have checked the Repeat check box for query parameter in the Add Resource Parameter section of the API details screen.
- To access or transform multiple values of that query parameter, you have to insert string list (instead of string) under the "query" pipeline variable in the webMethods IS Service.
- For SOAP to REST APIS, the payload contains the transformed SOAP request.
- 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. For example, if you change the content-type header from application/xml to application/json using IS service, you must also change the respective payload from application/xml to application/json
- Only Method Transformation happens when configured, but you have to take care of adding payload during transformations involving method change like GET to POST, and so on.
- 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 do not 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 pre-process the request messages and the authentication mode for the
IS service.
Provide the following information:
|
webMethods IS Service alias | Specifies the webMethods IS service alias
to be invoked to pre-process the request 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.