You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2005/12/02 11:46:52 UTC
svn commit: r351669 - /webservices/axis2/trunk/java/xdocs/http-transport.html
Author: saminda
Date: Fri Dec 2 02:46:47 2005
New Revision: 351669
URL: http://svn.apache.org/viewcvs?rev=351669&view=rev
Log:
Updated transport docs.
Modified:
webservices/axis2/trunk/java/xdocs/http-transport.html
Modified: webservices/axis2/trunk/java/xdocs/http-transport.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/http-transport.html?rev=351669&r1=351668&r2=351669&view=diff
==============================================================================
--- webservices/axis2/trunk/java/xdocs/http-transport.html (original)
+++ webservices/axis2/trunk/java/xdocs/http-transport.html Fri Dec 2 02:46:47 2005
@@ -3,6 +3,14 @@
<head>
<meta content="">
<meta content="">
+ <meta content="">
+ <meta content="">
+ <meta content="">
+ <meta content="">
+ <meta content="">
+ <meta content="">
+ <meta content="">
+ <meta content="">
<meta http-equiv="content-type" content="">
<title>HTTP transports</title>
</head>
@@ -45,6 +53,27 @@
authenticate the clients where the server has the clients' public keys in the
its trust store.
+<h2>Timeout Configuraiton</h2>
+
+<p>There are two timeout exist in transport level. They are called, Socket
+timeout and Connection timeout. This can be configured in deployment time or
+in run time. In depoyment time, user has to add the following lines in
+axis2.xml.</p>
+
+<p>For Socket timoeout:</p>
+<pre><parameter name="SO_TIMEOUT" locked="false">some_int_value</parameter>
+
+For Connection timeout:
+
+<parameter name="CONNECTION_TIMEOUT" locked="false">some_int_value</parameter>
+
+In runtime it's set as follows in the Stub.</pre>
+<source><pre>...
+Options options = new Options();
+options.setProperty(HTTPConstants.SO_TIMEOUT,new Integer(some_int_value));
+options.setProperty(HTTPConstants.CONNECTION_TIMEOUT,new Integer(some_int_value));
+...</pre>
+</source>
<p></p>
<h2>Proxy and NTLM Authentication</h2>
@@ -58,8 +87,7 @@
<pre><transportSender name="<b>http</b>" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
<parameter name="PROXY" proxy_host="proxy_host_name" proxy_port="proxy_host_port" locked="true>userName:domain:passWord</parameter>
-</transportSender><br>
-</pre>
+</transportSender><br></pre>
<p>For a particular proxy, if authentication is not available fill
"userName:domain:passWord"as "anonymous:anonymous:anonymous".</p>
@@ -77,8 +105,7 @@
proxyProperties.setProxyPort(...);
...
options.setProperty(HttpConstants.PROXY, proxyProperties);
-....
-</pre>
+....</pre>
<p>The above code would eventually override the deployment proxy
configuration settings.</p>