This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Axis 2 & Rampart - Missing Security Header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis 2 & Rampart - Missing Security Header" Watch "Axis 2 & Rampart - Missing Security Header" New topic
Author

Axis 2 & Rampart - Missing Security Header

Alan Macfarlanes
Greenhorn

Joined: Jun 01, 2012
Posts: 6
I'm connecting to a secure service.

I have a SOAP UI project configured to use a jks file to provide the certificate, along with appropriate security settings to allow me to get a valid response.

I've have used AXIS 2 and Rampart to create a SOAP request from a JAVA project. Using TCPMon I've managed to grab the SOAP request.

When the request runs in the JAVA project, I just get the response:

org.apache.axis2.AxisFault: Missing wsse:Security header in request

but if I take the same request, captured in TCPMon and put it in a SOAP UI project, I get a response successfully.

Anyone got any ideas?
(Using Axis 2 1.5.1 and Rampart 1.5.1)

Thanks Alan
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Post the complete request.
Alan Macfarlanes
Greenhorn

Joined: Jun 01, 2012
Posts: 6



I've removed some of the encrypted values.
THis is the request generated by AXIS 2

Alan Macfarlanes
Greenhorn

Joined: Jun 01, 2012
Posts: 6


Based on the policies from the Rampart samples
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis 2 & Rampart - Missing Security Header
 
Similar Threads
Axis2 and mustUnderstand
Axis fault
how to consume secured axis2 service in .NET
Axis webservice
org.apache.axis2.AxisFault: Missing wsse:Security header in request