axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murali Krishnan <>
Subject Rampart throws NPE
Date Wed, 03 Oct 2007 18:19:56 GMT
I'm trying to call a simple service deployed in Axis2. I'm trying to enforce that this service
requires a SamlToken whenever it is called... If I invoke this service with a soap request
that doesn't have any security headers, I get the below exception at the server. If I disenagage
'rampart' for the service, there is no problem. Am I doing anything wrong in this scenario?


        at org.apache.rampart.RampartEngine.process(
        at org.apache.rampart.handler.RampartReceiver.invoke(
        at org.apache.axis2.engine.Phase.invoke(
        at org.apache.axis2.engine.AxisEngine.invoke(
        at org.apache.axis2.engine.AxisEngine.receive(
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
        at org.apache.axis2.transport.http.AxisServlet.doPost(
        at javax.servlet.http.HttpServlet.service(
        at javax.servlet.http.HttpServlet.service(

The soap request is like this:

POST /axis2/services/SimpleService HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:echo"
User-Agent: Axis2
Content-Length: 244

<?xml version='1.0' encoding='UTF-8'?>
            <name>Hello world</name>

The services.xml is like this below:

<service name="SimpleService">
    <parameter name="ServiceClass" locked="false"></parameter>
    <operation name="echo">
        <messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
    <operation name="add"/>
    <module ref="rampart"/>
    <!--  <module ref="addressing"/>-->

Got a little couch potato? 
Check out fun summer activities for kids. 
View raw message