aspose file tools*
The moose likes Web Services and the fly likes problem in configure wss4j in axis 1.4 with JBoss application server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "problem in configure wss4j in axis 1.4 with JBoss application server" Watch "problem in configure wss4j in axis 1.4 with JBoss application server" New topic
Author

problem in configure wss4j in axis 1.4 with JBoss application server

prasanna kalvit
Greenhorn

Joined: Dec 04, 2008
Posts: 5
Hello freinds,
I am trying to impliment request header security with WSS4j in Axis 1.4.... ok while calling the server side services im encountering the following error please help me out since im struggling with it for long time ... im not using any encryption



org.apache.xml.security.c14n.CanonicalizationException: Element ns1:a has a relative namespace: ns1="servicename"



========================================================================
server side setup -- In deploy.wsdd file i have added following param
========================================================================

<requestFlow>
<handler type="javarg.apache.ws.axis.security.WSDoAllReceiver">
<parameter name="passwordCallbackClass" value="services.PWCallback"/>
<parameter name="action" value="UsernameToken"/>
</handler>
</requestFlow>



========================================================================
Clientside Setup - created client_deploy.wsdd file
========================================================================
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<transport name="http" pivot="javarg.apache.axis.transport.http.HTTPSender"/>
<globalConfiguration >
<requestFlow >
<handler type="javarg.apache.ws.axis.security.WSDoAllSender" >
<parameter name="action" value="UsernameToken"/>
<parameter name="user" value="wss4j"/>
<parameter name="passwordType" value="PasswordText" />
<parameter name="passwordCallbackClass" value="samples.userguide.example7.PWCallback"/>
</handler>
</requestFlow >
</globalConfiguration >
</deployment>

========================================================================
Client Side JAVA File where in serviceis invoked
========================================================================
System.setProperty("axis.ClientConfigFile","D:\\Jboss4_axis\\sample\\sample.war\\WEB-INF\\classes\\client_deploy.wsdd");
Service service = new Service();
QName qn = new QName("urn:Name", "Serviceformname");


call.setUsername("wss4j");
call.setProperty("action","UsernameToken");
call.setProperty(WSConstants.PASSWORD_TYPE_ATTR,WSConstants.PASSWORD_TEXT);
call.setProperty(WSHandlerConstants.PW_CALLBACK_CLASS,"samples.userguide.example7.PWCallback");

========================================================================
Please revert back sooooooooooon


Regards
P Kalvit

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in configure wss4j in axis 1.4 with JBoss application server
 
Similar Threads
Axis + WSS4J, one time authentication?
WS Security with Axis
digest authentication on client side implementation.
IOException: Keystore was tampered with, or password was incorrect
Testing clients of ws-secured web service