I've published JAX-WS web services with Endpoint.publish during development. Is there any such utility class exists (in JAX-RS) for publishing REST web services in jersey? I referred couple of articles, and majority of them are based on publishing the web services in some containers like Jetty, Grizzly etc.
相关问题
- Design RESTful service with multiple ids
- Axios OPTIONS instead of POST Request. Express Res
- Plain (non-HTML) error pages in REST api
- Laravel 5.1 MethodNotAllowedHttpException on store
- Is the Namespace for a SOAP Web Service case sensi
相关文章
- Using JAX-WS 2.2.5 client with JDK/JRE 1.5
- Cannot use org.jvnet.jax-ws-commons.jaxws-maven-pl
- Got ActiveRecord::AssociationTypeMismatch on model
- Multiple parameters in AngularJS $resource GET
- How to create base64Binary data?
- Global Exception Handling in Jersey & Spring?
- Are there any public UDDI registries available?
- REST search interface and the idempotency of GET
Jersey-Grizzly has a very simple solution. From https://github.com/jesperfj/jax-rs-heroku:
If you're using Maven, you'll need the following three dependencies:
To test it, just open
http://localhost:7080/hello
in a browser.I think you can use Provider interface to publishing a RESTful Web Service with JAX-WS.
The example class:
The adjusted web.xml:
and need to add
sun-jaxws.xml
deployment descriptor to the WAR file.Or could be create simple HttpServer