Examined the source - it's not possible at all. There's single timeout.
Went to jbossws jira willing to file a feature request.
But found JBWS-3114 and this message:
I've added this two properties
"javax.xml.ws.client.connectionTimeout",
"javax.xml.ws.client.receiveTimeout" to cxf and native stack for the
stack agnostic timeout configuration:
public void testConfigureTimeout() throws Exception
{
//Set timeout until a connection is established
((BindingProvider) port).getRequestContext().
put("javax.xml.ws.client.connectionTimeout", "6000");
//Set timeout until the response is received
((BindingProvider) port).getRequestContext().
put("javax.xml.ws.client.receiveTimeout", "1000");
String response = port.echo("testTimeout");
System.out.prinltn("Received response : response");
}
This should be included in the 3.4.0 release.
Rechecked the source - it's there!
Unfortunately, according to compatibility matrix, jbossws-3.4.0 is supported only since JBoss AS 5.0.1.