With CXF Rest, how do you specify filename (content-disposition):
@Produces("multipart/form-data")
@Multipart(value = "root", type = "application/octet-stream")
@GET
@Path("/file")
public File getFile(@QueryParam("") Query query);
...
I have an app that uses CXF as a SOAP client and Jersey to present REST services, with the Jersey classes managed by Spring. This works fine running in Tomcat; however when attempting to test with JerseyTest I get Spring conflicts; it appears JerseyTest doesn't shut-down the Spring context correctly.
The test initialisation for Jersey ...
Hi everybody,
I am building a system in Java/Groovy that involves dynamic invocation of Web services. I use JAX-WS to invoke a service with a WSDL 1.1 interface, but I could not find any helpful information about how one would go about to implement DII for WSDL 2.0 descriptions.
Could anyone of you point me in the right direction about...
I have a web service I'm exposing with CXF and I need to work directly with the XML passed in and then need to assign XML from an external source into the response. If I user Object as the parameters and return type I do get a DOM representation which I can work with. If I user Element however I'm informed I can't use it as there are n...
I am trying to generate the webservices client once i build my project on the fly .. It currently does so but put it in package named based on the namespace of the WS.. so lets assume the name space is google.com , the generated files would be in com.google ..
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactI...
I'm running embedded jetty inside of a spring ioc container. The spring ioc contains also an embedded hsqldb which makes the whole configuration a nice and complete web application development environment (on a single JVM). Now I'm trying to add apache CXF to this environment to make the jetty host not only servlets but also web services...
Hello,
I'm trying to write a "Secure Hello World" web service using Apache CXF also; I should note that I'm kind of new to Java and WS-* stuff.
Basically, what I want to do is a hello-world web service with soap messages to and from this web service signed and encrypted using x.509 certificate(s).
I have already read the tutorial on A...
I had a problem getting a VB.NET web service client to receive the response object from a Java web service. In the process of posting this question someone from another department volunteered some code written for a similar situation. I couldn't find this anywhere on the net so I'm completing my question to help others out.
Dim myServ...
Hi,
When I try to deploy my web service application in WL10 i get the following error.
java.lang.IllegalArgumentException: Unable to access unsupported property javax.xml.stream.supportDTD
I tried JBoss 4.0 and the same worked fine. Pls help.
Here is the trace of the complete exception thrown.
<[STANDBY] ExecuteThread: '3' for ...
I am Using CXF to host web services in a Spring context, which makes JAX-WS the default binding. And I'm using Java-First, which means annotated endpoint interfaces and classes.
Since default binding for JAX-WS uses XMLGregorianCalendar class for dates, when I call my web service passing a java.util.Date it is converted to XMLGregorianC...
Hi, is there a way to modify SoapBody message using Apache CXF ? I have tried to use Interceptors feature with Phase.SEND mode to try to add an xml schema with a result in SoapBody. I did not have any luck.
The issue was that I want to validate the result message with xml schema. The current output of the SoapBody sent a result messag...
I'm interested in using Apache's JAX-RS implementation (CXF) in a Tomcat environment. The documentation is pretty clear and straight forward about developing a RESTful service with JAX-RS/CXF. However, I'm not sure how to develop a JAX-RS service within the context of a Tomcat environment.
Does anyone know of a good tutorial on developi...