...
To use this transport, configure an endpoint with the local://
prefix. For example, to make an in-VM call to the HelloService, use local://HelloService.
Note that the local transport cannot be used to send REST API calls, which require the HTTP/S transports.
Configuring the Local Transport
By default, WSO2 provides CarbonLocalTransportSender and CarbonLocalTransportReceiver, which are used for internal communication among Carbon components and are not suitable for service invocation. To enable the local transport for service invocation, follow these steps.
1. In the carbon.xml file at location <PRODUCT <BAM_HOME>/repository/conf/carbon.xml
file, an endpoint is available as follows by default.
...
Code Block | ||
---|---|---|
| ||
<ServerURL>https://${carbon.local.ip}:${carbon.management.port}${carbon.context}/services/</ServerURL> |
2. In the axis2.xml file at location <PRODUCT <BAM_HOME>/repository/conf/axis2/axis2.xml
file, there is a transport sender and receiver named 'local' specified as follows in two different places:
...