I'm developing my Axis2 JAX-WS Client to consume the web service.
I'm using Axis2 1.5.4 and Rampart 1.5.1
When I ran the client with Axis2 1.4.1 and Rampart 1.4, it worked.
But when I try to use Axis2 1.5.x versions, I'm getting the null pointer exception
at org.apache.ws.security.message.token.X509Security.getX509Certificate(X509Security.java:94)
at org.apache.ws.security.processor.BinarySecurityTokenProcessor.getCertificatesTokenReference(BinarySecurityTokenProcessor.java:109)
When I compare the debug log of both, I could see that, rampart is receiving the response.
I could see the statement
"*********************** RampartReceiver received"
But after that I could not see the statement
"*********************** WSDoAllReceiver recieved".
I could see the WSDoAllReceiver statement in the log which is working(Axis2 1.4.1+Rampart 1.4).
I'm attaching the debug log.
I'm engaging the rampart module in my client.axis2.xml.
My policy.xml contains just the below content
<ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy">
</ramp:RampartConfig>
I'm loading the Policy.xml in the client like this:
My crypto.properties is like below :
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.password=ABC5JHGFWWEDSWCT
org.apache.ws.security.crypto.merlin.file=srvc_claims_sit.jks
My WSDL has the below security configuration
Can some one please help me in resolving this issue please.