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 sen

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 arch

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 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 > sun.net.www.http.PosterOutputStream b

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 wrote: > 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

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: 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 MyOwnServiceListGeneratorSe

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 qu

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: http://cxf.547215.n5.nabble.com/How-to-publish-simple-Service-programatically-CXFNonSpringServlet-Tomcat-Ref

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 wrote: > In your service side CallbackHandler, replace: > > < > if (pc.getIdentifier().equals(this.username)) { > > if (!pc.getPassword().equal

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(

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) public class ServerPasswordCallback implements CallbackHandler { private String username; private String password; public String getUs

Register my web service with the jaxws on fly.

2011-06-27 Thread sudhakar
Hi, I am creating a service HelloWorld.java (interface which has method sayHello(), class having @webservice ) an implementation class HelloWorldImpl.java ( @webservice (endpointInterface = HelloWorld.java) These above two classes i am creating on fly. Now i need to publish these service into se

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 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 implementa

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, amon

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 implementati

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 com.fdt.sdl.security.authentication.util.ServerPasswordCallback.handle(ServerPasswordCall

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 wrote: > Hi, >Thanks for your prompt response. > > When I add WSS4j 1.6.1 the below exception is coming. > org.springframework.beans.factory.BeanDefinitionStoreException: Fact

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 java.lang.

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

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 wrote: > Hi > I am getting the following exception while replacing existing cxf 2.3.3 jar > with Apache CXF 2.4.1 > java.lang.NoSuchMethodError

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.NoSuchMethodError: org.apache.ws.security.util.WSSecurityUtil.decodeAction(Ljava/lang/String;Ljava/util/List;

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 = 'http://ws.ebizcard.com/app"; xmlns:soapenv

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 h

Re: WS-I Basic Profile compliance

2011-06-27 Thread Glen Mazza
CXF implements the JAX-WS specification, a superset of the functionality allowed by the WS-I BP specification (any version). The latter is a set of architectural styles for the developer to implement or not implement as he/she chooses. It is similar to a word processor like OpenOffice not enf

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 t