The moose likes Web Services and the fly likes axi2/java and axis2/c adb authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "axi2/java and axis2/c adb authentication" Watch "axi2/java and axis2/c adb authentication" New topic

axi2/java and axis2/c adb authentication

Jane Lynn

Joined: Dec 05, 2007
Posts: 4

I have an existing project that uses axis2/c 1.4 at the client side and axis2/java 1.4 at the server side. We made use of the adb support in both the client and server side. It works fine.

Now we would like to add authentication to it. So I performed the following steps:
1. copied the rampart-1.3.mar files downloaded from axis2/java 1.4 separate release to the WEB-INF/modules. Copied the related jars to WEB-INF/lib.
2. Added the following lines to my webservice's services.xml:
<module ref="rampart" />
<parameter name="InflowSecurity">
<items>UsernameToken Timestamp</items>
3. I tried with a Java test client first:
I added the following lines to the client after the stub is newed:
HttpTransportProperties.ProxyProperties proxyProperties = new HttpTransportProperties.ProxyProperties();


//in order to makesure that we use HTTP 1.0
//.... follows by the codes to issue calls to the server...

4. When I tried to run my test program, it returns:
org.apache.axis2.AxisFault: WSDoAllReceiver: Incoming message does not contain required Security header
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
at org.apache.axis2.description.OutInAxisOperationClient.send(
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
at org.apache.axis2.client.OperationClient.execute(

5. I also noticed that the SOAPMonitor stops to receive the incoming request after the above changes.

What have I done wrong? Any advices would be appreciated!

Jane Lynn

Joined: Dec 05, 2007
Posts: 4
B.T.W. I copied the client stub code from:


I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: axi2/java and axis2/c adb authentication
It's not a secret anymore!