Jersey 2.0 jars download for non maven users - web-services

I am very new to web services. Where I can get Jersey 2.0 jars and I am not Maven user I have added Jersey 1.0 jars but it is giving the error like this:
de.vogella.jersey.todo

Do you just want the jars? jersey download. here you go, there you can find the last jars. That right now is 2.19. Cheers!

Related

Can Apache cxf 2.7.10 be integrated with Swagger?

I have developed Restful web service using Apache CXF 2.7.10. I am trying to integrate same with Swagger (and Swagger UI). I couldn't look up an example over the internet for the same. All the examples point to recent versions of Apache CXF.
Is the integration with Apache CXF 2.7.10 version possible? If so, can anyone please point to the steps or a working example for the same?
Note: My application is regular maven based project.
Thanks!
Why not upgrading to CXF 3? Everything is implemented there and easy to use: http://cxf.apache.org/docs/swagger2feature.html
Should be possible to backport the stuff to 2.7.x. You would need to add swagger-jaxrs dependency and customize the ApiListingResource (https://github.com/swagger-api/swagger-core/wiki/swagger-core-jax-rs-project-setup-1.5.x). I guess upgrading to CXF 3 would be much easier...

How do I get the most recent / official code and jars for siddhi?

I see there's a separate maven repo at http://dist.wso2.org/maven2 but the version of siddhi - your CEP does not match what is in here: https://github.com/wso2/product-cep
Which is current and which can be used? Also, the website has a lead-capture form. Is the product truly apache2 open source or is it in name only?
WSO2 products are 100% apache 2.0 license compatible free and open source products. you can find the siddhi version used in WSO2 CEP.
Based on the description given on Siddhi repository,current version is 3.0.2. Please find the maven nexus repository for Siddhi

REST services running on Glassfish

I've developed REST web services using Jersey with NetBeans IDE.
Now I want to provide those services on Glassfish 3.1, without using NetBeans.
I want something like the .aar file that is created when we build web services with Apache Axis2.
Can you tell me how to do it? I have to use the .WAR file, right?
It is something like: http://qallme.sourceforge.net/docs/sec_DeployingAWebService.html ?
Thanks
I could do it by following that tutorial that I've mentioned above.
At first that was not working because of the context-rooton glassfish-web.xml. I had not filled it with the root resource.

consuming wsdl in spring mvc

My IDE set up is
Eclipse Indigo
Spring IDE for indigo
Spring STS for indigo
maven integration for eclipse
maven integration for eclipse wtp
Created a sample spring mvc project and performed maven clean and maven build.
I have a wsdl from client which i have included in a project that uses cxf-wsdl2java to generate the proxy code. Not sure if this is the right way to approach this. The web service is on 'axis'
Looking for tutorial on how to consume the wsdl and make the method calls in spring mvc project using maven. also is cxf the right way to approach this? particularly the wsdl2java approach
It is usually a good practice to use the wsdl2java with maven (except that I would have not copied the wsdl inside the resources, but I would have kept it on the distant server). As this if the wsdl change, you will ne notified directly with your build.
For your client, just configure your endpoint. see the 'Configuring a Spring Client' doc from cxf : http://cxf.apache.org/docs/jax-ws-configuration.html
You might want to look into the Spring Web Service project found here:
http://static.springsource.org/spring-ws/site/
Ihere is a tutorial (located here: http://static.springsource.org/spring-ws/site/reference/html/tutorial.html) on their website which goes through both creating a contract first web service, as well as a consumer of that web service.
Hope this helps!

How to run metro webservice on OSGi + jetty?

I'm trying to get a WebService (wsdl) to work on Jetty using OSGi (Felix) + Metro ?
I got Servlets and JSP's working on OSGi + Jetty, but not a WebService using Metro. I have a sample OSGi WAR file to test, which I deployed on Glashfish and it worked. The same I need to deploy on Jetty.
Please share some samples or instructions on this.
Thank you
Vivek
Neil Bartlett has a project at Git hub, https://github.com/njbartlett/jaxrs-osgi-extender, that might be of interest.