On my current project, we have manually added REST support to ofbiz using
the jersey implementation. I've been toying with the idea of adding configurable REST support to ofbiz services (similar to SOAP support using export="true"). Apache wink is an incubation project for REST and is an potential option. It does contain a few dependencies as shown below. Before I embark on this project (i.e. spend a lot of time), does anyone have any ideas or suggestions? snowch@dl:~/Development/libs$ find apache-wink-1.0-incubating/ -name *.jar apache-wink-1.0-incubating/lib/activation-1.1.jar apache-wink-1.0-incubating/lib/jaxb-impl-2.1.4.jar apache-wink-1.0-incubating/lib/commons-lang-2.3.jar apache-wink-1.0-incubating/lib/slf4j-simple-1.5.8.jar apache-wink-1.0-incubating/lib/stax-api-1.0-2.jar apache-wink-1.0-incubating/lib/slf4j-api-1.5.8.jar apache-wink-1.0-incubating/lib/jaxb-api-2.1.jar apache-wink-1.0-incubating/lib/jsr311-api-1.0.jar apache-wink-1.0-incubating/dist/wink-server-1.0-incubating.jar apache-wink-1.0-incubating/dist/wink-common-1.0-incubating.jar apache-wink-1.0-incubating/dist/wink-1.0-incubating.jar apache-wink-1.0-incubating/dist/wink-client-1.0-incubating.jar apache-wink-1.0-incubating/examples/lib/geronimo-j2ee_1.4_spec-1.1.jar apache-wink-1.0-incubating/examples/lib/commons-cli-1.2.jar apache-wink-1.0-incubating/ext/wink-json-provider/lib/json-20080701.jar apache-wink-1.0-incubating/ext/wink-json-provider/wink-json-provider-1.0-incubating.jar apache-wink-1.0-incubating/ext/wink-webdav/wink-webdav-1.0-incubating.jar apache-wink-1.0-incubating/ext/wink-jettison-provider/lib/jettison-1.1.jar apache-wink-1.0-incubating/ext/wink-jettison-provider/wink-jettison-provider-1.0-incubating.jar apache-wink-1.0-incubating/ext/wink-abdera-provider/wink-abdera-provider-1.0-incubating.jar apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/commons-codec-1.3.jar apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/httpcore-4.0.1.jar apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/jcip-annotations-1.0.jar apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/httpclient-4.0.jar apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/jcl-over-slf4j-1.5.8.jar apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/wink-client-apache-httpclient-1.0-incubating.jar apache-wink-1.0-incubating/ext/wink-spring-support/lib/spring-2.5.jar apache-wink-1.0-incubating/ext/wink-spring-support/lib/jcl-over-slf4j-1.5.8.jar apache-wink-1.0-incubating/ext/wink-spring-support/wink-spring-support-1.0-incubating.jar |
First of all, thanks for looking into this - it's always been perplexing to me that we don't have that totally sussed out in the project. My thoughts are:
1. Look at the XML-RPC example for export - it rocks and would be a great model to follow. 2. If there's an Apache project - even in the incubator - we should probably look at that as a good way to go! Keep it coming on this one - we'll be happy to test and provide feedback. Cheers, Ruppert On Mar 6, 2010, at 11:40 AM, chris snow wrote: > On my current project, we have manually added REST support to ofbiz using > the jersey implementation. > > I've been toying with the idea of adding configurable REST support to ofbiz > services (similar to SOAP support using export="true"). > > Apache wink is an incubation project for REST and is an potential option. > It does contain a few dependencies as shown below. > > Before I embark on this project (i.e. spend a lot of time), does anyone have > any ideas or suggestions? > > snowch@dl:~/Development/libs$ find apache-wink-1.0-incubating/ -name *.jar > apache-wink-1.0-incubating/lib/activation-1.1.jar > apache-wink-1.0-incubating/lib/jaxb-impl-2.1.4.jar > apache-wink-1.0-incubating/lib/commons-lang-2.3.jar > apache-wink-1.0-incubating/lib/slf4j-simple-1.5.8.jar > apache-wink-1.0-incubating/lib/stax-api-1.0-2.jar > apache-wink-1.0-incubating/lib/slf4j-api-1.5.8.jar > apache-wink-1.0-incubating/lib/jaxb-api-2.1.jar > apache-wink-1.0-incubating/lib/jsr311-api-1.0.jar > apache-wink-1.0-incubating/dist/wink-server-1.0-incubating.jar > apache-wink-1.0-incubating/dist/wink-common-1.0-incubating.jar > apache-wink-1.0-incubating/dist/wink-1.0-incubating.jar > apache-wink-1.0-incubating/dist/wink-client-1.0-incubating.jar > apache-wink-1.0-incubating/examples/lib/geronimo-j2ee_1.4_spec-1.1.jar > apache-wink-1.0-incubating/examples/lib/commons-cli-1.2.jar > apache-wink-1.0-incubating/ext/wink-json-provider/lib/json-20080701.jar > apache-wink-1.0-incubating/ext/wink-json-provider/wink-json-provider-1.0-incubating.jar > apache-wink-1.0-incubating/ext/wink-webdav/wink-webdav-1.0-incubating.jar > apache-wink-1.0-incubating/ext/wink-jettison-provider/lib/jettison-1.1.jar > apache-wink-1.0-incubating/ext/wink-jettison-provider/wink-jettison-provider-1.0-incubating.jar > apache-wink-1.0-incubating/ext/wink-abdera-provider/wink-abdera-provider-1.0-incubating.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/commons-codec-1.3.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/httpcore-4.0.1.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/jcip-annotations-1.0.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/httpclient-4.0.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/jcl-over-slf4j-1.5.8.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/wink-client-apache-httpclient-1.0-incubating.jar > apache-wink-1.0-incubating/ext/wink-spring-support/lib/spring-2.5.jar > apache-wink-1.0-incubating/ext/wink-spring-support/lib/jcl-over-slf4j-1.5.8.jar > apache-wink-1.0-incubating/ext/wink-spring-support/wink-spring-support-1.0-incubating.jar |
In reply to this post by chris snow-2
Hi Chris,
As always my first suggestion is to search the mailing list archives for previous discussions on the topic. Regards Scott HotWax Media http://www.hotwaxmedia.com On 6/03/2010, at 11:40 AM, chris snow wrote: > On my current project, we have manually added REST support to ofbiz using > the jersey implementation. > > I've been toying with the idea of adding configurable REST support to ofbiz > services (similar to SOAP support using export="true"). > > Apache wink is an incubation project for REST and is an potential option. > It does contain a few dependencies as shown below. > > Before I embark on this project (i.e. spend a lot of time), does anyone have > any ideas or suggestions? > > snowch@dl:~/Development/libs$ find apache-wink-1.0-incubating/ -name *.jar > apache-wink-1.0-incubating/lib/activation-1.1.jar > apache-wink-1.0-incubating/lib/jaxb-impl-2.1.4.jar > apache-wink-1.0-incubating/lib/commons-lang-2.3.jar > apache-wink-1.0-incubating/lib/slf4j-simple-1.5.8.jar > apache-wink-1.0-incubating/lib/stax-api-1.0-2.jar > apache-wink-1.0-incubating/lib/slf4j-api-1.5.8.jar > apache-wink-1.0-incubating/lib/jaxb-api-2.1.jar > apache-wink-1.0-incubating/lib/jsr311-api-1.0.jar > apache-wink-1.0-incubating/dist/wink-server-1.0-incubating.jar > apache-wink-1.0-incubating/dist/wink-common-1.0-incubating.jar > apache-wink-1.0-incubating/dist/wink-1.0-incubating.jar > apache-wink-1.0-incubating/dist/wink-client-1.0-incubating.jar > apache-wink-1.0-incubating/examples/lib/geronimo-j2ee_1.4_spec-1.1.jar > apache-wink-1.0-incubating/examples/lib/commons-cli-1.2.jar > apache-wink-1.0-incubating/ext/wink-json-provider/lib/json-20080701.jar > apache-wink-1.0-incubating/ext/wink-json-provider/wink-json-provider-1.0-incubating.jar > apache-wink-1.0-incubating/ext/wink-webdav/wink-webdav-1.0-incubating.jar > apache-wink-1.0-incubating/ext/wink-jettison-provider/lib/jettison-1.1.jar > apache-wink-1.0-incubating/ext/wink-jettison-provider/wink-jettison-provider-1.0-incubating.jar > apache-wink-1.0-incubating/ext/wink-abdera-provider/wink-abdera-provider-1.0-incubating.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/commons-codec-1.3.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/httpcore-4.0.1.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/jcip-annotations-1.0.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/httpclient-4.0.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/lib/jcl-over-slf4j-1.5.8.jar > apache-wink-1.0-incubating/ext/wink-client-apache-httpclient/wink-client-apache-httpclient-1.0-incubating.jar > apache-wink-1.0-incubating/ext/wink-spring-support/lib/spring-2.5.jar > apache-wink-1.0-incubating/ext/wink-spring-support/lib/jcl-over-slf4j-1.5.8.jar > apache-wink-1.0-incubating/ext/wink-spring-support/wink-spring-support-1.0-incubating.jar smime.p7s (3K) Download Attachment |
In reply to this post by chris snow-2
chris snow wrote:
> On my current project, we have manually added REST support to ofbiz using > the jersey implementation. > > I've been toying with the idea of adding configurable REST support to ofbiz > services (similar to SOAP support using export="true"). > Axis2 supports REST interfaces. We can probably just configure Axis2 a little differently and get REST support for free when you do export="true". -- Ean Schuessler, CTO [hidden email] 214-720-0700 x 315 Brainfood, Inc. http://www.brainfood.com |
Hi Ean, when I last looked I coudn't find much documentation on using axis
for exposing REST services. I think it is possible to do some form of REST from axis, but the functionality is limited. Bear in mind that it is possible to expose REST using a plain JSP or servlet, but it is cumbersome. I have put some instructions together at http://cwiki.apache.org/confluence/x/rQPi of manually exporting a service using REST with apache wink. When I have documented more manual REST options (e.g. json, rss, etc), I will look at how an ofbiz service definition for REST could be implemented. On Mon, Mar 8, 2010 at 8:52 PM, Ean Schuessler <[hidden email]> wrote: > chris snow wrote: > >> On my current project, we have manually added REST support to ofbiz using >> the jersey implementation. >> >> I've been toying with the idea of adding configurable REST support to >> ofbiz >> services (similar to SOAP support using export="true"). >> >> > Axis2 supports REST interfaces. We can probably just configure Axis2 a > little differently and get REST support for free when you do export="true". > > -- > Ean Schuessler, CTO > [hidden email] > 214-720-0700 x 315 > Brainfood, Inc. > http://www.brainfood.com > > |
Free forum by Nabble | Edit this page |