It looks like you are not using the right conduit name.
How about try to set the conduit name with "*.http-conduit" ?

On Fri Feb 24 04:00:34 2012, hellosir wrote:
Hi, I'm trying to edit the default timeout for my web service to wait for a
response.

When I try it using this config file, nothing seems to happen. I set the
timeout to be 1000 ms, and I have a generic web service I am calling where I
do a Thread.sleep for 4000 ms and a timeout error never occurs.

Can someone enlighten me as to what I am doing wrong?

I had to edit out some of the names of my config file, but everything is
listed below.

Thanks in advance,

(Config file below)


<?xml version="1.0" encoding="UTF-8"?>

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

   <import resource="classpath:META-INF/cxf/cxf.xml"/>
   <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
   <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>



   <http-conf:conduit name="http://localhost:11100/.*";>
      <http-conf:client ReceiveTimeout="1000" />
   </http-conf:conduit>



   <cxf:cxfEndpoint id="ws"
                    address="http://localhost:8080/ws";
                    endpointName="s:servicePort"
                    serviceName="s:Service"
                    wsdlURL="etc/some.wsdl"
                    xmlns:s="http://ws/some.wsdl";> 
   </cxf:cxfEndpoint>



   <camelContext  xmlns="http://camel.apache.org/schema/spring";>

     <endpoint id="callRealWebService" uri=""/>

     <route>

       <from uri="cxf:bean:some-WS?dataFormat=MESSAGE"/>


       <to ref="callRealWebService"/>

     </route>

   </camelContext>

</beans>

--
View this message in context: 
http://camel.465427.n5.nabble.com/Setting-timeout-for-http-conf-client-doesn-t-seem-to-work-tp5509173p5509173.html
Sent from the Camel - Users mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to