[ 
https://issues.apache.org/activemq/browse/SMX4-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54687#action_54687
 ] 

Sergey Beryozkin commented on SMX4-311:
---------------------------------------

The issue has been fixed in CXF, workaround :

JAXRSClientFactoryBean sf = new JAXRSClientFactoryBean();
sf.setAddress(url);
JAXRSBindingFactory factory = new JAXRSBindingFactory();
factory.setBus(sf.getBus());
/*********** 1 - this code will become eventually hidden from the user  
***********/
BindingFactoryManager manager = 
sf.getBus().getExtension(BindingFactoryManager.class);
manager.registerBindingFactory(JAXRSBindingFactory.JAXRS_BINDING_ID,  factory); 
 
/*********** 2 - just a workaround, the client runtime has been fixed to do it 
if no ConduitInitiator has been found ***********/
ConduitInitiatorManager cim  = 
sf.getBus().getExtension(ConduitInitiatorManager.class);
sim.registerConduitInitiator("http://schemas.xmlsoap.org/wsdl/soap/http";,  new 
ClientOnlyHTTPTransportFactory());

  



          InputStream in = 
sf.createWebClient().accept("application/xml").get(InputStream.class);

> Problems using CXF http-centric client api in ServiceMix JBI component
> ----------------------------------------------------------------------
>
>                 Key: SMX4-311
>                 URL: https://issues.apache.org/activemq/browse/SMX4-311
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.0-m1, 4.0.0
>            Reporter: Sergey Beryozkin
>            Assignee: Sergey Beryozkin
>             Fix For: 4.1.0
>
>
> - not finding jaxrs namespace when WebClient.createClient(uri) was called.
> and after :
> Bus bus = BusFactory.getDefaultBus();
> BindingFactoryManager mgr = bus.getExtension(BindingFactoryManager.class);
> mgr.registerBindingFactory(JAXRSBindingFactory.JAXRS_BINDING_ID, new 
> JAXRSBindingFactory());
> the follwing error is returned after when client.get() is called:
> org.apache.cxf.interceptor.Fault: No conduit initiator was found for the 
> namespace http://schemas.xmlsoap.org/wsdl/soap/http
> corresponding CXF issue : https://issues.apache.org/jira/browse/CXF-2320
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to