axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Nikolaus (JIRA)" <>
Subject [jira] [Created] (AXIS2-5627) Axis2 1.6.2 Eclipse Plugin generated wrong code - Cannot be accepted by Axis 1.6.2 Server
Date Thu, 06 Feb 2014 12:58:09 GMT
Stefan Nikolaus created AXIS2-5627:

             Summary: Axis2 1.6.2 Eclipse Plugin generated wrong code - Cannot be accepted
by Axis 1.6.2 Server
                 Key: AXIS2-5627
             Project: Axis2
          Issue Type: Bug
          Components: ide plugins
    Affects Versions: 1.6.2
         Environment: Client: Windows Vista, Eclipse Kepler
Server: Ubuntu 12.04.3 LTS;Apache Tomcat/7.0.26, Axis/Rampart 1.6.2

            Reporter: Stefan Nikolaus

I generated a client stub with the Axis 1.6.2 plugin for Eclipse Kepler. With this I call
my webservice, which expects a security header to be set. For this I must set the mustUnderstand
flag to "1". 
The generated code creates a message like this:

        <ns1:Security xmlns:ns1=""
soapenv:mustUnderstand="0" mustUnderstand="1">
        <ns3:MessageID xmlns:ns3="" soapenv:mustUnderstand="0">c5033a8b-1538-4a3c-a21f-c18b290720be</ns3:MessageID>
        <ns3:Action xmlns:ns3="" soapenv:mustUnderstand="0">urn:createActivationSchema</ns3:Action>
        <ns3:To xmlns:ns3="" soapenv:mustUnderstand="0"></ns3:To>
        <ns3:ReplyTo xmlns:ns3="" soapenv:mustUnderstand="0">
        <ns4:IPAddress xmlns:ns4="" soapenv:mustUnderstand="0">localhost</ns4:IPAddress>

The mustUnderstand flag for the "Security" tag is created correctly and set to "1", but additionaly
a mustUnderstand flag is created for all tags in the security header and the value is set
to "0".
This is no problem, if on the server side Axis/Rampart 1.6.1 is installed. But if I use Axis/Rampart
1.6.2 the message cannot be processed.

I got these exceptions:
Caused by: An invalid security token was provided
(An error happened processing a Username Token)


org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed
        at org.apache.rampart.handler.WSDoAllReceiver.processBasic(
        at org.apache.rampart.handler.WSDoAllReceiver.processMessage(
        at org.apache.rampart.handler.WSDoAllHandler.invoke(
        at org.apache.axis2.engine.Phase.invokeHandler(

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message