You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2009/10/07 18:44:31 UTC
[jira] Commented: (CXF-2320) Problems using restful client api in
ServiceMix JBI component
[ https://issues.apache.org/jira/browse/CXF-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763115#action_12763115 ]
Sergey Beryozkin commented on CXF-2320:
---------------------------------------
I can not reproduce it at the moment.
here's the client code for the test project with no spring dependencies :
JAXRSClientFactoryBean sf = new JAXRSClientFactoryBean();
sf.setBindingId(JAXRSBindingFactory.JAXRS_BINDING_ID);
sf.setResourceClass(Catalog.class);
sf.setAddress("http://localhost:8080/rest/catalog/items");
BindingFactoryManager manager =
sf.getBus().getExtension(BindingFactoryManager.class);
JAXRSBindingFactory factory = new JAXRSBindingFactory();
factory.setBus(sf.getBus());
manager.registerBindingFactory(JAXRSBindingFactory.JAXRS_BINDING_ID,
factory);
WebClient catalog = sf.createWebClient();
Collection<? extends Catalog.Item> list = catalog.getCollection(Catalog.Item.class);
System.out.println(list.iterator().next().getDescription());
please reopen the JIRA if the issue still exists, ideally with some sample client bundle (possibly being a JBI su) attached which I can run say against a jaxrs endpoint created after installing an examples-cxf-jaxrs service mix feature
> Problems using restful client api in ServiceMix JBI component
> -------------------------------------------------------------
>
> Key: CXF-2320
> URL: https://issues.apache.org/jira/browse/CXF-2320
> Project: CXF
> Issue Type: Bug
> Components: Integration, REST
> Affects Versions: 2.2.2
> Reporter: Sergey Beryozkin
> Fix For: 2.3
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.