Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Callout mediator performs a blocking external service invocation during mediation.

...

Since the Callout mediator is run based on the configuration of the axis2_blocking_client.xml file, its default https transport sender is org.apache.axis2.transport.http.CommonsHTTPTransportSender. Therefore, the Callout mediator does not have access to the required key store to handle mutual SSL. To enable the Callout mediator to handle mutual SSL, the following JVM settings should be added to the <EI_HOME>/bin/wso2serverintegrator.sh file.

Code Block
languagexml
 -Djavax.net.ssl.keyStore="$CARBON_HOME/repository/resources/security/wso2carbon.jks" \
 -Djavax.net.ssl.keyStorePassword="wso2carbon" \
 -Djavax.net.ssl.keyPassword="wso2carbon" \

...

Example 2 - Setting an HTTP method when invoking a REST service

The below example uses a C allout mediator to set a HTTP method when invoking a REST service.

Info

For this, you need to define the following property: <property name="HTTP_METHOD" expression="$axis2:HTTP_METHOD" scope="axis2-client"/>

...