This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Web Services and the fly likes Rampart/Axis2 not generating Security Header. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Rampart/Axis2 not generating Security Header. " Watch "Rampart/Axis2 not generating Security Header. " New topic

Rampart/Axis2 not generating Security Header.

O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

Hello all,

i hope someone here can help as i've spent nearly 4 days trying to get this to work. I am basicly trying to follow the example on the "Developing Web Sevices with Apache Axis2".

Everything has worked well so far but i am stuck at digitally signing SOAP messages.

Here is what i am trying to do. I have a P12 file that i want to use to sign the soap message. As described in the guide, i created this config file called "rampart-config". Notice that i've left the password entry blank as i would like to enter the password dynamically.

And here is my client. The client is basically gets the password via the MD5 has function. This password is then used to open the PKCS12 file to access the key to sign the SOAP message.

And Finally here is the WSDL File.

The problem i have with the above is that when i run it, the security header is not generated and i dont get any error to give me a hint as to what the problem is. Here is the SOAP message that is generated as shown via TCPMon

I am using the following,

Apache Axis2 v1.3
Rampart 1.3
and Java 1.5

I would really appreciate any help or guidance as to what i am doing wrong.

Thanks in advance.
subject: Rampart/Axis2 not generating Security Header.
jQuery in Action, 3rd edition