tutorials for RESTful service CFX

2011-02-08 Thread Siva
Dear all, I’m comfortable with java(I work in .Net) but I’m new to Apache CXF. I’m looking at developing RESTful services in CFX and expose it over https. Can you point me to some basic tutorials on developing a RESTful service from scratch in CFX and expose it over https? Thanks i

ClassCast Exception with dosgi/iPOJO

2011-02-08 Thread Pierre-Henry Perret
Hello, I have encountered a problem while importing , with a tag , a remote web service. The importer registers the service locally: _ INFO: Notified - AVAILABLE: [org.energetic.webservices.bd.HardwareMonitor] endpoint id: 22eabd55-809a-41f6-a138-b5fad6853d58

Re: Serialize Custom Class with CXF via Reflection (or similar)

2011-02-08 Thread Sergey Beryozkin
Hi Tim sorry for a delay...please see comments below On Tue, Feb 8, 2011 at 3:57 PM, Tim Clotworthy < tclotwor...@integratedsecure.com> wrote: > Sorry for sending again, I thought the pseudo code was a little garbled in > the last message... > > -Original Message- > From: Tim Clotworthy

Re: Capturing CXF Exceptions

2011-02-08 Thread Andrew
Yeah, it does get handled by the container. Here's the result of my test (condensed): 2011-02-08 11:13:41,702 [http-8080-2] WARN org.apache.cxf.phase.PhaseInterceptorChain[369] - Application { http://controller.foo.com/}CommandResourceImpl has thrown exception, unwinding now org.apache.cxf.interc

JAX-WS One endpoint, multiple ports?

2011-02-08 Thread Marcos Díez Fernández
Hi, is it possible to setup a jax-ws endpoint so that it implements multiple port interfaces? Something like: public class MockServiceImpl implements Service1Port, Service2Port,..., ServiceNPort { ... } In other words, how could I unify all the SEIs' services implementations to

Load distribution and failover

2011-02-08 Thread Jim Talbut
Hi, I want to have both load distribution (random or round robin) and failover for my CXF clients. And I want them to work with multiple DNS entries (i.e. round robin DNS). I wrote a RoundRobinDnsFailoverStrategy, but I can't see any way that the failover configuration will change the condui

RE: Serialize Custom Class with CXF via Reflection (or similar)

2011-02-08 Thread Tim Clotworthy
Sorry for sending again, I thought the pseudo code was a little garbled in the last message... -Original Message- From: Tim Clotworthy Sent: Tuesday, February 08, 2011 10:50 AM To: 'users@cxf.apache.org' Subject: RE: Serialize Custom Class with CXF via Reflection (or similar) Thanks so

RE: Serialize Custom Class with CXF via Reflection (or similar)

2011-02-08 Thread Tim Clotworthy
Thanks so much for the response. Maybe I should describe it from the perspective of a library user. Currently, the user is given a library that, given a particular consumer request, is returned a fixed-formatted response (in the form of some flavor of streamed XML-based structure). It is a fixed

RE: IllegalStateException - start tag has already been written

2011-02-08 Thread MARTELLI Julien
Based on this JIRA: http://servicemix.396122.n5.nabble.com/jira-Created-SMXCOMP-790-IllegalStateException-Deploying-CXF-SE-Service-Unit-with-JAX-WS-Binding-Fils-td2644172.html I tried to add jaxb-xjc 2.1.3 and jaxb-impl 2.1.3 as dependencies for the cxf-codegen-plugin and it actually worked... I

Re: JaxWsDynamicClientFactory and MTOM

2011-02-08 Thread jmorgan
I've figured it out, just had to do the following: JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance(); Client client = dcf.createClient(); client.getRequestContext().put("mtom-enabled", Boolean.TRUE); Cheers, Jon. -- View this message in context: http://cxf.547215.n5.na

RE: IllegalStateException - start tag has already been written

2011-02-08 Thread MARTELLI Julien
Opening a JIRA for this is a good idea but the problem is that I have plenty of generated classes (the jar is >2000k) and I cannot reproduce the problem with another WSDL and schema... It's somehow very specific to the WSDL and schemas I use. What do you think? Do you think I can send my exampl

JaxWsDynamicClientFactory and MTOM

2011-02-08 Thread jmorgan
Hi All, I have a slight issue with enabling MTOM on a dynamic client using JaxWsDynamicClientFactory. From what I've read in the docs, I can see that the client needs to "Cast the client's proxy to a BindingProvider object". My question is, how do I get the proxy object from a dynamic client?

Re: Problem with AbstractUsernameTokenInInterceptor

2011-02-08 Thread Sergey Beryozkin
Hi Anand - great you made it working. This configuration probably means you have PolicyBasedWSS4JInInterceptor & UsernameTokenInterceptor involved but it works because a DOM-based SOAPMessage is used, just guessing. You'd not need to explicitly register PolicyBasedWSS4JInInterceptor in 2.3.3... ch

Re: Problem with AbstractUsernameTokenInInterceptor

2011-02-08 Thread Anand R
Thanks Sergey. Tentatively, I got it working with 2.3.2 by making my config as follows. The problem was that the PolicyBasedWSS4JInInterceptor had to be explicitly specified in the config. Unless specified, this wasn't getting included in the interceptor chain.

Re: Problem with AbstractUsernameTokenInInterceptor

2011-02-08 Thread Sergey Beryozkin
I've fixed this issue for 2.3.3 & 2.4. Note that on 2.4-SNAPSHOT only this "ws-security.ut.no-callbacks" has been renamed to a better "ws-security.validate.token" name. Colm is doing some nice refactoring on his branch and the "ws-security.ut.no-callbacks=true" line in the configuration would rea

Re: Serialize Custom Class with CXF via Reflection (or similar)

2011-02-08 Thread Sergey Beryozkin
Hi On Tue, Feb 8, 2011 at 2:40 AM, Tim Clotworthy < tclotwor...@integratedsecure.com> wrote: > Hello, > I am involved with a project now where we are trying to provide a (JAX-RS) > web services library that allows implementers to write their own classes for > customizing the format of a web servi