Re: CXF and Spring for Authentication and Authorization

2012-02-03 Thread Sergey Beryozkin
Hi On 03/02/12 05:45, Taariq Levack wrote: Hi I have an existing web app using Spring Security and LDAP for authentication and authorization. Now we want some web services to be secured using UsernameToken and SSL. I also want it to reuse the existing spring method level security, this user's

AW: Issue with FederationAuthenticator and application in root context

2012-02-03 Thread Oliver Wulff
fixed... http://svn.apache.org/viewvc?view=revisionrevision=1240038 -- Oliver Wulff http://owulff.blogspot.com Solution Architect Talend Application Integration Division http://www.talend.com Von: Oliver Wulff [owu...@talend.com] Gesendet:

JMS transport: No conduit initiator was found

2012-02-03 Thread Jens
Hi, according to the 2.4 release notes, importing the CXF extensions in the Spring configuration is no longer necessary. I'm running into a problem with that with 2.5.2, however. The original WSDL specifies an HTTP transport but communication really is via JMS. So my client config looks like

Re: CXF and Spring for Authentication and Authorization

2012-02-03 Thread Taariq Levack
Thanks to you both, I'm happily securing my services using Spring. Just like Camel, CXF is much easier than it looks. I've no karma to fix that typo so please make a note to fix that sometime if you haven't already. Thanks again. Taariq On Fri, Feb 3, 2012 at 11:21 AM, Sergey Beryozkin

Re: CXF and Spring for Authentication and Authorization

2012-02-03 Thread Sergey Beryozkin
On 03/02/12 11:19, Taariq Levack wrote: Thanks to you both, I'm happily securing my services using Spring. Just like Camel, CXF is much easier than it looks. I've no karma to fix that typo so please make a note to fix that sometime if you haven't already. I did, it will take a bit of time to

AW: IDP resolver feature

2012-02-03 Thread Oliver Wulff
Hi Fran I've added this functionality here: http://svn.apache.org/viewvc?view=revisionrevision=1240127 Here is a sample callback handler: public class DummyIDPCallbackHandler implements CallbackHandler { public void handle(Callback[] callbacks) throws IOException,

Re: JMS transport: No conduit initiator was found

2012-02-03 Thread Christian Schneider
Can you post your full config or ideally a small test project that shows the problem? Christian Am 03.02.2012 11:53, schrieb Jens: Hi, according to the 2.4 release notes, importing the CXF extensions in the Spring configuration is no longer necessary. I'm running into a problem with that

Re: JMS transport: No conduit initiator was found

2012-02-03 Thread Christian Schneider
and can you try the same but leave out the transportId= All my examples do not do this. Christian Am 03.02.2012 11:53, schrieb Jens: Hi, according to the 2.4 release notes, importing the CXF extensions in the Spring configuration is no longer necessary. I'm running into a problem with

Re: JMS transport: No conduit initiator was found

2012-02-03 Thread Jens
Christian Schneider wrote and can you try the same but leave out the transportId= All my examples do not do this. I can try to put a smallish example together but I can't leave out the transportId. The client would try to use the original HTTP URL from the WSDL in that case. Also note

Re: Issue with JAX-RS providers.getContextResolver

2012-02-03 Thread Sergey Beryozkin
Hi, On 02/02/12 22:08, hdave wrote: Sergey, The workaround is functioning well. Let me know if you create a CXF issue on this so I can track it. Please see https://issues.apache.org/jira/browse/CXF-4086 it has been resolved on the trunk and all the branches, Give it a try please Cheers,

Re: JMS transport: No conduit initiator was found

2012-02-03 Thread Jens
Jens wrote Christian Schneider wrote and can you try the same but leave out the transportId= All my examples do not do this. I can try to put a smallish example together but I can't leave out the transportId. The client would try to use the original HTTP URL from the WSDL in

How to Stor/Get data in CXF Session .

2012-02-03 Thread chimaira
Hello Sorry for my english, I'll try to be as clear as I can with CXF integrated in my application , I m extending the AbstractPhaseInterceptor class so I can save my Request/Response into an output file. but, while my response xml contains no request information (like a customer ID's for ex)

Re: IDP resolver feature

2012-02-03 Thread Francisco Serrano
Very nice Oli, thank you very much for the time espent. We'll try to integrate the new feature and give you a feedback ASAP. Kind regards and have a nice weekend. Fran. El 03/02/2012, a las 13:27, Oliver Wulff escribió: Hi Fran I've added this functionality here:

SOAP w/ Attachments still supported

2012-02-03 Thread Jens
Hi, does CXF (2.5.2) still support SwA? I'm asking because I have a WSDL with SwA enabled, I generated classes from that with enableMIMEContent=true (so I get a DataHandler in my interface), but when I send a message, the attachment part is included as a second XML element in the message body

Re: JAX-RS: Is anyone using CodeGeneratorProvider

2012-02-03 Thread Sergey Beryozkin
On 02/02/12 15:04, Sergey Beryozkin wrote: Hi, I'm thinking of deleting CodeGeneratorProvider [1] for 2.6 only, given that it seems to be redundant now that we have a wadl2java command line tool and plugin. The idea behind CodeGeneratorProvider has been that one can just quickly download a

Issue with CXF-2.5.2 regarding UsernameToken

2012-02-03 Thread COURTAULT Francois
Hello everybody, For UsernameToken, in my client code I have used the following code which is: MapString, Object ctx = ((BindingProvider) port).getRequestContext(); ctx.put(ws-security.username, myusername); ctx.put(ws-security.password,

Re: SOAP w/ Attachments still supported

2012-02-03 Thread Daniel Kulp
On Friday, February 03, 2012 7:46:30 AM Jens wrote: Hi, does CXF (2.5.2) still support SwA? It should be working. We have tests for it and the JAX-WS TCK requires it. Some of our tests are at:

Re: How to Stor/Get data in CXF Session .

2012-02-03 Thread Sergey Beryozkin
Hi On 03/02/12 15:02, chimaira wrote: Hello Sorry for my english, I'll try to be as clear as I can with CXF integrated in my application , I m extending the AbstractPhaseInterceptor class so I can save my Request/Response into an output file. but, while my response xml contains no request

Re: How to Stor/Get data in CXF Session .

2012-02-03 Thread Glen Mazza
If you search this blog entry for MAX_VALUE: http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors, you can see how parameters can be read and written during the SOAP request response exchange. HTH, Glen On 02/03/2012 10:02 AM, chimaira wrote: Hello Sorry for my english,

Re: Unit testing JAX-RS services

2012-02-03 Thread Sergey Beryozkin
On 03/02/12 03:02, Jeff Wang wrote: I'm having two difficulties with testing. One practical, one theoretical. practical: If I have any @Context annotations, I can't actually call the service via a client proxy. I need to code the call separately (and manually.) I updated the proxies to

REST and MVC for webapps

2012-02-03 Thread Guy Pardon
Hi, I am looking for examples and/or information on using CXF/REST/JAXRS as the controller for html webapps - instead of Struts or JSF. Any pointers available? Thanks Guy

RE: Issue with CXF-2.5.2 regarding UsernameToken

2012-02-03 Thread COURTAULT Francois
Hello, I don't understand because the 2 ways of coding seem feasible according the article at: http://www.jroller.com/gmazza/entry/cxf_usernametoken_profile So do you mean that the client code provided in this article is wrong ? Best Regards -Original Message- From: Colm O

RE: REST and MVC for webapps

2012-02-03 Thread KARR, DAVID
-Original Message- From: Guy Pardon [mailto:g...@atomikos.com] Sent: Friday, February 03, 2012 9:54 AM To: users@cxf.apache.org Subject: REST and MVC for webapps Hi, I am looking for examples and/or information on using CXF/REST/JAXRS as the controller for html webapps -

Re: REST and MVC for webapps

2012-02-03 Thread michaelok
Guy Pardon-3 wrote Hi, I am looking for examples and/or information on using CXF/REST/JAXRS as the controller for html webapps - instead of Struts or JSF. Any pointers available? Thanks Guy There are some HOWTOs at the CXF website that should get you started. Here's a Spring

Fwd: Advice on WSDL file

2012-02-03 Thread Christopher Magnollay
Hi All, I am trying to use the CXF tool to generate java code from a legacy WSDL file. I was not the one who wrote it (and i suspect he did it by hand) and the cxf maven plugin is telling me that the WSDL is invalid (as is soapUI). I would like to make changes to the WSDL to make it correct but

Re: REST and MVC for webapps

2012-02-03 Thread Guy Pardon
Hi, Thanks for answering! The REST/JAXRS paradigm offers a basic controller mechanism, and I can return text/html (and other media types) as well as forward to JSP pages. I've always disliked struts and JSF and am trying to push JAXRS to the limits - hence my question :-) Guy On

Re: Issue with CXF-2.5.2 regarding UsernameToken

2012-02-03 Thread Glen Mazza
The only reference to WSHandlerConstants.USER in the blog article is in the case where you're using WSS4J interceptors and not WS-SecurityPolicy. Remember just before that code block the article says to activate the section of the code depending on the method you're using--WSS4J interceptors

Re: Fwd: Advice on WSDL file

2012-02-03 Thread Daniel Kulp
On Friday, February 03, 2012 1:12:52 PM Christopher Magnollay wrote: Hi All, I am trying to use the CXF tool to generate java code from a legacy WSDL file. I was not the one who wrote it (and i suspect he did it by hand) and the cxf maven plugin is telling me that the WSDL is invalid (as is

RE: Issue with CXF-2.5.2 regarding UsernameToken

2012-02-03 Thread COURTAULT Francois
Hello, OK but how do you choose the method WSS4J interceptors or WS-SecurityPolicy ? Best Regards. -Original Message- From: Glen Mazza [mailto:gma...@talend.com] Sent: vendredi 3 février 2012 19:29 To: users@cxf.apache.org Subject: Re: Issue with CXF-2.5.2 regarding UsernameToken The

Re: Fwd: Advice on WSDL file

2012-02-03 Thread Glen Mazza
Hi Chris, I'd look at the wsdl:binding section of this simple WSDL here: http://www.jroller.com/gmazza/entry/web_service_tutorial#WFstep4 ...and just follow that format for each of the wsdl:operations under your wsdl:binding section. More info on generating SOAP clients:

Re: Issue with CXF-2.5.2 regarding UsernameToken

2012-02-03 Thread Glen Mazza
Once *you* decide which one you want--your choice but if the WSDL doesn't have security policy statements it will need to be WSS4J--just follow my blog entry, making changes as explained in the tutorial depending on the option you wanted. For example, the code segment referenced had

RE: Issue with CXF-2.5.2 regarding UsernameToken

2012-02-03 Thread COURTAULT Francois
Hello Glen, First, my WDSL contains policy statements. I have read again more carefully your article. Let me know if I have well understood: - if the WSDL contains policy statements, the WS-SecurityPolicy option is the preferred approach: right ? - if the WSDL doesn't contain policy

Re: Issue with JAX-RS providers.getContextResolver

2012-02-03 Thread hdave
You are fast! Will check it out and report and comment on any issues I find. Should I test with 2.5.3-SNAPSHOT or 2.6.0-SNAPSHOT? Does it matter? -- View this message in context: http://cxf.547215.n5.nabble.com/Issue-with-JAX-RS-providers-getContextResolver-tp5451093p5454803.html Sent from

Re: Issue with CXF-2.5.2 regarding UsernameToken

2012-02-03 Thread Daniel Kulp
On Friday, February 03, 2012 8:02:35 PM COURTAULT Francois wrote: Hello Glen, First, my WDSL contains policy statements. I have read again more carefully your article. Let me know if I have well understood: - if the WSDL contains policy statements, the WS-SecurityPolicy option is

Re: Issue with CXF-2.5.2 regarding UsernameToken

2012-02-03 Thread Glen Mazza
On 02/03/2012 02:08 PM, Daniel Kulp wrote: On Friday, February 03, 2012 8:02:35 PM COURTAULT Francois wrote: Hello Glen, First, my WDSL contains policy statements. I have read again more carefully your article. Let me know if I have well understood: - if the WSDL contains policy

Re: thread safety (post FAQ)

2012-02-03 Thread Daniel Kulp
On Thursday, February 02, 2012 3:35:36 PM soaw...@web.de wrote: Dear experienced cxf users, I’m working with cxf for the first time and have issues to determine how to ensure thread safety. I have read the FAQ but am not sure what’s exactly the “client”. *** The facts:

Re: Reading Soap Headers / Bypass WSDL requests

2012-02-03 Thread Daniel Kulp
On Thursday, February 02, 2012 12:56:55 PM Michael Prieß wrote: @Daniel Thanks for the hint. Putting the interceptor behind the WSDL interceptor into the USER_PROTOCOL Phase works fine for me. But the version element which I added to the header has nothing to do with the SoapVersion. I like

Re: How to change JMS topic name programmatically in CXF generated client?

2012-02-03 Thread Daniel Kulp
I think if you do the same basic thing you do for updating HTTP settings, you can change the JMS settings: JMSConduit c = (JMSConduit)ClientProxy.getClient(port).getConduit() c.getJmsConfig().setXYZ(); Dan On Wednesday, February 01, 2012 4:26:55 AM anhtuannd wrote: I have WSDL file

Re: How to configure CXF Client to pipe the attachment stream ?

2012-02-03 Thread Daniel Kulp
On Tuesday, January 31, 2012 3:33:10 PM Fabien Baligand wrote: Hi, When I use my CXF client, configured with MTOM enabled, to get a 5OMb file ; I note that CXF downloads all the attachment content to a temp file, and then, give me the InputStream to the temp file. In my case, I don't want

RE: Issue with CXF-2.5.2 regarding UsernameToken

2012-02-03 Thread COURTAULT Francois
Hello Dan and Glen, Quite likely the required approach, yes. If the WSDL contains policies and the policy engine is turned on (which is the default starting in CXF 2.3), then the policy based interceptors will be automatically engaged. Using the non-policy based approach may interfere

Re: Issue with CXF-2.5.2 regarding UsernameToken

2012-02-03 Thread Glen Mazza
On 02/03/2012 02:38 PM, COURTAULT Francois wrote: Hello Dan and Glen, Quite likely the required approach, yes. If the WSDL contains policies and the policy engine is turned on (which is the default starting in CXF 2.3), then the policy based interceptors will be automatically engaged.

Re: AW: CXF2.5.1 WS-SecurityPolicy

2012-02-03 Thread sram
It was related to 2.5.1, looks OK in 2.5.2, thanks. -- View this message in context: http://cxf.547215.n5.nabble.com/CXF2-5-1-WS-SecurityPolicy-tp5449316p5455100.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: REST and MVC for webapps

2012-02-03 Thread Sergey Beryozkin
Hi On 03/02/12 18:13, KARR, DAVID wrote: -Original Message- From: Guy Pardon [mailto:g...@atomikos.com] Sent: Friday, February 03, 2012 9:54 AM To: users@cxf.apache.org Subject: REST and MVC for webapps Hi, I am looking for examples and/or information on using CXF/REST/JAXRS as the

Re: REST and MVC for webapps

2012-02-03 Thread Sergey Beryozkin
Hi Guy On 03/02/12 18:27, Guy Pardon wrote: Hi, Thanks for answering! The REST/JAXRS paradigm offers a basic controller mechanism, and I can return text/html (and other media types) as well as forward to JSP pages. I've always disliked struts and JSF and am trying to push JAXRS to the limits

Re: Issue with JAX-RS providers.getContextResolver

2012-02-03 Thread Sergey Beryozkin
On 03/02/12 19:06, hdave wrote: You are fast! Will check it out and report and comment on any issues I find. Should I test with 2.5.3-SNAPSHOT or 2.6.0-SNAPSHOT? Does it matter? Please try 2.5.3-SNAPSHOT, a lot of refactoring is done on 2.6.0-SNAPSHOT and it is still few months away, so

Re: leave the list

2012-02-03 Thread Todd Nist
To remove your address from the list, send a message to: users-unsubscr...@cxf.apache.org Regards, Todd * * * * On Fri, Feb 3, 2012 at 5:10 PM, fabio alves de araujo ebner fabioeb...@hotmail.com wrote: how is the email to leave this list?? tks

Re: How to configure CXF Client to pipe the attachment stream ?

2012-02-03 Thread Fabien Baligand
Thank you very much for your complete answer. Actually, I am using Alfresco 3.4d, which embeds CXF 2.2.2. I have upgraded the CXF client version to 2.4.2 (the version I use on the server side), and now, this works great ! So CXF works 2.4.2 works as you say ! Thanks for your help. 2012/2/3

Question on SSL caching

2012-02-03 Thread JKemp
Hey guys, I've been having some issues with my SSL connections. We're using SSL with basic auth and using a client side certificate. Originally when I start my system, everything authenticates and connects correctly, but once I exceed the 15 second timeout between calls on my connection, the

Re: CXF embedded within a SpringIntegration Context

2012-02-03 Thread cogitate
Thanks Sergei... If i did write an adapter for SI, what's the point where i can fake CXFServlet inputstream, outputstream, so that i don't have to change any CXF config files / CXF jaxws Service Implementations or CXF jaxrs service implementations? i understand, i might have to implement some