printing ws-security decrypted message on cxf server

2010-03-09 Thread Sebastian Krueger
Hi everyone, I'm using CXF to develop a secure web services implementation. My aim is to print the XML before encryption and after encryption on the server. I have been able to print the encrypted message once it is received by the server via an AbstractPhaseInterceptor that I wrote myself. I

Re: WS-Security Encryption/Decryption Advice

2010-03-09 Thread Sebastian Krueger
It's entry key=encryptionUser value=useReqSigCert/. Regards, Sebastian. On Fri, Mar 5, 2010 at 3:01 PM, Sebastian Krueger sebykrue...@gmail.comwrote: Hi guys, I'm currently developing a secure webservices scenario using Apache CXF/WSS4J. We require all messages to be signed and encrypted.

Re: CXF 2.2.5 isOneWay() Bug?

2010-03-09 Thread Daniel Kulp
On Tuesday 09 March 2010 12:39:57 am Coder One wrote: Inside a subclass of AbstractConduit and the function public void prepare(Message message), message.getExchange().isOneWay() is never true. It's always false even if the function is a void say(SayRequest req) Is this a bug? How

spring ssl client authentication

2010-03-09 Thread Alex
Hi, I have configured my Client via Spring but it seems that now client authentication is done. ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: [CXF-2.2.5][JAVA-1.6] ReST on enums

2010-03-09 Thread Sergey Beryozkin
Hi Gabo You have a @QueryParam attached to it, is is only a method parameter representing a request body (the one having no JAXRS parameter annotations) that can be linked to a corresponding element in the grammar section... cheers, Sergey On Tue, Mar 9, 2010 at 5:09 AM, Gabo Manuel

Re: Jax-RS ExceptionMapper and data marshalling

2010-03-09 Thread Sergey Beryozkin
Hi sorry, I was not suggesting for you to go and find that thread :-) I think there was a query to do with converting String[] into JSON, so we probably thought doing something like {strings:{string:bar, string:foo}} would be ok... similarly if it is just a String then {string:bar} would do.

Re: [CXF-2.2.5][JAVA-1.6] ReST on enums

2010-03-09 Thread Gabo Manuel
Hi Sergey, Got that. A few things though: 1. I added another enum on the same class like the following: @XmlType(name=MyEnum, namespace=http://some.domain.com;) @XmlRootElement(name=MyEnum, namespace=http://some.domain.com;) public static enum MyEnum { SOMEENUM1 , SOMEENUM2 }

CXF and Spring code-gen

2010-03-09 Thread Mathias Nilsson
Hi, I just integrated my first cxf web service today. I'm using JAX-WS annotations and have set up the CXF service with spring. I have a lot of clients that will invoke the webservice and the service is updated quite often. When generating the client I use eclipse generate web service client

Unable to use HTTP GET when I integrated tomcat (Apache CXF ) and IIS 6.0.

2010-03-09 Thread Balaji Sankar Chopparapu
Hi All, Unable to use HTTP GET when I integrated tomcat (Apache CXF ) and IIS 6.0. “org.apache.cxf.transport.servlet.CXFServlet” is unable to serve the HTTP GET requests when the request is made via IIS. This works perfectly well when the request is made directly to tomcat Deployment:

Re: How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Eoghan Glynn
Would you be interested in a patch? Andrew, patches are *always* welcome :) Cheers. Eoghan On 9 March 2010 15:28, Andrew Clegg andrew.cl...@gmail.com wrote: Eoghan Glynn-4 wrote: The HTTPURLConnection is retrieved on demand when the invocation is being prepared. So its not statically

Problems when intercepting an outbound SOAP message

2010-03-09 Thread Inma Marín
Hello, I have a web service deployed and I need to deal with SOAP messages both inbound and outbound ones (I have to add some headers, but I need the whole SOAP message (Envelope element) ). I have added two interceptors: one for inbound messages and other one for outbound messages and, by the

Re: Unable to use HTTP GET when I integrated tomcat (Apache CXF ) and IIS 6.0.

2010-03-09 Thread Eoghan Glynn
Balaji, Can you use tcpmon or somesuch tool to capture the client payloads (HTTP headers plus body), and post them here? Cheers, Eoghan On 9 March 2010 13:03, Balaji Sankar Chopparapu balaji.choppar...@gmail.com wrote: Hi All, Unable to use HTTP GET when I integrated tomcat (Apache CXF )

Re: How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Andrew Clegg
Eoghan Glynn-4 wrote: The HTTPURLConnection is retrieved on demand when the invocation is being prepared. So its not statically associated with the interceptor chain. However the HTTPConduit does cache the current connection in the HTTPConduit.KEY_HTTP_CONNECTION property (i.e.

Re: [CXF-2.2.5][JAVA-1.6] ReST on enums

2010-03-09 Thread Sergey Beryozkin
Hi Gabo See comments inline cheers, Sergey On Tue, Mar 9, 2010 at 11:51 AM, Gabo Manuel kman...@solegysystems.comwrote: Hi Sergey, Got that. A few things though: 1. I added another enum on the same class like the following: @XmlType(name=MyEnum, namespace=http://some.domain.com;)

No services have been found

2010-03-09 Thread viet nguyen
I have no luck getting Helloworld to work with my existing Tomcat Spring application. I followed the tutorial and was able to see the following messages in tomcat stdout http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html INFO: Build endpoints from config-location:

Re: Installing DOSGi in Spring dm server 2.0

2010-03-09 Thread Jacek Bilski
Hi Matthew, Matthew Inger wrote: I've gotten this working, though It took a bit of work, though I think i've done it the proper way. Unfortunately, though you have to rebuild cxf and dosgi yourself. I only hope the folks at the cxf project accept the patch I submitted to them.

Re: How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Eoghan Glynn
Hi Andrew, The HTTPURLConnection is retrieved on demand when the invocation is being prepared. So its not statically associated with the interceptor chain. However the HTTPConduit does cache the current connection in the HTTPConduit.KEY_HTTP_CONNECTION property (i.e. http.connection) property on

How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Andrew Clegg
Hi, Given a Dispatch that's been invoked asynchronously (or in another thread, manually) -- is it possible to get at the underlying HttpURLConnection that it's using? I can see how you get to the Conduit but then I get a bit stuck. Here's the reason I'm asking: I'm having trouble with a

Re: CXF not detecting dead client when processing multipart msgs

2010-03-09 Thread msezgin
Ok I have determined this to exist in the most recent version of cxf aswell and have a test to proove this. It occurs when the end boundary of a multipart MSG is missing, the while loop runs continuously waiting for data from the client. Even though the socket has closed cxf doesn't seem

How to access httpservletrequest outside service class in cxf 2.1.4?

2010-03-09 Thread yong
Hi, I have seen solutions on how to access the httpservletrequest object outside service class in cxf 2.2. Unfortunately, I am stuck with cxf 2.1.4 and can't upgrade it. Is there a way to get hold of httpservletrequest outside service class in this version of cxf? Thank you for your help! --

Re: How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Andrew Clegg
Eoghan Glynn-4 wrote: However the HTTPConduit does cache the current connection in the HTTPConduit.KEY_HTTP_CONNECTION property (i.e. http.connection) property on the message object, so you could experiment by writing an interceptor that retrieves the value of this property and

Re: How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Eoghan Glynn
Yes that exactly the sort of thing I had in mind. The exact phase isn't really that important in this case, as the real action occurs asynchronously, presumably a relatively long time after *all* the outbound phases have been traversed. (Assuming the timeout is realistically long) Cheers, Eoghan

Re: How to get HttpURLConnection of Dispatch client

2010-03-09 Thread Andrew Clegg
Eoghan Glynn-4 wrote: Yes that exactly the sort of thing I had in mind. The exact phase isn't really that important in this case, as the real action occurs asynchronously, presumably a relatively long time after *all* the outbound phases have been traversed. (Assuming the timeout is

Re: createdFromAPI

2010-03-09 Thread Grégory Le Bonniec
Thank you for your help Greg On 4 March 2010 18:47, David Valeri daval...@progress.com wrote: In many cases, it indicates that the actual bean you are configuring in Spring is not to be lifecycle managed by Spring. Think of it as equivalent to the abstract attribute in a Spring bean

Re: probleme with Client and Header

2010-03-09 Thread Grégory Le Bonniec
Bug resolved : https://issues.apache.org/jira/browse/CXF-2692 Greg 2010/3/3 Grégory Le Bonniec gregory.le.bonn...@gmail.com Hi I have created a small Web Service in Code-First The content of the SEI is : @WebService(targetNamespace = http://www.test.partenaires.com/business;) public

Access to the original WSDL File

2010-03-09 Thread Grégory Le Bonniec
Hi, Is it possible to access to the original WSDL file via http://.../service?wsdl ? I have been done to use wsdllocation but it doesn't work : I access to the generated one Greg

Re: Deadlock with Zookeeper

2010-03-09 Thread David Bosschaert
Hi Norbert, [copied users@cxf.apache.org since this message really belongs there...] Could you try one more thing... Take the latest 1.2 snapshot build instead and see if that has the same problem. You can get it from here:

Re: Installing DOSGi in Spring dm server 2.0

2010-03-09 Thread Matthew Inger
Looks like you're missing the service.exported.configs property. osgi:service ref=userService interface=foo.UserService osgi:service-properties entry key=service.exported.configs value=org.apache.cxf.ws / entry key=service.exported.interfaces value=* / entry

Re: CXF 2.2.5 isOneWay() Bug?

2010-03-09 Thread Coder One
Would it be possible to have the cxf codegen create  void funcs() to @OneWay?  We auto-generate all our code using the CXF codegen maven plugin, so it will be tough to add @OneWay manually. If you have it handy, could you share specs doc? Thanks... - Original Message From: Daniel

Re: No services have been found

2010-03-09 Thread viet nguyen
I have the solution here http://old.nabble.com/JAX-WS---multiple-services-in-separate-jars-td18336903.html viet nguyen wrote: I have no luck getting Helloworld to work with my existing Tomcat Spring application. I followed the tutorial and was able to see the following messages in

getting access to soap header

2010-03-09 Thread Sebastian Krueger
Hi, is there a way to access soap headers once the org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor has completed processing? I have found that the resulting XMLStreamReader only contains the SOAP:Body element, however I have a need to access the SOAP headers as well. Thanks, Sebastian.

Re: CXF 2.2.5 isOneWay() Bug?

2010-03-09 Thread Daniel Kulp
On Tuesday 09 March 2010 4:31:50 pm Coder One wrote: Would it be possible to have the cxf codegen create void funcs() to @OneWay? We auto-generate all our code using the CXF codegen maven plugin, so it will be tough to add @OneWay manually. If you are doing codegen, then it's wsdl first.

Re: getting access to soap header

2010-03-09 Thread Daniel Kulp
On Tuesday 09 March 2010 8:07:54 pm Sebastian Krueger wrote: Hi, is there a way to access soap headers once the org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor has completed processing? I have found that the resulting XMLStreamReader only contains the SOAP:Body element, however I

Re: How to access httpservletrequest outside service class in cxf 2.1.4?

2010-03-09 Thread Daniel Kulp
On Tuesday 09 March 2010 11:28:44 am yong wrote: Hi, I have seen solutions on how to access the httpservletrequest object outside service class in cxf 2.2. Unfortunately, I am stuck with cxf 2.1.4 and can't upgrade it. Is there a way to get hold of httpservletrequest outside service class in

Re: name conflit when generating source

2010-03-09 Thread Daniel Kulp
What version of CXF?You are describing: https://issues.apache.org/jira/browse/CXF-1979 which was fixed a very long time ago. Thus, this surprises me. Dan On Tuesday 09 March 2010 2:38:48 am Alexandre Jaquet wrote: Hi, I'm facing a little problem once I'm generating the source from

Re: WSDL2java CXF APIs

2010-03-09 Thread Daniel Kulp
On Tuesday 09 March 2010 1:29:09 am rahulYadav wrote: I am new to CXF, we have been using Axis2 in past. Does CXF provides APIs to generate java source from wsdl like Axis2, i know we can do it with Maven or wsdl2java.bat but i need to do this programatically thus require APIs. Well, the

Re: spring ssl client authentication

2010-03-09 Thread Daniel Kulp
Usually, this is due to the bean name not being correct for the http:conduit. Make sure it's the port name (not the service name) from the wsdl in your case. Alternatively, use the URL as it appears in the wsdl (config is loaded before the BindingProvider.ENDPOINT_ADRESS thing is used) or