JAX-RS: Java API for RESTful Web Services. It is an API that provides support in creating web services according to the REST architectural style.
0
votes
2answers
14 views
Post with Jax-RS
This really should be a simple question, and I apologize but I just can't seem to find the answer. From my understanding you can take in an object and have it use say a bean in Java EE to produce this ...
1
vote
0answers
14 views
CXF In-Interceptor annotation is not working + JAX-RS
I have written a CustomValidationInterceptor. I want to configure this interceptor at service level with the use of annotations. Suppose, If I have exposed 5 services, and I want to configure the ...
0
votes
0answers
14 views
Common framework for POST over HTTP and SOAP over HTTP webservices
We have a bunch of services that support Post over HTTP similar to normal web app processing where in a form is sent via post and also SOAP over HTTP via the IBM soap gateway, our design is slightly ...
1
vote
0answers
16 views
CXF/ JAX-RS : Return Custom response from interceptor
We need to return custom error code and error message when exception occurs during REST invocation. We have created a exception mapper provider, it works well for the exceptions from the application ...
0
votes
1answer
13 views
Authorization with RolesAllowedDynamicFeature and Jersey
I'm trying to authenticate users with a JAX-RS filter what seems to work so far. This is the filter where I'm setting a new SecurityContext:
@Provider
public class AuthenticationFilter implements ...
0
votes
3answers
23 views
Handling REST Exception
I'm using a REST service with CXF that does a GET request with an int parameter.
@Path("parkingservice")
public interface ParkingService {
/**
* @param id
* @return
*/
@GET
...
0
votes
2answers
14 views
Is there a way to use JAX-RS annotated interface with Jersey as the client?
Given that I have an interface which represents my RESET service using
public interface BookResource {
@GET
@Path("/book/isbn/{isbn}/")
@Produces(value = { MediaType.APPLICATION_XML ...
0
votes
0answers
19 views
Apache Wink, Felix OSGi. How to register a custom RequestHandler?
I want to register my custom JAX-RS RequestHandler in OSGi environment. As a JAX-RS implementation I use Apache Wink and its wink-osgi module for OSGi integration. How could I do this?
0
votes
1answer
11 views
WSO2 AS: get Axis2 MessageContext in CXF?
I deploy JAX-RS service to CXF (WSO2 AS 5.1.0) as WAR-file.
Also I have Axis2 Handler deployed as module (MAR) which used to modify Axis2 MessageContext in IN/OUT flows.
How can I get Axis2 ...
0
votes
0answers
7 views
FIQL SearchContext throws NullPointerException when injected with @Context
I am trying to implement a simple Rest service using FIQL but my code throws NullPointerException at the point where I inject the SearchContext with the @Context. Here is my code
My service class:
...
0
votes
1answer
35 views
How does an JAX-RS 'endpoint' behave when making a request?
There is something I am not sure I understand correctlty, therefore, I need help:)
I have seen this: example,
@Path("/resource")
public class Resource {
@Context
private HttpHeaders headers;
...
0
votes
0answers
10 views
Join several javax.ws.rs.client.Invocation
In GWT there is a good feature that allows us to join several requests to the server via
com.google.web.bindery.requestfactory.shared.RequestContext.append()
and run them all in one query by
...
0
votes
0answers
14 views
Get sub-resource locator method in Apache CXF JAX-RS RequestHandler
I'm writing an Apache CXF RequestHandler to do some authentication filtering on my JAX-RS resources. The authentication requirements are configured as annotations on the resource methods, so I need to ...
0
votes
1answer
17 views
JAX-RS Webservice Architecture Patterns
What are the common practices for developing JAX-RS Webservices?
I think my architecture has kind of a smell to it:
The webservice is acting as a proxy, collecting information from different ...
-1
votes
0answers
17 views
jersey jax rs web service not working through ip address but it is running on localhost
i have created html5 ,java script project with back end java with jersy jax- rs service .
By using backbone js and ajax i am able to perform all CRUD operations when i am accessing application through ...