How to register an Interceptor for all busses?

2018-02-13 Thread Frizz
I understood that I can register an interceptor like this: I have a Karaf container that hosts a number of Web Services, each has it's own CXF bus. Now I'd like to activate my Interceptor for all those Web Services. How can I do this? How can I

Re: How to install a CXF ServerLifeCycleListener when app is running in Apache Tomcat?

2015-06-08 Thread Frizz
, André Costa Lima 2015-06-07 15:40 GMT+01:00 Frizz frizzthe...@googlemail.com: I have published a Web-Service in Tomcat with cxf-servlet.xml jaxws:endpoint id=myService implementor=#MyServiceImpl address=/MyService /jaxws:endpoint So far, so god. Now I wanted

How to install a CXF ServerLifeCycleListener when app is running in Apache Tomcat?

2015-06-07 Thread Frizz
I have published a Web-Service in Tomcat with cxf-servlet.xml jaxws:endpoint id=myService implementor=#MyServiceImpl address=/MyService /jaxws:endpoint So far, so god. Now I wanted to add a CXF ServerLifeCycleListener, but it seems this has to be done BEFORE the service is

Re: STS with X.509 based authentication: How does proof-of-possession work?

2015-02-22 Thread Frizz
. ... Is this really true? I mean if I have to provide a SAML token AND a UsernameToken (or X.509 cert) this kinda contradicts the idea of an STS, no? On Sun, Feb 22, 2015 at 5:53 PM, Andrei Shakirin ashaki...@talend.com wrote: Hi Frizz, Very briefly: in case of asymmetric binding, client signs parts of request

STS with X.509 based authentication: How does proof-of-possession work?

2015-02-22 Thread Frizz
I'd like to use CXF STS in an X.509 authentication based scenario. What I don't understand right now is how it does proof-of-possession. I mean anyone can present a certificate to the STS - it does not mean that she has the private key. How does this work in CXF?

JAX-RS: Access to message body in WriterInterceptor or ClientRequestFilter

2014-12-17 Thread Frizz
. cheers, Frizz

Migrate from CXF 2.7.x to 3.0.x in Karaf container

2014-11-07 Thread Frizz
of CXF (2.7.x and 3.0.x) in one Karaf container? cheers, Frizz

Re: wsse:Security: MustUnderstand headers are not understood

2014-07-02 Thread Frizz
, Security)); } } public SetQName getUnderstoodHeaders() { return HEADERS; } Colm. On Thu, Jun 26, 2014 at 8:45 AM, Frizz frizzthe...@googlemail.com wrote: I have a Consumer that sends messages with Security enabled, so something like this: soap:Envelope xmlns:soap=http

wsse:Security: MustUnderstand headers are not understood

2014-06-26 Thread Frizz
I have a Consumer that sends messages with Security enabled, so something like this: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Header ... wsse:Security xmlns:wsse= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd;

Return SOAP Fault in CXF Interceptor

2014-06-25 Thread Frizz
I have a custom interceptor. In case the SoapMessage is an Exception, I'd like to skip all my other interceptors and return a SOAP Fault. public void handleMessage(SoapMessage message) ... if (message.getContent(Exception.class)!=null) { skip other interceptors and return SOAP Fault } ... Is

How to access jaxws:properties in a CXF Interceptor

2014-06-24 Thread Frizz
I have defined a WS client in an XML file like this: beans ... jaxws:client name={http://www.example.org/contract/DoubleIt }DoubleItService jaxws:properties entry key=myKey value=12345/ /jaxws:properties /jaxws:client /beans How can I access jaxws:properties in a CXF

wsdl2java - Encountered illegal extension attribute 'message'

2014-05-20 Thread Frizz
Hi there, I am using CXF 2.7.7. I have a WSDL that is correct and valid (imho). But when running wsdl2java it doesn't seem to like the 'message' attribute in my binding/operation definition. Here is the error message from wsdl2java: WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException:

Re: The wsdl generated from cxf contains elements with minOccurs=0 instead of a choice

2014-04-28 Thread Frizz
Hi, I have a similar problem, so I would also be interested to know more technical details. Especially about this choice/sequence thing. I have a WSDL file with the following content: ... xsd:complexType name=Scenario mixed=true xsd:sequence xsd:element name=Description

WSDL differs between original definition and generated classes

2014-04-15 Thread Frizz
I have a WSDL with the following content: ... xsd:complexType name=Scenario mixed=true xsd:sequence xsd:element name=Description type=xsd:anyURI minOccurs=0/ xsd:any namespace=##other minOccurs=0 maxOccurs=unbounded processContents=lax/ /xsd:sequence xsd:anyAttribute

WS-ReliableMessaging

2014-03-31 Thread Frizz
? Or or or ... cheers, Frizz

Re: WS-ReliableMessaging

2014-03-31 Thread Frizz
Thanks for your reply Dennis. The more I tinker with WS-RM the more I come to the conclusion that this reliable messaging should NOT be handled on the transport level - but on the business level. I don't want to start a religious war here ... and it's more of a gut feeling anyway - but: do you

How to get meaningful information out of org.apache.cxf.message.Message

2013-09-17 Thread Frizz
Hello, I have an Interceptor. So in the handleMessage() method I get an object of type org.apache.cxf.message.Message. Is there an example on how to get meaningful information out of this object? I am especially interested how to figure out what's a SOAP and what's REST call. regards, F.

How to access fields in org.apache.cxf.transport.Session?

2013-09-13 Thread Frizz
Hello, I have an Interceptor like this: public void handleMessage(Message msg) throws Fault { BindingOperationInfo binding = msg.getExchange().getBindingOperationInfo(); if (binding != null) { String requestUri = (String)msg.get(Message.REQUEST_URI); Session session

Message.REST_MESSAGE is always null

2013-09-10 Thread Frizz
Hi, I've just added an IN and an OUT interceptor to the CXF bus. That works. My IN interceptor is for Phase.PRE_INVOKE. In my IN interceptors handleMessage(Message msg) method I try to figure out whether it's a REST or a SOAP message. But the REST_MESSAGE property is always null.

Re: Message.REST_MESSAGE is always null

2013-09-10 Thread Frizz
=org.apache.cxf.buslifecycle.BusCreationListener / ... On Tue, Sep 10, 2013 at 10:17 PM, Sergey Beryozkin sberyoz...@gmail.comwrote: Hi On 10/09/13 21:09, Frizz wrote: Hi, I've just added an IN and an OUT interceptor to the CXF bus. That works. My IN interceptor is for Phase.PRE_INVOKE. In my

Re: Message.REST_MESSAGE is always null

2013-09-10 Thread Frizz
context. What's the correct way to figure out if my message is JAX-WS or JAX-RS? On Tue, Sep 10, 2013 at 10:17 PM, Sergey Beryozkin sberyoz...@gmail.comwrote: Hi On 10/09/13 21:09, Frizz wrote: Hi, I've just added an IN and an OUT interceptor to the CXF bus. That works. My IN interceptor