Re: Why is the default 'accept' for WebClient text/xml

2011-11-28 Thread douglassparker
If a server method is annotated with @Produces( {MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML} ) and the client does not provide an Accept Header, my understanding is that the response MIME type should default to the FIRST Mime type listed, JSON in this case. (I believe Jersey works like

Re: Cxf maven plugin on m2e indigo

2011-11-28 Thread Henri Tremblay
Really? Nobody? I've seen some attempt but it seems none were successful. Is it planned somewhere in the cxf roadmap? On 25 November 2011 14:15, Henri Tremblay wrote: > Has anybody managed to have the cxf codegen plugin working on indigo with > m2e? > > Thanks > - > Henri > > Envoyé par téléphon

Re: mbean for service url

2011-11-28 Thread fachhoch
In other words can I use an mbean (managed bean jmx) , this bean will provide web service URL in a web service client decalration? Using an mean I want to change the service URL at run time, please advice me? -- View this message in context: http://cxf.547215.n5.nabble.com/mbean-for-service-url-

Re: Forcing a reply to a REST-ful service before the return

2011-11-28 Thread Benson Margulies
On Mon, Nov 28, 2011 at 9:22 AM, Sergey Beryozkin wrote: > Hi Benson > On 27/11/11 14:38, Benson Margulies wrote: >> >> I have a REST endpoint which, in some cases, reboots itself. (The >> overall system uses a Tanuki JSW launcher, and it calls System.exit to >> ask for a restart). >> >> It would

Re: CXFNonSpringJaxrsServlet failing with "Can't find the the request for ... Observer"

2011-11-28 Thread Sergey Beryozkin
Hi Paul Please see the comments below On 28/11/11 19:17, Paul Lowry wrote: Hi, I am trying to run a JAX-RS service in Tomcat, so I use CXFNonSpringJaxrsServlet. I test it by starting a Jetty server (using org.mortbay.jetty:jetty-maven-plugin, which starts the jetty server at http://localho

Re: Running CXF REST services in OSGi

2011-11-28 Thread Sergey Beryozkin
Hi On 28/11/11 18:27, Guy Pardon wrote: Hi, I am trying to get a REST service deployed in OSGi (Felix). To do so, I tried embedding all depedencies as jars into my bundle, including CXF. However, this fails upon start, saying: org.springframework.beans.factory.parsing.BeanDefinitionParsingExc

mbean for service url

2011-11-28 Thread fachhoch
I am using cxf for my web service client. Our service providers may change the service url anytime and I would like to use mbean to change the url for the service. is it possible to use mbean in cxf client configuration ? here is my configration using spring -- View this message in con

CXFNonSpringJaxrsServlet failing with "Can't find the the request for ... Observer"

2011-11-28 Thread Paul Lowry
Hi, I am trying to run a JAX-RS service in Tomcat, so I use CXFNonSpringJaxrsServlet. I test it by starting a Jetty server (using org.mortbay.jetty:jetty-maven-plugin, which starts the jetty server at http://localhost:8080/test) and running a test class which sends GETs, with the following re

Running CXF REST services in OSGi

2011-11-28 Thread Guy Pardon
Hi, I am trying to get a REST service deployed in OSGi (Felix). To do so, I tried embedding all depedencies as jars into my bundle, including CXF. However, this fails upon start, saying: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to

Re: Deploy CXF ejb-jar/ear in Glassfish

2011-11-28 Thread Bernhard Thalmayr
There's no chance to get similar behaviour for an enteprise archive as the classloader will always detelaget Have to tried to place the CXF-jars into lib/ext? -Bernhard On Mon, Nov 28, 2011 at 5:48 PM, sdoca sdoca wrote: > Hi, > > I need to deploy an ear which contains an ejb-jar into Glassfis

Re: Can I use a SessionID from a Cookie for authentication?

2011-11-28 Thread Colm O hEigeartaigh
Hi Jan, I'm not sure if this will be any help, but you could take a look at the ReceivedTokenCallbackHandler here: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/delegation/ReceivedTokenCallbackHandler.java?view=markup This is used to insert

Deploy CXF ejb-jar/ear in Glassfish

2011-11-28 Thread sdoca sdoca
Hi, I need to deploy an ear which contains an ejb-jar into Glassfish 3.1 that uses CXF.  I know that if I was deploying a war file I would need to include a glassfish-web.xml file which includes the following:                 I am guessing I need to do something similar for an ear, bu

Re: [WS Security] Why cannot use multiple private keys for signing with multiple clients

2011-11-28 Thread Colm O hEigeartaigh
Hi, There is currently no support for this functionality in WSS4J. If you want to contribute a patch for this feature I'll take a look. Colm. On Sat, Nov 26, 2011 at 1:14 PM, thong102vn wrote: > Hi all, > > I have a question, for signature action in ws-security of wss4j, that is > there a featu

Re: DOSGi: service removal not notified

2011-11-28 Thread David Bosschaert
Hi David, This is not expected behaviour. It sounds like a plain bug to me. Could you please file a JIRA? https://issues.apache.org/jira/browse/DOSGI Best regards, David On 28 November 2011 09:57, David Feliot wrote: > Hi, > > DOSGi TopologyManager doesn't seem to notify the EndpointListeners

Can I use a SessionID from a Cookie for authentication?

2011-11-28 Thread janb
Hi everyone, this is my scenario I use the CXF STS for authentication. I developed my own UsernamePasswordValidator to validate a SessionID provided as a password. This works great. Now my next step would be to convince my cxf client (more precisely my STS Client) to get and use a SessionID availa

Re: Forcing a reply to a REST-ful service before the return

2011-11-28 Thread Sergey Beryozkin
Hi Benson On 27/11/11 14:38, Benson Margulies wrote: I have a REST endpoint which, in some cases, reboots itself. (The overall system uses a Tanuki JSW launcher, and it calls System.exit to ask for a restart). It would be cleaner if there were a way to push the reply before the service function

Re: Apache CXF+MTOM sending multiple attachments

2011-11-28 Thread Alex Declent
After a lot of redesign now I got follewing exception: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/pdf WARNING: Interceptor for has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Could not write attachments. at org.apache.c

Re: Missing 'element'-Attribute in Request/Response-Representation of WADL

2011-11-28 Thread Sergey Beryozkin
Hi On 28/11/11 11:00, Björn Stenersen wrote: Hi Sergey, it looks much better now: But why is the namespace called "prefix1", although i declared it as "hn": @XmlRootElement(name = "Rating", namespace = "hn") public class Rating { ... } "hn" is a namespace name, and "prefix1" is a prefix bind

Re: (quack, quack) WADL WADL Doc (duck?)

2011-11-28 Thread Sergey Beryozkin
On 28/11/11 10:31, Sergey Beryozkin wrote: Hi Benson I like the style, the subject was funny :-) On 27/11/11 22:30, Benson Margulies wrote: @Descriptions({ @Description(value = "Accepts the configuration of the service as a set of multipart fields.", target = DocTarget.METHOD), @Description(va

Re: Missing 'element'-Attribute in Request/Response-Representation of WADL

2011-11-28 Thread Björn Stenersen
Hi Sergey, it looks much better now: But why is the namespace called "prefix1", although i declared it as "hn": @XmlRootElement(name = "Rating", namespace = "hn") public class Rating { ... } Am 28.11.2011 11:45, schrieb Sergey Beryozkin: Hi On 28/11/11 09:32, Björn Stenersen wrote: Hi, i

Re: Missing 'element'-Attribute in Request/Response-Representation of WADL

2011-11-28 Thread Sergey Beryozkin
Hi On 28/11/11 09:32, Björn Stenersen wrote: Hi, i have got a service that looks like this: @GET @Path("/rating/{id}") @Produces("application/xml") @ElementClass(response=Rating.class) public Rating getRating(@PathParam("id")String id); This is the Rating-Class: @XmlRootElement(name = "Rating

Re: (quack, quack) WADL WADL Doc (duck?)

2011-11-28 Thread Sergey Beryozkin
Hi Benson I like the style, the subject was funny :-) On 27/11/11 22:30, Benson Margulies wrote: @Descriptions({ @Description(value = "Accepts the configuration of the service as a set of multipart fields.", target = DocTarget.METHOD), @Description(value = "Nothing, or an er

DOSGi: service removal not notified

2011-11-28 Thread David Feliot
Hi, DOSGi TopologyManager doesn't seem to notify the EndpointListeners when a service is removed. Is it the expected behaviour? I use the version 1.2. Regards, David.

Missing 'element'-Attribute in Request/Response-Representation of WADL

2011-11-28 Thread Björn Stenersen
Hi, i have got a service that looks like this: @GET @Path("/rating/{id}") @Produces("application/xml") @ElementClass(response=Rating.class) public Rating getRating(@PathParam("id")String id); This is the Rating-Class: @XmlRootElement(name = "Rating") public class HotelRating { ... } In the