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
1
vote
0 answers

File upload using Apache wink REST service

I want to upload file using REST Service in Apache wink. I am using HTTP client. org.apache.wink.client.ClientConfig clientConfig = new org.apache.wink.client.ClientConfig(); javax.ws.rs.core.Application app = new javax.ws.rs.core.Application()…
Ankit
  • 157
  • 1
  • 3
  • 18
1
vote
2 answers

HttpServletRequest is not visible from class loader

I'm trying to run Apache Wink in OSGI and using Felix Whiteboard register resources as services. In a minimalist OSGI environment the bundle works as expected. But, then I moved the bundle into an Eclipse Equinox environment where I am developing…
harschware
  • 13,006
  • 17
  • 55
  • 87
1
vote
1 answer

How to use post method instead of get to realize restful downloading service

I am writing a service to return a xls file by using the json passed to my service. I am using JAX-RS and WINk. Since the json passed to my service is too complex to be a @QueryParam in the url, so I want to use @POST method instead of @GET. The…
doranT
  • 167
  • 3
  • 11
1
vote
1 answer

Apache Wink Client - Test a REST service using form auth

I am trying to use the Wink RestClient to do functional testing on a Rest service endpoint. I use mocks for unit testing but I'd like to functionally test it as an endpoint consumer. I understand some will object to me calling it a REST endpoint…
rogodeter
  • 460
  • 9
  • 19
1
vote
0 answers

Jax-rs (Wink) multiple GET methods throwing 404 or 405

I found something similar here but not the same as my problem. I am building an Apache Wink application and I have a resource class like this.. @Path("/things") @Produces(MediaType.APPLICATION_JSON + ";charset=UTF-8") public class ThingResource…
rogodeter
  • 460
  • 9
  • 19
1
vote
0 answers

attribute added to MessageContext in request don't show up in exception chain

I have a custom RequestHandler where I do some logic, and then add an attribute to the MessageContext so that I can retrieve it in all my Resources (via the @Context annotation). This works great. On the response, I need to access this same…
qali
  • 67
  • 1
  • 3
1
vote
1 answer

How do I turn debug logging on for Wink classes in an Apache Wink web service?

I have a web service built on Apache Wink (1.1.3), running under Tomcat, started from Eclipse for debugging. How do I turn full logging on for some Wink classes? For a start, I just tried turning it on for all of Wink with these lines in the…
1
vote
2 answers

Can Apache Wink ignore unprintable xml characters?

My application supports REST API using Wink and a JAXB provider built in to the JDK (1.6). Sometimes I receive PUT requests that contain control characters. As far as my application is concerned, the control characters constitute a valid and…
Vitaliy
  • 8,044
  • 7
  • 38
  • 66
1
vote
1 answer

IBM JAX-RS 1.1 handling Dojo Ajax OPTIONS request

I am currently experimenting with IBM JAX-RS capability through WAS 7 and Web 2.0 Feature Pack 1.1.0.0. The problem I am running into is the client Dojo ajax call poses CORS situation and I am basically trying to figure out how I could properly…
JustGFW
  • 11
  • 1
1
vote
2 answers

RuntimeException: MessageBodyReader implementation was not found for BufferedInMultiPart in JAX RS

Im getting the following RuntimeException when trying to make JAX RS call of multipart. java.lang.RuntimeException: A javax.ws.rs.ext.MessageBodyReader implementation was not found for class…
shaunthomas999
  • 5,544
  • 2
  • 26
  • 30
1
vote
2 answers

How to return XHTML output from Apache Wink using a JSP?

I've so far been successful in setting up a basic web service using Apache Wink. This includes returning Atom, JSON, HTML, XHTML, XML, and plaintext media types, as per the samples provided. I've also been able to successfully use a…
Ichiro Furusato
  • 620
  • 6
  • 12
1
vote
2 answers

@FormParam truncated for embedded ' in content Apache Wink

I admit we are doing something silly by using a url encoded form to send an XML document in a single variable (linefeeds converted to spaces, and content escaped), but this is to accommodate a client that can only send form data. When one of the…
Nathaniel Mills
  • 321
  • 4
  • 7
0
votes
2 answers

@FormParam only receives empty list/array (Apache Wink)

I'm using Apache Wink for implementing REST Services and I can't seem to receive parameters of type array or List. The call is being made from ajax $.post: $.post(url, { param: ['string1', 'param2', 'x', 'etc...etc....etc'], str2:…
user1292542
  • 1
  • 1
  • 1
0
votes
1 answer

Apache Wink Request Handler

I am working to try and incorporate Amber into Wink for Oauth and running into an error on the custom Handler. I have created a HandlerFactory, RequestHandler, and added the wink-properities.properties configuration as well as modified the web.xml…
ccomstock
  • 3
  • 2
0
votes
1 answer

what's wrong with my simple JSON JAX-RS web service?

I have a simple web service written with Apache Wink 1.0, I want to receive and return JSON data. According the Wink docs, this should work ... @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public JSONObject…
user550738
1 2 3
8 9