Release resources allocated by the transport during the last service invocation. This method will call {@link org.apache.axis2.transport.TransportSender#cleanup(MessageContext)} on thetransport sender used during that invocation.
If the callTransportCleanup
property on the {@link Options} object isset to false
(which is the default), then this method must be called after each invocation of an operation with an in-out MEP, but not before the response from that operation has been completely processed (or {@link OMElement#build()}has been called on the response element).
If the callTransportCleanup
property is set to true
, then this method is called automatically. Note that in this case, {@link OMElement#build()}will be called on the response element before is returned. This effectively disables deferred parsing of the response and prevents the code from starting to process the response before it has been completely received. Therefore this approach is not recommended whenever performance is important.
@throws AxisFault