我有一个WSDD与wssj4-1.5.12配合得很好。它看起来像这样:
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
<globalConfiguration >
<requestFlow >
<handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
<parameter name="action" value="UsernameToken"/>
<parameter name="passwordType" value="PasswordText"/>
<parameter name="passwordCallbackClass" value="my.domain.Callback"/>
</handler>
</requestFlow >
</globalConfiguration >
</deployment>
然而,在切换到wss4j-1.6.10之后,我得到了一个ClassNotFoundException:
java.lang.ClassNotFoundException: org.apache.ws.axis.security.WSDoAllSender
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
...
似乎WSDoAllSender不再属于wss4j-1.6.4 API。但是,我似乎无法找到它的替代品。 wss4j是否仍支持SOAP连接的UsernameToken?什么是WSDoAllSender的替换类?
谢谢。