Re: SpnegoContextToken - Security Token support for CXF

2011-06-27 Thread Colm O hEigeartaigh
Hi Sumit, Please submit a patch and I'll be happy to review it. f) Also the security token received from service is encrypted as per http://schemas.xmlsoap.org/2005/02/trust/spnego#GSS_Wrap, and WSS4j dosent support it, so you need to wite logic to decrypt it. I'd prefer to push this out to

Re: SpnegoContextToken - Security Token support for CXF

2011-06-27 Thread Sumit Pathak
I need to confirm on one thing here, Can Dan or any other cxf expert help me, please:- a) Curerntly while sending message to end point for secure token, i need to add header explicitly can anybody point me where cxf does add headers in outgoing message, so that i can take a look that why its not

Can't Process HTTP request sent by XMLHttpRequest

2011-06-27 Thread kkwang
Hi all, I have a CXF-based soap service running on tomcat. I'm trying to invoke its service methods from a web page by using XMLHttpRequest. I construct the soap request xml and pass the xml string to XMLHttpRequest.send() method. For example: var xml = 'soapenv:Envelope

java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11

2011-06-27 Thread Vivek Alampally
Hi I am getting the following exception while replacing existing cxf 2.3.3 jar with Apache CXF 2.4.1 java.lang.NoSuchMethodErrorhttp://download.oracle.com/javase/6/docs/api/java/lang/NoSuchMethodError.html:

Re: java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11

2011-06-27 Thread Colm O hEigeartaigh
They are incompatible - you must use WSS4J 1.6.x with CXF 2.4.x. Colm. On Mon, Jun 27, 2011 at 2:47 PM, Vivek Alampally vivek2...@gmail.com wrote: Hi I am getting the following exception while replacing existing cxf 2.3.3 jar with Apache CXF 2.4.1

Re: SpnegoContextToken - Security Token support for CXF

2011-06-27 Thread Daniel Kulp
On Sunday, June 26, 2011 7:21:47 PM Sumit Pathak wrote: I need to confirm on one thing here, Can Dan or any other cxf expert help me, please:- a) Curerntly while sending message to end point for secure token, i need to add header explicitly can anybody point me where cxf does add headers in

Re: java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11

2011-06-27 Thread Vivek Alampally
Hi, Thanks for your prompt response. When I add WSS4j 1.6.1 the below exception is coming. org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public java.lang.Object org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create()] threw exception; nested exception is

Re: java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11

2011-06-27 Thread Vivek Alampally
Sorry this exception got resolved when I removed XMLSchema1.4.7.jar On Mon, Jun 27, 2011 at 10:14 AM, Vivek Alampally vivek2...@gmail.comwrote: Hi, Thanks for your prompt response. When I add WSS4j 1.6.1 the below exception is coming.

Re: java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11

2011-06-27 Thread Vivek Alampally
Here is the actual problem when integrating CXF 2.4.1 with WSS4J 1.6.1. So does this change require change in configuration.. Can anybody please help me in fixing this issue. java.lang.NullPointerException at

Submitting Example Unit test for Cxf using LocalTransportFactory

2011-06-27 Thread Mahesh Koli
Guys, When I first started out to look around for example for writing an unit test for Cxf I couldn't find any specific solution on the net. I have managed to write a working example using a Spring config and would like to upload it to Cxf websites - Articles section as a reference

A question of choice

2011-06-27 Thread David Sills
All: A question for designers out there who wish to opine on best practices or advise me about an upcoming issue: we have an essentially RPC web service being considered for conversion to a RESTful one. Apologies for the length of the post before it even begins: The current SOAP web service,

Re: java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11

2011-06-27 Thread Colm O hEigeartaigh
In WSS4J 1.6 the password is not supplied to the CallbackHandler, only the username. The CallbackHandler is expected to supply the password to the default Validator (UsernameTokenValidator) in this case. If you wish to implement some custom scenario, you must implement your own Validator

Re: java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11

2011-06-27 Thread Vivek Alampally
Hi Colm, Do you have any link pointing to how this can be done. I just need to have a username password for existing web service. For this do I need to write a custom Validator. Can I use existing default UsernameTokenValidator? Thanks, Vivek. On Mon, Jun 27, 2011 at 10:55 AM, Colm

Re: java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11

2011-06-27 Thread Vivek Alampally
Sorry, I might be irritating you but this is what I have done. Server Side (Web service side) jaxws:inInterceptors bean class=org.apache.cxf.binding.soap.saaj.SAAJInInterceptor / bean class=org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor

Re: java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11

2011-06-27 Thread Colm O hEigeartaigh
In your service side CallbackHandler, replace: if (pc.getIdentifier().equals(this.username)) { if (!pc.getPassword().equals(this.password)) { throw new IOException(Invalid password); } } else{ throw new IOException(Invalid Identifier); } with if (pc.getIdentifier().equals(this.username)) {

Re: java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11

2011-06-27 Thread Vivek Alampally
Thanks Colm, This works. But I have a question, why the validators are introduced in WSS4J 1.6. On Mon, Jun 27, 2011 at 11:58 AM, Colm O hEigeartaigh cohei...@apache.orgwrote: In your service side CallbackHandler, replace: if (pc.getIdentifier().equals(this.username)) { if

Re: How to publish simple Service programatically (CXFNonSpringServlet , Tomcat, ReflectionServiceFactoryBean) ?

2011-06-27 Thread sudhakar
The above example, when i am trying to code same way i am getting type cast exception for ServerFactoryBean factory = new ServiceFactoryBean(); Any help? -- View this message in context:

OutOfMemoryError using JAX-RS Client API while PUT'ing large entities

2011-06-27 Thread Stephen Evanchik
Hi everyone, I am using CXF 2.4.0 and having trouble issuing a PUT with a large payload (100MB+ but this is dependent on the JVM heap size). I receive an OutOfMemoryError originating from sun.net.www.http.PosterOutputStream because the Content-Length is not sent and chunking is not enabled. My

Re: Customization of service list page

2011-06-27 Thread lynnifer58
I was able to get the service list customized with cxf 2.4.0 thanks to Sergey's ideas. Here are some steps I took: created MyOwnCXFServlet that extends CXFServlet - contains MyOWnServletController created MyOwnServletController that extends ServletController - contains

Re: How to publish simple Service programatically (CXFNonSpringServlet , Tomcat, ReflectionServiceFactoryBean) ?

2011-06-27 Thread Daniel Kulp
On Monday, June 27, 2011 10:21:13 AM sudhakar wrote: The above example, when i am trying to code same way i am getting type cast exception for ServerFactoryBean factory = new ServiceFactoryBean(); Any help? It should be: ServerFactoryBean factory = new ServerFactoryBean(); Dan --

Re: A question of choice

2011-06-27 Thread Sergey Beryozkin
HI Thanks for this info, I'll try to get back to later during the next few days Cheers, Sergey On Mon, Jun 27, 2011 at 3:53 PM, David Sills dsi...@datasourceinc.com wrote: All: A question for designers out there who wish to opine on best practices or advise me about an upcoming issue: we

Re: OutOfMemoryError using JAX-RS Client API while PUT'ing large entities

2011-06-27 Thread Sergey Beryozkin
Hi On Mon, Jun 27, 2011 at 7:25 PM, Stephen Evanchik evanc...@gmail.com wrote: Hi everyone, I am using CXF 2.4.0 and having trouble issuing a PUT with a large payload (100MB+ but this is dependent on the JVM heap size). I receive an OutOfMemoryError originating from

Re: Access SOAP Body on server side

2011-06-27 Thread kparekh78
Great! I tried this today with interceptor option ... and I was able to get hold of SoapMessage and attachments as well ! Thanks a ton. -- View this message in context: http://cxf.547215.n5.nabble.com/Access-SOAP-Body-on-server-side-tp4506519p4529910.html Sent from the cxf-user mailing list

Java client .NET service Response: Error: Value cannot be null. Parameter name: s

2011-06-27 Thread mahesh
My client request encrypted with WS security policy is successfully decrypted by the .NET WCF service. Service returns error Response: Error: Value cannot be null. Parameter name: s I am thinking s is the prefix on the body tag also the namespaces arent matching below are examples or what I am