WS-RM and NON-anonymous clients

2009-10-20 Thread Alexandros Karypidis
Hi, What is the CXF API/configuration that allows me to set the EPR value for ReplyTo/FaultTo in WS-RM? My problem is that the client always connects to the web service provider using an "anonymous" endpoint reference. I would like to change that so that the client's EPR is specific and pers

Re: Configuring web service client for WS-Reliable Messaging.

2009-10-20 Thread Alexandros Karypidis
Hello, It would be beneficial if you'd post the error (Exception) you're getting and the way you've configured your service. I've just recently managed to get a WS-RM service running, although I'm using CXF on both sides (WebLogic and JBoss). Anyway, there are various ways to configure WS-RM

Configuring web service client for WS-Reliable Messaging.

2009-10-20 Thread arkadye
Hi everyone, I have WCF based WS-RM web service exposed thru the wsdl file. I am trying to configure the client for this web service (for WS-Reliable Messaging). I tried the approaches described in http://cxf.apache.org/docs/wsrmconfiguration.html http://cxf.apache.org/docs/wsrmconfiguration.htm

Re: WS-RM on WebLogic 10.3.1

2009-10-20 Thread Alexandros Karypidis
Thanks Daniel, I've found what was wrong. When using CXFServlet, one must import the CXF schemas in his bean definitions. By changing my beans.xml to the following, the problem went away: I was actually using CXF 2.2.3. Daniel Kulp wrote: What version of

Re: java first how-to add WS-Security header to WSDL

2009-10-20 Thread Daniel Kulp
Ah. Java first.Right. That complicates things quite a bit. This will become significantly easier with CXF 2.3 as we've added annotations that can be used to attach policies to the java class/methods and such that would appear in the WSDL.But that's 2.3, not 2.2.4. For 2.2.3, we d

Re: user id in service implementation from user credentials (ws-security)

2009-10-20 Thread Marek Kasztelnik
Daniel, thank you very much, it works :) Daniel Kulp wrote: The easiest is to inject in the WebServiceContext using an @Resource. Then you have two options: 1) The WebServiceContext has a getUserPrincipal() method that can be used to retrieve the principal object that WSS4J gives us. H

Re: AW: java first how-to add WS-Security header to WSDL

2009-10-20 Thread vickatvuuch
Oliver, It looks like nabble removed your attachment. Oliver Wulff-2 wrote: > > Hi Vitaly > > I've attached the sample I put together to test this. I've used one of the > demos from CXF. I made an update in pom (attached) to used the most recent > snapshot version (2.2.5-SNAPSHOT). > > Som

Re: Array/Collection parameter for web service is coming in null

2009-10-20 Thread Barry Kern
Thanks Dan, that worked. The Audio class had no default constructor by accident. Once in place the WSDL generated more information about the Audio object and I was able to test the service from java and soapUI without an issue. -Barry On Tue, Oct 20, 2009 at 11:26 AM, Daniel Kulp wrote: > > What

Re: java first how-to add WS-Security header to WSDL

2009-10-20 Thread vickatvuuch
Hi Dan, Thanks for your reply. Forgot to mention that I'm building and running on CXF 2.2.4. Are you saying, that I can not have generated WSDL to include WSPolicy or you are saying that if I configure it CXF will do it automagically? What about this note on WS-SecurityPolicy? Note: at this po

Re: user id in service implementation from user credentials (ws-security)

2009-10-20 Thread Daniel Kulp
The easiest is to inject in the WebServiceContext using an @Resource. Then you have two options: 1) The WebServiceContext has a getUserPrincipal() method that can be used to retrieve the principal object that WSS4J gives us. However, if you also use basic auth or similar or there are mult

Re: Configuring the Jetty Runtime - specifying port via Spring property placeholders

2009-10-20 Thread Daniel Kulp
What version of CXF?Definitely upgrade to the latest.There was some bugs in some of our custom namespace handlers that use JAXB under the covers that wasn't allowing the properties to be injected. That was fixed a little while ago though. Dan On Tue October 20 2009 8:41:54 am szcze

Re: Array/Collection parameter for web service is coming in null

2009-10-20 Thread Daniel Kulp
What does the Audio class look like? Does it have a default constructor? Are all properties defined with public getter and setters? That all said, I wold definitely encourage you to upgrade to a newer version of CXF. Dan On Tue October 20 2009 10:31:06 am Barry Kern wrote: > Hi, > I am

Re: java first how-to add WS-Security header to WSDL

2009-10-20 Thread Daniel Kulp
On Tue October 20 2009 11:28:59 am vickatvuuch wrote: > Hi All, > > I'm trying to put together a java first CXF server with WS-Security. > I have the WSS4JInInterceptor with password callback handling my requests > with clear text pass for now. > Could somebody point me into a right direction rega

Re: Selective Logging of WebService with Spring configuration

2009-10-20 Thread Daniel Kulp
The jaxws:endpoint and jaxws:client elements have a jaxws:features child element that is configured the same way. Dan On Tue October 20 2009 12:10:37 pm Malte Finsterwalder wrote: > Hi, > > I publish three web services, but I only want to log the incomming and > outgoing messages for one or t

Selective Logging of WebService with Spring configuration

2009-10-20 Thread Malte Finsterwalder
Hi, I publish three web services, but I only want to log the incomming and outgoing messages for one or two of those services. I understand that the annotation @Features(features = "org.apache.cxf.feature.LoggingFeature") at the Web Service Interface class would do the trick, but I would rather co

AW: AW: AW: WS-SecurityPolicy, UsernamePassword example

2009-10-20 Thread Oliver Wulff
Hi Dan >>> Well, I guess it depends on who you are.If you are Microsoft, for ANY security related issues at all, they just send back a "Security token could not be processed" fault.No description at all as to why. >>> I fully understand this point of view and it makes absolut sense. The

java first how-to add WS-Security header to WSDL

2009-10-20 Thread vickatvuuch
Hi All, I'm trying to put together a java first CXF server with WS-Security. I have the WSS4JInInterceptor with password callback handling my requests with clear text pass for now. Could somebody point me into a right direction regarding two issues I'm trying to figure out: 1. WSDL header genera

Re: AW: AW: WS-SecurityPolicy, UsernamePassword example

2009-10-20 Thread Daniel Kulp
On Tue October 20 2009 7:01:57 am Oliver Wulff wrote: > Hi Dan > > Changed my pom to 2.2.5-SNAPSHOT: > > 2.2.5-SNAPSHOT > > > I can confirm that both issues are fixed. No exception on the client side > (CXF-2480) and when I remove the IncludeToken attribute (CXF-2479), I > don

Array/Collection parameter for web service is coming in null

2009-10-20 Thread Barry Kern
Hi, I am using cxf 2.0.9 and JAX WS to write a web service. I have never written one that takes parameters besides the primitive types and my thought is I am missing a step. I have coded the web service and written a test in java that is successful however when clients outside of java are attemptin

Re: Configuring the Jetty Runtime - specifying port via Spring property placeholders

2009-10-20 Thread Brent Verner
Oh, sorry about that... Here's what I have in my spring configuration. AFAIK, the resolution of placeholders all happens within Spring and cxf just uses the configured beans. spring config snippet: ... classpath:META-INF/serviceManage

Re: Configuring the Jetty Runtime - specifying port via Spring property placeholders

2009-10-20 Thread szczepiq
Thanks for the hint. Although I'm not sure how this problem is related to validation. In my case ${service.port} is simply not resolved - there are no XML/bean validation errors. Cheers, Szczepan On Tue, Oct 20, 2009 at 3:46 PM, Brent Verner wrote: > Hi, > >  If you're loading the configuration

Re: Configuring the Jetty Runtime - specifying port via Spring property placeholders

2009-10-20 Thread Brent Verner
Hi, If you're loading the configuration yourself, you can subclass the appropriate ApplicationContext to disable validation... public class NonValidatingClassPathXmlApplicationContext extends ClassPathXmlApplicationContext { public NonValidatingClassPathXmlApplic

Configuring the Jetty Runtime - specifying port via Spring property placeholders

2009-10-20 Thread szczepiq
Hi, Following the wiki entry: http://cwiki.apache.org/CXF20DOC/jetty-configuration.html There is any example: ... ... How can I make the engine *port* configurable via Spring property placeholders? I tried following: However, it doesn't work. I can understand why it doesn't

Re: Is it possible to register a default resource?

2009-10-20 Thread Sergey Beryozkin
Andy - hope you're reading it. If you could test the following then it will be appreciated a lot: @Path("/") public class Resource { @Path("{var:.+}") public Resource subresource() { return this; } @GET public String getString() { return "1"; } } GET /bar is apparentl

AW: AW: WS-SecurityPolicy, UsernamePassword example

2009-10-20 Thread Oliver Wulff
Hi Dan Changed my pom to 2.2.5-SNAPSHOT: 2.2.5-SNAPSHOT I can confirm that both issues are fixed. No exception on the client side (CXF-2480) and when I remove the IncludeToken attribute (CXF-2479), I don't get an exception either. My server starts successfully (which he didn

user id in service implementation from user credentials (ws-security)

2009-10-20 Thread Marek Kasztelnik
Hi, I use ws-security for authentication and authorization in my web service. Additionally, in the web service implementation I would like to use delivered credentials to generate and return personalized data to the user. I have been googling and searching in cxf documentation, unfortunately

Re: Use of OSGi http service instead of jetty engine

2009-10-20 Thread Sergey Beryozkin
Starting with 2.2.4 it is also possible to configure an alias for the CXF servlet. Example : For the most part, in the spring config, instead of importing META-INF/cxf/cxf-extension-http-jetty.xml you would import META-INF/cxf/osgi/cxf-extension-osgi.xml The "address" used on jaxws:endpoint an

RE: jax-rs byte stream result

2009-10-20 Thread Linus Kamb
-Message d'origine- De : Sergey Beryozkin [mailto:sbery...@progress.com] [..] >> >> What you want is something like: >> >> Content-Disposition: attachment; filename= > Linus, no problems :-) and your contribution is apreciated. So did setting > such a header without using multiparts ma