HTTP transports

CommonsHTTPTransportSender

This is the default transport sender that is being used in Server API as well as Client API. HTTP funtionality of the Sender is based on commons-httpclient-3.0-rc2. In order to aquire the maxium flexibiliy, this sender has implemented POST interface and GET interface. This is mainly due to the fact that Axis2 SOAP stack has the tendency to support REST based services as well.

Chunking support and KeepAlive support also integrated via the facilities provided by commons. It has the tendency to support HTTP version 1.0 and 1.1. As Chunking support is only available in HTTP version 1.1, thus, this distiction in sperating the tranport version is important.

Tranport Sender sets in the axis2.xml's <tranposrtSender/> element, and it's being declared as follows,

<transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL" locked="xsd:false">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
</transportSender>

Above code snippet shows the complete configuration of the transport sender. <parameter/> element introduces the additional paraments that should be complient with the sender. HTTP PROTOCOL version sets as HTTP/1.0 or HTTP/1.1. Default version is HTTP/1.1. It should be noted that Chunking support is available at HTTP/1.1. Thus, the user should be careful of setting the "chunked" property only with version 1.1. KeepAlive is default in version 1.1. 

These are the only paramenters that is available from deployment. Other parameters such as character encoding style etc, are provided via MessageContext.