Re: Apache rampart without encryption -> nullpointerException

2008-02-14 Thread Nandana Mihindukulasooriya
Hi Thomas, Sorry for the late reply. According to the given policy you need to have a encryption crypto defined in the RampartConfig section. Even though you don't have any message parts to be encrypted, you still need an encryption crypto as we have to create an encrypted key in the symm

Re: Apache rampart without encryption -> nullpointerException

2008-02-12 Thread thomasV
Oh boy, hitting myself to the head now. I thought you could specifiy an encryptionToken OR a SignatureToken. i guess the jira issue can be set to completed. Sorry for that... I am using the X509 certificates with a private key. I'm gonna give it a try with the endorsingTokens. Tnx for your help

Re: Apache rampart without encryption -> nullpointerException

2008-02-11 Thread thomasV
Hi Nandana, This is the complete error stack, underneath is the policy xml file Exception in thread "main" org.apache.axis2.AxisFault: Error in creating an encrypted key at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:70) at org.apache.axis2.engine.Phase.in

Re: Apache rampart without encryption -> nullpointerException

2008-02-11 Thread Nandana Mihindukulasooriya
Hi Thomas, > So, this is something i don't get: > I only add add a signatureToken and still rampart tries to add an > encryptionToken?! > It looks like it is impossible to add a signature without an > encryptionToken. -- According to WS - Security Policy Specification, a symmetric binding has to

Re: Apache rampart without encryption -> nullpointerException

2008-02-11 Thread Nandana Mihindukulasooriya
Hi Thomas, > from the certificate authority doesn't allow use for encryption, i get a > "java.security.InvalidKeyException: Wrong key usage" - exception. > So, is there a possibility to use a protectionToken without automatically > loading an encryption key? Can you post the complete stack trace

Re: Apache rampart without encryption -> nullpointerException

2008-02-11 Thread thomasV
Hi, tnx for that quick reply. i'm gonna create the jira issue. i'm a bit stuck with the protectionToken. It does work but if i use this, rampart automatically tries to load an encryption key. The key i received from the certificate authority doesn't allow use for encryption, i get a "java.securi

Re: Apache rampart without encryption -> nullpointerException

2008-02-11 Thread Nandana Mihindukulasooriya
Hi Thomas, This seems a bug in Rampart. Please go on create a JIRA issue [1]. For the moment, you can use protection token property instead of signature token property. That would work. thanks, /nandana [1] - http://issues.apache.org/jira/browse/Rampart On Feb 11, 2008 3:09 PM, thomasV <

Apache rampart without encryption -> nullpointerException

2008-02-11 Thread thomasV
Hi, i'm sort of a webservices newbie and i have to build a WS-client to consume some webservices the government provided for our company. these webservices have ws-security enabled so i'm building the client using apache axis with the rampart module (i'm using version 1.3). The webservices requir