You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Pink, Simon (AGCS)" <si...@allianz.com> on 2010/01/06 10:53:27 UTC

HTTP Conduits and cxf.xml

I am trying to configure a HTTP Conduit to set connection timeouts for a particular service call. I have looked at: http://cwiki.apache.org/CXF20DOC/configuration.html and for the most part it is very straight forward.

I have a basic hello world service, created as the service '{http://server.hello.cxf.sandbox.com/}HelloWorld', so I would think that this should work:

   <http:conduit name="{http://server.hello.cxf.sandbox.com/}HelloWorld.http-conduit">
     <http:client Connection="Keep-Alive"
                      ConnectionTimeout="5"
                      ReceiveTimeout="5" />
   </http:conduit>

But it doesn't, however if I use *.http-conduit as the name it does work. So my question is: what format is the 'name' component of http:conduit supposed to be in? I have seen examples using urn's and url's, but no hard and fast description of the exact format that is expected.

Many Thanks,
Simon.




Re: HTTP Conduits and cxf.xml

Posted by Daniel Kulp <dk...@apache.org>.
I've updated the page on the http conduit configs at:
http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html

to mention two things;

1) Clarify it's the port name, not the service name.  For you, it was 
probably HelloWorldPort.  Not sure though.

2) Mention that conduits can also (as of 2.1.5/2.2.2) be configured 
via URL regex:

<http:conduit name="http://localhost:8080/.*">


I really expect the last version to be the easiest to use.   Using the 
last form also is used for WSDL retrieval.  Thus, you can configure
the TLS stuff and such for getting the WSDL.


Dan




On Wed January 6 2010 4:53:27 am Pink, Simon (AGCS) wrote:
> I am trying to configure a HTTP Conduit to set connection timeouts for a
>  particular service call. I have looked at:
>  http://cwiki.apache.org/CXF20DOC/configuration.html and for the most part
>  it is very straight forward.
> 
> I have a basic hello world service, created as the service
>  '{http://server.hello.cxf.sandbox.com/}HelloWorld', so I would think that
>  this should work:
> 
>    <http:conduit
>  name="{http://server.hello.cxf.sandbox.com/}HelloWorld.http-conduit">
>  <http:client Connection="Keep-Alive"
>                       ConnectionTimeout="5"
>                       ReceiveTimeout="5" />
>    </http:conduit>
> 
> But it doesn't, however if I use *.http-conduit as the name it does work.
>  So my question is: what format is the 'name' component of http:conduit
>  supposed to be in? I have seen examples using urn's and url's, but no hard
>  and fast description of the exact format that is expected.
> 
> Many Thanks,
> Simon.
> 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog