File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes axis 1.4/ wws4j signing and .net problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "axis 1.4/ wws4j signing and .net problem" Watch "axis 1.4/ wws4j signing and .net problem" New topic

axis 1.4/ wws4j signing and .net problem

John Farrel
Ranch Hand

Joined: May 24, 2010
Posts: 88

I've been told I need to send requests to a .net service. They have supplied me with this policy document:

Google tells me I can do this on my out-going messages to get them to use

These constants are in the addressing.1.0.jar. The problem I have is that I cannot find this jar for download *anywhere*. not from the Apache website, certainly.

John Farrel
Ranch Hand

Joined: May 24, 2010
Posts: 88

Problem solved:

I found an archived copy of wss4j (1.5.0) which includes addressing.1.0.jar. More recent builds do not include this library.

Just before calling the web service, set

I needed to sign these elements of the message:


so the wsdd needed to change to this:

<deployment xmlns="" xmlns:java="">
<transport name="http" pivot="javarg.apache.axis.transport.http.HTTPSender"/>
<globalConfiguration >
<parameter name="addressing.sendReplyTo" value="true"/>
<parameter name="enableNamespacePrefixOptimization" value="false"/>
<requestFlow >

<handler type="javarg.apache.axis.message.addressing.handler.AddressingHandler">
<parameter name="referencePropertyNames" value="{Element}{}Action;{Element}{}MessageID;{Element}{}ReplyTo;{Element}{}To;{Element}{}From"/>

<handler type="">
<parameter name="action" value="Timestamp Signature"/>
<parameter name="action" value="Timestamp Signature"/>
<parameter name="user" value="username"/>
<parameter name="passwordCallbackClass" value="classname"/>
<parameter name="passwordType" value="PasswordText"/>
<parameter name="signaturePropFile" value=""/>
<parameter name="signatureKeyIdentifier" value="DirectReference"/>
<parameter name="signatureParts" value="{Element}{}Action;{Element}{}MessageID;{Element}{}ReplyTo;{Element}{}To;{Element}{}From;{Element}{}Timestamp;{Element}{}Body"/>
</requestFlow >
</globalConfiguration >

Sarath Vk

Joined: Sep 23, 2012
Posts: 1
Hi John,

We are also facing the same Issue.Can you please assist us to resolve the issue.

Sarath VK
I agree. Here's the link:
subject: axis 1.4/ wws4j signing and .net problem
It's not a secret anymore!