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
2 answers

Using Spring with WebSphere 8.5.5 and Apache Wink - ClassNotFoundException

I'm currently migrating a Java app using Wink 1.1.1 and Spring 3.1.2 from WAS 7 to WAS 8.5.5. I'm trying to use the native Wink-integration that is available in WAS 8.5 instead of using the separate Wink jars we currently have now with WAS 7. I'm…
risingTide
  • 1,754
  • 7
  • 31
  • 60
1
vote
1 answer

Using Spring with WebSphere 8.5.5 and Apache Wink - web.xml error on server startup

I'm currently migrating a Java app using Wink 1.1.1 and Spring 3.1.2 from WAS 7 to WAS 8.5.5. I'm trying to use the native Wink-integration that is available in WAS 8.5 instead of using the separate Wink jars we currently have now with WAS 7. I'm…
risingTide
  • 1,754
  • 7
  • 31
  • 60
1
vote
1 answer

error invoking RESTful webservice on WebSphere 8.5.5.2 server

I have deployed the RESTful application using Apache Wink packaged in EAR on WebSphere 8.5.5.2 ND. When the application starts it gives me the "Initialization successful" message: [5/14/15 15:56:03:588 CDT] 0000006d RestServlet I…
Prerak Tiwari
  • 3,436
  • 4
  • 34
  • 64
1
vote
1 answer

Getting a 500 NullPointerException in Websphere - Apache Wink Rest services

I'm calling this in websphere 8.5 @GET @Path("/test") @Produces("application/json") public dtObject tester() { dtObject r = new dtObject(); r.successfulOperation(); return r; } the dtObject…
Aloxi
  • 85
  • 2
  • 8
1
vote
1 answer

Mock RESTful (JAX-RS) resource class with Mockito

If i need to mock RESTful resource class and the facade method as below, the facade won't be mocked. e.g., @Path("/v1/stocks") public class StockResource { @GET @Path("/{stockid}") @Produces({ MediaType.APPLICATION_JSON }) public Response…
user3587174
  • 661
  • 3
  • 8
  • 13
1
vote
2 answers

ClassNotFoundException: com.ibm.ejs.ras.hpel.HpelHelper in JUnit test (with thinclient)

I have JUnit test (some would call that 'integration test) that test the REST service for file upload/download. I'm using Apache WINK from standart Websphere 8.5 libraries: ClientConfig config = new ClientConfig(); LtpaAuthSecurityHandler secHandler…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
1
vote
1 answer

Websphere REST upload - don't load the uploaded file into memory

I've configured the REST channel for file upload according to IBM article http://www-01.ibm.com/support/knowledgecenter/SS7K4U_7.0.0/com.ibm.websphere.web2mobile.mobile.application.services.help/docs/fileuploader_README.html?cp=SS7K4U_7.0.0%2F8-13-3…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
1
vote
1 answer

Apache Wink integration with Swagger

I am trying to use Swagger in the existing Wink restful web services. I have done all the annotations as mentioned in the swagger documentation but now I need to integrate the rest of the stuff. E.g. configuring the swagger UI, setting up the…
Sameer Malhotra
  • 424
  • 3
  • 12
  • 29
1
vote
1 answer

How to "Preview" a request in the Apache Wink Client

Using the Apache Wink Client, is there a standard way to see what Request would be sent from an invoke() operation? I can build it from the Resource object, but I was wondering if there is a utility or standard way for achieving this, to see a…
rogodeter
  • 460
  • 9
  • 19
1
vote
1 answer

Integrating Wink and Spring in Tomcat

I am attempting to access a Wink Resource that should be deployed in tomcat. The Resource code is @Path("/lookup") public class LookupResource { private static final Logger logger = LoggerFactory.getLogger(LookupResource.class); private…
1
vote
1 answer

Wink : how to use spring life cycle management?

I have a Wink application with some resources, on which I'd like to make some dependency injection of Spring beans. I defined my resource as bean following the example located here http://wink.apache.org/1.0/html/5.5%20Spring%20Integration.html, and…
1
vote
0 answers

REST multipart/form-data & application/x-www-form-urlencoded not working properly

I'm using Apache wink for my RESful services. I have two methods like below, @POST @Produces("multipart/mixed") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public BufferedOutMultiPart dummyMethod(@Context HttpServletRequest…
Raja Asthana
  • 2,080
  • 2
  • 19
  • 35
1
vote
0 answers

Apache Wink 1.4 JAX-RS servlet mapping issue

To replace my existing Struts application with JAX-RS, I need to support the servlet extension mapping (*.do). So, I registered Apache JAX-RS servlet as follow: jaxrs_wink
1
vote
1 answer

Inspect HTTP requests made by Apache Wink client

I'm using Apache Wink to access a service, and trying to debug a problem where the server apparently does not recieve my request in the intended format (details below, but are probably immaterial). Is there a way I can make the Wink client to log…
Pradyumna
  • 1,583
  • 4
  • 19
  • 34
1
vote
1 answer

JSON JAX-RS channel: Failed to find resource /HtmlDefaultRepresentation/defaultHtmlEntry.jsp

I have JAX-RS JSON channel: @Path("/data") public class DataChannel { @GET @Produces(MediaType.APPLICATION_JSON) public Response getGridData(@HeaderParam("Range") String rangeHeader) { The problem is that (usually) on first call I got the…
Web Devie
  • 1,207
  • 1
  • 13
  • 30
1 2 3
8 9