cxf

Spring, CXF: Loose coupling between web service client and server

I have two webapps: a web-service client and a server (both CXF-based, using the Simple Front-End approach). This is the server definition: <simple:server id="server" bindingId="http://schemas.xmlsoap.org/soap/" address="/thingy" transportId="http://schemas.xmlsoap.org/soap/" serviceName="cs:thingyService" serviceClass="com...

What would cause SSL negotiations to succeed under .NET but fail under Java ?

We have to create a web service client using Apache CXF in Java. The thing is I cannot seem to get the SSL session to properly engage. Either it fails altogether, the server fails to decipher what is sent to it once the application data is transmitted or I fail to read the responses from the server. However when trying the same transa...

Within CXF, why use any other binding than JAXB? (MTOM attachments, Aegis, XMLBeans,...)

I have been playing around with Apache CXF, in particular the various data bindings it supports: JAXB (the default), MTOM, Aegis and XMLBeans. Since all of these are supported, I suppose each has its merits. I came up with these: Obviously, MTOM is to be preferred where large attachments are involved. JAXB depends on annotations, so it...

cxf interceptor problem in osgi exec environment

Dear all, Let me briefly introduce my environment: OSGi exec environment - equinox implementation, version org.eclipse.osgi_3.5.2.R35x_v20100126 Apache CXF - version 2.2.10 I'm trying to enable CXF interceptors to address security issues in my web services but I cannot get these in/out interceptors be called. Her...

cxf web services

Can anybody recommend good book for understanding good concept about cxf web services ...

Configuring JAX-WS over SSL through CXF

hey, I am having somewhat related issue only. Recently the external SOAP interface which were generating client for changed to https one. and I had an old code base at hand which was generating the java files through cxf and unsecured, http:// based wsdl. I chnaged the uri and on maven side everything works fine even the test pass. but w...

Java webservices: empty arrays

Hi, What is the right way to return empty arrays from webservices in Java? I need that empty arrays sholdn't be nulls on client. If I use Apache CXF or Axis 2 with default databinding I receive null insted of empty arrays. If I use CXF and AegisDatabinding -- problem is solved, but when I calling this webservice from Axis 2 client -- I ...

spring embeded jetty+cxf

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...

grails / groovy / cxf / jaxb - hibernate persisted entity marshalled as empty

Expecting grails domain object to be written to XML response: Image.groovy: @XmlRootElement @XmlAccessorType(XmlAccessType.NONE) class Image{ @XmlElement String url @XmlElement String contentType } WebServiceRequestHandler.groovy: @GET @Path("/myrestfullmethod/parameter1/{parameter1name} @Produces("text/xml") Images...

Sign and Encrypt SOAP Messages with Apache CXF

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...

Spring + CXF or Spring+Mule? Which one is better?

I want to expose some of the existing POJOs of my Spring Web application as Webservices with the help of JAX-WS annotations. I can do it in the following two ways Apache CXF Mule ( this internally uses CXF) I wanted to know which is preferable and why? ...

Web service using CXF, Jetty and Spring

I try to create simple web service with CXF, Jetty and Spring. I create service interface @WebService public interface AnonymousService { @WebMethod public String getVersion(); } and its implementation @Service("anonymousService") @WebService( serviceName = "AnonymousService", targetNamespace = "http://ws.test/", ...

Apache CXF - startup time

Hi, We are working on one of the application wherein Apache CXF, Spring is used to develop webservices. The application now contains more than 50 webservices and more than 300 spring managed beans. Every time the application server is started it takes more than 15-20 minutes. (server with 4gb ram, jboss/tomcat app server, linux os) Is t...

Calling an Apache Axis 1 web service from Apache CXF

Hi, I'm trying to call an Apache Axis 1 web service from a client using CXF but coming across this issue: http://stackoverflow.com/questions/412772/java-rpc-encoded-wsdls-are-not-supported-in-jaxws-2-0 Now although switching the client would solve this problem my client is running inside Osgi and axis1 doesn't play nice. My idea was ...

With CXF (actually GroovyWS), how do I generate a SOAP header with one child node having a text node?

I'm creating a Groovy client for a .net SOAP service that requires a soap header that looks like this: <soap:Header> <HeaderInfo xmlns="http://foo.bar.com/ns"&gt; <token>abc-unique-token</token> </HeaderInfo> </soap:Header> I found the faq for adding headers to CXF messages and it gets me almost there, but not quite. ...

Transfer large messaeges with Apache CXF

I'm writing a CXF WS to upload some large files - up to 1GB. In most cases they won't be >10-15MB, but the problem is that it is ineffective to load the file and send it as regular byte[] using the standard binding. For that reason a custom interceptor might be needed but I'm not sure it is the only option as well as how to write it. 10x...

How to tell Apache CXF to use java.util.Date in Spring Configuration

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...

Which maven2 artifacts are necessary to build a WS with CXF and Spring?

I'm trying to build a WS with Spring 3.0 and CXF. I'm following the steps of this article http://www.ibm.com/developerworks/library/ws-pojo-springcxf/ But in that article, the authors assume that you have cxf installed. I'd like to embed CXF in my .war. Thanks in advance. ...

Print XML content of SOAP message

I am using Apache CXF for my webservices. I've created an instance of AbstractSoapInterceptor. In its public void handleMessage(SoapMessage message) throws Fault method I would like to print the XML content of the intercepted message to the console. How can I achieve that? ...

How to build a WS with CXF and Spring?

I'm trying to build a WS with CXF. I'm following this article http://www.ibm.com/developerworks/library/ws-pojo-springcxf/ But I have 2 questions: 1) http://stackoverflow.com/questions/3969268/which-maven2-artifacts-are-necessary-to-build-a-ws-with-cxf-and-spring 2) I'm getting this error: FileNotFound: META-INF/cxf/cxf.xml. I don't ...