I have been using Groovy Web Service client with no fuss and good success
until I started getting errors like the following sometimes: 

SEVERE: could not invoke method 
org.apache.cxf.interceptor.Fault: Could not send Message. 

and then: 
Caused by: java.net.SocketTimeoutException: Read timed out 

Details very much like this post: 

http://www.mail-archive.com/[email protected]/msg03620.html

after looking at the cxf http client configuration doc:

https://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html

I want to set "ReceiveTimeout".  The default is 60 seconds which agrees with
my experience.  I expect this service to take longer than 60 seconds on a
method call some of the time. 

I created a cxf.xml file and put it on my classpath.  Contents of file: 

<beans xmlns="http://www.springframework.org/schema/beans"; 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
       xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"; 
      
xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
                          
http://cxf.apache.org/schemas/configuration/http-conf.xsd
                           http://www.springframework.org/schema/beans
                            
http://www.springframework.org/schema/beans/spring-beans.xsd";> 

  <http-conf:conduit name="*.http-conduit"> 
    <http-conf:client ReceiveTimeout = "0" /> 
  </http-conf:conduit> 
</beans> 

My method calls still timeout after 60 seconds.  I set logging level to
FINEST and get a large amount of FINE level output but nothing about reading
cxf.xml or ReceiveTimeout.

does dynamic client support cxf.xml configuration?  What would be next steps
to understand whether cxf.xml is being read. 

-- 
View this message in context: 
http://cxf.547215.n5.nabble.com/does-dynamic-client-support-cxf-xml-configuration-tp3316344p3316344.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to