Hello!

I'm new with Axis and WS; I'm trying to build a webservice which requires
authentication, only username & password (no encryption needed). I wrote a
WSDL file and then I generated the java client & server classes in eclipse
(like with wsdl2java). Now the WS is working but with no authentication.
I started following this tutorial:
http://www.javaranch.com/journal/200709/web-services-authentication-axis2.htmland
now I can get authentication working in the server side (I suppose),
adding the rampart module and this code in the services.xml:
         <module ref="rampart" />
        <parameter name="InflowSecurity">
            <action>
                <items>UsernameToken Timestamp</items>
                <passwordCallbackClass>
                    tests.security.PasswordCallBackHandler
                </passwordCallbackClass>
               </action>
        </parameter>
But I don't know how to add the authentication headers with the generated
code in the client side. Someone have some guidelines?

Thanks!

Reply via email to