Versions Compared

Key

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

The transport receiver implementation of the HTTP transport is available in the Carbon core component. The transport sender implementation comes from the Apache Axis2 transport moduleTomcat http connector. This transport is shipped with WSO2 Carbon and all WSO2 Carbon-based products, which use this transport as the default transport, except WSO2 ESB. The two classes which implement the listener and sender APIs are org.wso2.carbon.core.transports.http.HttpTransportListener and By default, we use non-blocking Tomcat Java connector org.apache.axis2coyote.transporthttp11.httpHttp11NioProtocol.CommonsHTTPTransportSender respectively.

Info
titleNote
  • This is a non-blocking HTTP transport implementation, meaning which means that I/O the threads do not get blocked while received messages are processed completely by the underlying Axis2 engine.
  • Although the Although the axis2.xml file contains configurations for HTTP/S transports by default, they are not used by WSO2 products. Instead, the products use the HTTP/S transport configurations in Tomcat-level; therefore, changing the HTTP/S configurations in the axis2.xml file has no effect.
Info
titleTip

In the transport parameter tables, the literals displayed in italic mode italics under the "Possible Values" column should be considered as fixed literal constant values. Those values can be directly put in into the transport configurations.

...

Parameter Name

Description

Requried

Possible Values

Default Value

port

The port number on which this transport receiver should listen for incoming messages.

Yes

A positive integer less than 65535

 

proxyPort

When used, this transport listener will accept messages arriving through a HTTP proxy server which listens on the specified proxy port. Apache mod_proxy should be enabled in the proxy server. All the WSDLs generated will contain the proxy port value as the listener port.

No

A positive integer less than 65535

 

When using org.wso2.carbon.core.transports.http.HttpTransportListener as the transport receiver implementation, HTTP servlet transport should be configured in the $PRODUCTPRODUCT_HOME/repository/conf/tomcat/transportscatalina-server.xml file file. The transport class that should be specified in the transportsthe catalina-server.xml file  file is as follows:

Code Block
<Connector protocol="org.wso2apache.carboncoyote.server.transports.http.HttpTransporthttp11.Http11NioProtocol"/>

This servlet transport implementation can be further tuned up using the following parameters.

...