Questions tagged [apache-wink]

Apache Wink is a simple yet solid framework for building RESTful Web services. It is comprised of a Server module and a Client module for developing and consuming RESTful Web services.

Apache Wink is a simple yet solid framework for building RESTful Web services. It is comprised of a Server module and a Client module for developing and consuming RESTful Web services.

The Wink Server module is a complete implementation of the JAX-RS v1.1 specification. On top of this implementation, the Wink Server module provides a set of additional features that were designed to facilitate the development of RESTful Web services.

The Wink Client module is a Java based framework that provides functionality for communicating with RESTful Web services. The framework is built on top of the JDK HttpURLConnection and adds essential features that facilitate the development of such client applications.

123 questions
0
votes
1 answer

Apache Wink 1.2.1 conditional call service method

I've faced with problem when I'm trying to call service method and check before that some condition @Path("service") public class MyService { @POST @Path("process") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) …
Ray
  • 1,788
  • 7
  • 55
  • 92
0
votes
1 answer

Unsupported Media Type issue when including Apache Wink Client in my WAR

I'm hitting the following issue when doing a POSTing a JSON message to my REST service in WebSphere Liberty. This ONLY happens when I bundle the Apache Wink Client jars inside my WAR. [29/01/14 18:52:57:634 GMT] 00000027…
DarVar
  • 16,882
  • 29
  • 97
  • 146
0
votes
1 answer

NullPointerException thrown by Apache Wink Accept in WAS Liberty 8.5.5.1

NullPointerException in Apache Wink. I've read it maybe jar conflicts but I don't see anything bundled in my war that conflicts. Any WAS liberty logs I can turn on that can provide more details? [04/12/13 16:58:26:978 GMT] 00000026…
DarVar
  • 16,882
  • 29
  • 97
  • 146
0
votes
3 answers

SRVE0777E: Exception thrown by application class 'org.apache.wink.common.internal.http.Accept.valueOf:139'

I'm hitting the following exception in my JAX-RS service on WLP 8.5.5 ApacheWink (WebSphere Application Server 8.5.5.0/wlp-1.0.3.20130510-0831) @POST @Path("hello") @Consumes(MediaType.APPLICATION_JSON) public Response sayhello(Hello hi) { …
DarVar
  • 16,882
  • 29
  • 97
  • 146
0
votes
1 answer

How to get xml produced from jax-rs?

I would like to log the xml produced from this. How can I do this ? @GET @Path("add") @Producse("application/xml") public ListgetCustomerList(....) { } } UPDATE why i need this is because , I want to have…
mosaad
  • 2,276
  • 5
  • 27
  • 49
0
votes
1 answer

Apache wink accessing authentication header in

I am new to Apache Wink. I wanted to know how I can access Basic Authorization header's in my wink server code. I am using FireFox REST client to access my service. While authenticating user, i need to pass username and password as Basic…
Rajjy
  • 176
  • 13
0
votes
1 answer

apache wink server stub return null,the rest client throw exception

Server stub @GET @Path("/user/{id}") @Produces(MediaType.APPLICATION_JSON) public User getUser(@PathParam("id") String id){ User user = myService.getUserById(id); if (user!= null){ return user; } …
0
votes
1 answer

Use Spring module without using Spring and Maven?

I'm currently working on a project that involves building a REST api using JavaEE. The setup of the project is Tomcat, Hibernate, Wink and Jackson Json for the different json-views. At the moment the unit testing of the rest resources is very poor,…
user1120144
0
votes
1 answer

Apache Wink starts within Equinox and runs OK, but produces lots of warnings

I'm developing an Eclipse plugin which runs Apache Wink in the container. When deploying the plugin to an application built on Eclipse I get lots of warnings. I know the target Eclipse is already running another Jetty container for its own…
harschware
  • 13,006
  • 17
  • 55
  • 87
0
votes
3 answers

Can't Import User Libraries in Eclipse

I am trying to import the JAR files of the Apache-Wink-1.3.0. I downloaded the .zip file and extracted the content into a folder. In Eclipse I clicked Preferences - Java - Build Path - User Libraries - Import - Browse. Now I navigated into the…
Hasib Samad
  • 1,081
  • 1
  • 20
  • 39
0
votes
1 answer

@Value annotation not working with wink resource

I am trying to put my url in wink resource into the property file I have in spring. When I am trying to use spring @Value annotation to access that property, I am getting it as null. Wink says for using property in wink, we need to configure custom…
0
votes
1 answer

What is the best way to declare optional named path parameters in Apache Wink

What is the best way to define optional named parameters in a REST path using Apache Wink? Right now I am using something like this: /items{sep: (?)}{id: (.*)}") for matching requests such as: /items/123 /items/ /items so that I can capture a…
Florin
  • 528
  • 5
  • 14
0
votes
0 answers

apache wink getjson is not able to fetch json object

I wrote a simple RESTful web service with wink, where there is an interface returning JSONARRAY. And I can get the json by directly typing the address in the browser. Then, I developed a html page and used jquery's $.getJSON to call the web service,…
Sunny W.
  • 1
  • 1
0
votes
1 answer

Apache wink REST - IllegalArgumentException for a particular header

My rest service works fine if I give the authentication header. But the same is throwing 500 internal Service error when I add log-level=debug|info along with the authentication header. I don't know where it is failing. I'm getting only the below…
Raja Asthana
  • 2,080
  • 2
  • 19
  • 35
0
votes
1 answer

Unit testing Apache Wink REST service with MockServletInvocationTest

I use Apache Wink 1.2.1. I would like to unit test my REST service, and I'd rather doing it without using a RestClient. I haven't found any example, but after a lot of searching around I guessed that MockServletInvocationTest was the right starting…
MarcoS
  • 13,386
  • 7
  • 42
  • 63
1 2 3
8
9