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/06/26 15:09:07 UTC
[jira] Created: (CXF-2320) Problems using restful client api in
ServiceMix JBI component
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.
[jira] Updated: (CXF-2320) Problems using restful client api in
ServiceMix JBI component
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin updated CXF-2320:
----------------------------------
Corresponding SMX4 issue
https://issues.apache.org/activemq/browse/SMX4-311
> 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.
[jira] Commented: (CXF-2320) Problems using restful client api in
ServiceMix JBI component
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (CXF-2320) Problems using restful client api in
ServiceMix JBI component
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-2320.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.2.5
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());
> 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
> Assignee: Sergey Beryozkin
> Fix For: 2.2.5, 2.3
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (CXF-2320) Problems using restful client api in
ServiceMix JBI component
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin reopened CXF-2320:
-----------------------------------
Assignee: Sergey Beryozkin
Will have to look at it a bit more carefully
> 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
> Assignee: 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.
[jira] Resolved: (CXF-2320) Problems using restful client api in
ServiceMix JBI component
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-2320.
-----------------------------------
Resolution: Cannot Reproduce
> 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.