RESTful « cxf « Java Enterprise Q&A





1. @Path regex expression in RESTful server    stackoverflow.com

I'm writing a RESTful Java server with CXF framework. How do I can write a @Path Regular Expression in order to obtain any URI finished in "/action" value?

2. Upload to CXF restful web service    stackoverflow.com

I'm trying to implement apache commons fileupload in my cxf restful web service. For some reason, ServletFileUpload.isMultipartContent(...) always returns false; I've checked the content-type via: httpServletRequest.getContentType() and it returns multipart/form-data as ...

3. UTF-8 For Restful Services    stackoverflow.com

Currently i enable UTF-8 as @Consumes("application/xml;charset=utf-8") in the RESTful Services for the different methods. I am interested to see if we can change this for all REST services with a single ...

4. Is it possible to use MTOM in reponse of CXF RESTful Web Service    stackoverflow.com

I'm using CXF 2.2.12 library for my Web Services. Is it possible to use MTOM (Message Transmission Optimization Mechanism) in RESTful response? Would appreciate any links to docs/tutorials regarding this. Thanx!

5. How can I pass complex objects as arguments to a RESTful service?    stackoverflow.com

I have successfully set up a quick test of creating a "REST-like" service that returns an object serialized to JSON, and that was quite easy and quick (based on

6. CXF Restful service complex object unmarshalling does not work    stackoverflow.com

I am new at restful services, and had a relatively good start, until I decided to play with some complex objects. The problem I am hitting is about unmarshalling an object ...

7. RESTful produces binary file    stackoverflow.com

I'm new using CXF and Spring to make RESTful webservices. This is my problem: I want to create a service that produces "any" kind of file(can be image,document,txt or even pdf), and ...

8. Is Jersey just a framework for developing RESTful web services in Java?    stackoverflow.com

The way I understand it is Java EE 6 includes the classes for java.ws.rs (JAX-RS) which are defined in the JSR 311 spec document. But I don't know why you would ...

9. Java CXF restful webservices    stackoverflow.com

My webservice class is as following:

package com.siemens.rest;
import java.io.ByteArrayInputStream;
import java.math.BigDecimal;

import javax.annotation.Resource;
import javax.servlet.ServletRequest;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Source;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamSource;
import javax.xml.ws.BindingType;
import javax.xml.ws.Provider;
import javax.xml.ws.WebServiceContext;
import javax.xml.ws.WebServiceProvider;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.http.HTTPBinding;
import javax.xml.ws.http.HTTPException;

import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;

@WebServiceProvider
@BindingType(value = HTTPBinding.HTTP_BINDING)
public class ConverterService implements ...





10. Increasing the number of instances for RESTful CXF service    stackoverflow.com

Is there a way to increase the number of Restful CXF service instance? This is required in order to increase the performance of my service in the event when multiple ...

11. Accessing the GET parameters of a URL in a RESTful service using Apache CXF REST HTTP binding    coderanch.com

Hi, I am using the example provided in Apache CXF 2.3.3 whereby a service interface and implementation are defined to have the following method: @Get @HttpResource(location = "/customers/{id}") Customer getCustomer(@WebParam(name = "GetCustomer") GetCustomer getCustomer); I was wondering how I could access the get parameters that might be sent in the implementation of the method? Is there a standardized, clean way, of ...