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
2
votes
1 answer

how to post JSON data to web service using Apache Wink RestClient?

I'm trying to test a JAX-RS by doing a POST of JSON data from Java. I'm using Apache Wink 1.0, and the Apache Wink RestClient. The docs say this is how you do a POST ... RestClient client = new RestClient(); Resource resource =…
user550738
2
votes
1 answer

Can Apache Wink be used for Android?

I am working with REST services in Android. Is it possible to use Apache Wink for implementing REST in Android?
DroidGirl
  • 231
  • 1
  • 2
  • 8
2
votes
5 answers

Jersey or Wink on WebSphere

We are looking at which REST framework to use and where to run it. Given an existing WebSphere (6.1.0.17) environment would you use Jersey of Wink? Or would you recommend a different platform?
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
2
votes
1 answer

Should I stick to axis2c or move to apache wink?

We have a webservice built in Axis2/c in which the methods in turn calls an in-house application on the server. Since Axis2/c was widely accepted to be good as far as performance and stability was concerned, we were sticking to it. But now we're…
Sivakumar Kailasam
  • 452
  • 3
  • 6
  • 20
2
votes
1 answer

How to deal with urls having multiple @PathParam for RESTful calls in Moqui

While writing RESTful API calls, I got some urls which takes multiple path parameters. e.g. www.mydomain.com/exam/{examId}/subject/{subjectId}/section/{sectionId}/questions Now, If I use any JAX-RS implementation (like Apache Wink) It is quite…
2
votes
0 answers

Log REST request using org.apache.wink RequestHandler

I have a requirement to log the REST request and response messages, so I have used apache wing RequestHandler. And I am able to get the response using the ResponseHandler. But unable to get the Request details in Handler Class. Could you please help…
kattoor
  • 195
  • 14
2
votes
0 answers

Upload multipart/form-data file using apache wink client

Getting JAX-RS entity provider does not currently exist. exception when I tried to upload a file.. How could I register any missed provider? What is the best approach to upload a file using Apache Wink client and media type is multipart/form-data. …
2
votes
1 answer

Why doesn't UriInfo.getQueryParameters() decode '+'?

I know I can work around this, but it seems very strange that the behaviour is different if you use an annotated query parameter, compared with pulling the parameter out of the parameter map (which should be decoded according to the javadoc). Is…
idlewis
  • 130
  • 2
  • 8
2
votes
1 answer

how can I return asynchronous response by using apache wink?

I'm using Apache Wink to construct restful services. And analysis() is one of my RESTful services, the code of analysis() is as follows: public Response analysis(@Context HttpServletRequest req) { JSONObject conf = new JSONObject(); try{ …
Duo Tsai
  • 23
  • 4
2
votes
1 answer

How to setup Apache Wink Client keystore and truststore

How do I set a client side keystore and truststore in an Apache Wink Client I cannot find any documentation on how to do it. http://wink.apache.org/documentation/1.2.1/Apache_Wink_User_Guide.pdf
DarVar
  • 16,882
  • 29
  • 97
  • 146
2
votes
2 answers

Apache Wink connect to https resources

I send a request to an external resource, which is located in a cloud (I can't put certificates to JVM) from Apache Wink web service and I know that when I try to make a request from the browser, I get a correct answer. String serviceURL =…
Ray
  • 1,788
  • 7
  • 55
  • 92
2
votes
2 answers

Apache Wink Json REST Web Service

How can I make Apache Wink to return something like { Message: "Hello World!" } I have the following code: @Asset public class Hello { protected String message; public Hello() { } @Produces(MediaType.APPLICATION_JSON) public…
Emilian
  • 497
  • 8
  • 17
2
votes
1 answer

Apache Wink resource lifecycle

I'd like to know what the expected lifecycle behavior is for a class that responds to REST requests. I have a class that's derived from javax.ws.rs.core.Application that identifies another class for responding to requests. In that other class, it is…
2
votes
1 answer

JAX-RS - Wink - Correct way to read a file, using Wink Client

Related to this question which is about how to send a binary file to a client. I am doing this, actually my method @Produces("application/zip"), and it works well for the browser client. Now I'm trying to write some automated tests against the…
rogodeter
  • 460
  • 9
  • 19
2
votes
0 answers

RESTful deployment error

I am trying to deploy RESTful webservice on Apache Tomcat build using Apache Wink in ECLIPSE IDE. I am getting below error while trying to run my app on server: Feb 02, 2013 8:47:04 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR…
1
2
3
8 9