issues with running dynamic client tests using mvn surefire plugin

2009-04-07 Thread Arulazi Dhesiaseelan
I am getting the following exception when running a simple CXF 2.1.4 dynamic client test using maven surefire plugin. The strange thing is, this test works fine if I run it standalone. Any clues why this fails when run using surefire? public void testWsdl2Java() throws Exception { Jax

Re: JAXBSource wrong marshalling

2009-04-07 Thread Daniel Kulp
Can you try with the latest snapshots? I think I fixed the attribute thing last week. I'd like to double check that. Dan On Tue April 7 2009 5:02:30 am Valerio Angelini wrote: > Hello, > > I'm using CXF through the JAX-WS Provider interface. I set the > parametric parameter of the interfac

RE: java.io.File MessageBodyReader for JAX-RS

2009-04-07 Thread Sergey Beryozkin
Hi I checked, it supports it on the output only, when File is returned. I need to verify if File has to be supported on the input - probably yes... in which case we'd need to copy the input stream to some temp storage... Using InputStream is another option as a temp measure till I fix using File o

ClassCastException migrating from 2.0.8 to 2.2

2009-04-07 Thread Nick Heudecker
I'm encountering the following exception at application startup following an attempt to upgrade from 2.0.8 to 2.2: 2009-04-07 11:49:58.221::WARN: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class pat

RE: When does 2.2 need wss4j?

2009-04-07 Thread John Hite
Here's the jira. Sorry for taking a while to get to it. It's been a crazy week. https://issues.apache.org/jira/browse/CXF-2162 Thanks, John -Original Message- From: Daniel Kulp [mailto:dk...@apache.org] Sent: Friday, April 03, 2009 5:21 PM To: users@cxf.apache.org Cc: John Hite Subject

java.io.File MessageBodyReader for JAX-RS

2009-04-07 Thread adam.galloway
In reading the documentation for JAX-RS it says "By default, CXF supports String, byte[], InputStream, Reader, File ...". I'm trying to create a service that will accept a file upload using the following signature: @POST @Path("/upload/") @Consumes("application/octet-stream") public Response up

No binding factory for namespace http://schemas.xmlsoap.org/soap/ registered

2009-04-07 Thread John Hite
I'm trying to use the smaller cxf modules in my project and I'm running into a problem. I keep getting the attached exception. I am including the following modules; modules/cxf-api-2.2.jar modules/cxf-rt-core-2.2.jar modules/cxf-common-utilities-2.2.jar modules/cxf-rt-bindings-soap-2.2.jar modul

Re: Query about From header in CXF

2009-04-07 Thread Andrew Dinn
Eoghan Glynn wrote: I guess the only justification for not decoding the is that we don't use it internally in the CXF dispatch logic. But I guess applications or custom interceptors may be interested in this header, so we should really decode it. Yes indeed. For example, the WS-AT spec (which

Re: RESTful HTTP Binding Demo : 500 Internal Server Error

2009-04-07 Thread Sergey Beryozkin
Hi, CXF HTTP Binding described at http://cwiki.apache.org/CXF20DOC/http-binding.html has been deprecated but we need to update the docs to make it clearer. JAXRS implementation described at http://cwiki.apache.org/CXF20DOC/jax-rs.html is what we're working upon now. There're few basic demos in

RESTful HTTP Binding Demo : 500 Internal Server Error

2009-04-07 Thread Raphael F.
Hi everybody. I'm a French new user of Apache CXF. I've tried the RESTful HTTP Binding Demo published with CXF package, described at these pages : http://cwiki.apache.org/CXF20DOC/http-binding.html http://cwiki.apache.org/CXF20DOC/jax-rs.html The example is located at this repertory: ./apache-cx

Re: How to add Stylesheet to XML returned from server?

2009-04-07 Thread Sergey Beryozkin
Hi Chris it's great :-) that code though may get a bit brittle if other XML-aware providers are registered/found. I do like the idea of updating teh JAXBElementProvider to check the injected context for well-known marshaller properties such that the only thing you do is to message.put(XML_HEAD

Re: How to add Stylesheet to XML returned from server?

2009-04-07 Thread Chris Marshall
Many thanks Sergey, that helped hugely! Attached is my (skeletal) code which may help other beginners like myself. Please point out obvious errors. import java.util.HashMap; import java.util.Map; import javax.ws.rs.core.MediaType; import org.apache.cxf.jaxrs.model.OperationResourceInfo; import

Re: WS-Security with SSL: Http error 415

2009-04-07 Thread Ian Homer
Jose, Not sure I understand when you say the WSDL specifies soap12, but the server only supports soap11. If the WSDL specifies soap12 then I'd hope the server would support soap12. If you want to pick up different soap endpoints in the WSDL we did it in GroovyWS in this way ... pro

Re: How to add Stylesheet to XML returned from server?

2009-04-07 Thread Sergey Beryozkin
Hi Chris I just sent you the other email... May be what you find unnatural about this code is that is's not XML-centric, something similar to using regular expressions for transforming XML :-). cheers, Sergey - Original Message - From: "Chris Marshall" To: Sent: Tuesday, April 07,

Re: How to add Stylesheet to XML returned from server?

2009-04-07 Thread Sergey Beryozkin
Hi, You can set up a JAXRS endpoint like this : JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean(); factory.setResourceClasses(myService.class); JAXBElementProvider provider = new JAXBElementProvider(); p.setMarshallerProperties(properties); factory.setProviders(provider); factory.cre

RE: WS-Security with SSL: Http error 415

2009-04-07 Thread Rodriguez , José
Hi Ian, Thanks so much. The problem is that the service WSDL specifies soap12 but the server only supports soap 1.1 requests. SoapUI was using SOAP 1.1. When I changed it to 1.2 I had the same error. Is there a way to force the cxf client to use soap 1.1 without changing the wsdl file? I have

Re: How to add Stylesheet to XML returned from server?

2009-04-07 Thread Chris Marshall
Hi SergeyTo clarify my earlier post I can achieve the result I want via an interceptor with the following code: public void handleMessage(Message message) { try { OutputStream os = message.getContent(OutputStream.class); byte[] b = "".getBytes(); os.write(b); message.setContent(OutputStream.class,

Re: Continuations and thread safety

2009-04-07 Thread Sergey Beryozkin
Hi Hi there, I'm starting to use Continuations in my code... I'm presuming that they're all nicely working. ;-) thanks for experimenting and hope they'll work nicely for you. I noticed the following code on Sergey's blog: Continuation c = provider.getContinuation(); synchronized (c) {

Re: WS-Security with SSL: Http error 415

2009-04-07 Thread Ian Homer
You might be sending a SOAP 1.1 request to a SOAP 1.2 port. I've seen a 415 thrown from WCF for this reason. 415 essentially means an unsupported media type - http://www.w3.org/2000/xp/Group/2/03/11/soap-1.2-conformance.html#http-415 Cheers, Ian On 7 Apr 2009, at 11:09, Rodriguez, José wr

Re: Maven module description

2009-04-07 Thread Marc Logemann
Hi Daniel, thx for pointing out. Will exclude the catalog stuff as soon as i upgrade to 2.2.1. And i also wondered why mail is there :) Perhaps i will exclude this too. BTW i just read about the JAX-RS api in CXF and that i can simply expose services with jax-ws AND jax-rs. Thats nice! As a

WS-Security with SSL: Http error 415

2009-04-07 Thread Rodriguez , José
Hi, I have a cxf 2.0.10 client and I try to use a service with WS-Security and SSL. The service is based on the Microsoft implementation. It works just fine with soapUI but using CXF I have the following exception: 7 avr. 2009 11:33:58 org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO

SOAP with arrays and inheritance

2009-04-07 Thread Frederic Soulier
Hi I've got an issue with arrays and inheritance using remote services. Note that I've got a remote service working over 6 different protocols using the Spring remoting stuff. These protocols are: RMI, JMX, Hessian, Burlap, SOAP (CXF 2.2) and HttpInvoker. Model objects: public class Order i

Re: How to add Stylesheet to XML returned from server?

2009-04-07 Thread Chris Marshall
Thanks - using JAXRSOutInterceptor was part of my experimentation ;-)I am still battling to find out how to set marshaller properties programmatically. My ultimate goal is to set the xsl stylesheet depending on runtime data. Thanks for your patience. Regards Chris 2009/4/6 Sergey Beryozkin > Hi,

JAXBSource wrong marshalling

2009-04-07 Thread Valerio Angelini
Hello, I'm using CXF through the JAX-WS Provider interface. I set the parametric parameter of the interface to javax.xml.transform.Source. The XML results of marshalling a DOMSource or a JAXBSource are different: in particular some attrubute names marshalled with JAXBSource are wrong. T

CXF 2.2 problem with SSL (*.http-conduit)

2009-04-07 Thread Tính Trương Xuân
Hello everyone, I use Spring 2.5.6 with CXF 2.2 create web services with Tomcat 6.0.18. Everything is fine with HTTP, but with HTTPS, there are a lot of problems. I've configured Tomcat to serve request with SSL like this: I can access the WSDL with Firefox just fine (after adding my serve