• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to get userName token from WSPasswordCallback

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new to axis and using rampart to authenticate the username and cleartext password passed in the SOAPHeader using the WSPasswordCallback.
How can this userName token be made available to the AXIS service? I see that the MessageContext is available in the service which can be used to retrieve the SOAPHeaders. However it will have to be parsed again to retrieve the userName token. Is there a way to get the UserName token used by the callback in the service?
I am interested in learning the best practice to do this.

Here is the services.xml

<service name="SomeWebService"
targetNamespace="http://com.mycom/SomeWebService/service/"> >
<description>Generic Service</description>
<parameter name="ServiceClass" locked="false">com.mycom.service.SomeWebService</parameter>
<operation name="callService">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</operation>

<module ref="rampart" />

<parameter name="InflowSecurity">
<action>
<items>UsernameToken</items>

<passwordCallbackClass>
com.mycom.service.PWHandlerServer
</passwordCallbackClass>
</action>
</parameter>

</service>


Any help would be appreciated.

Best Regards,
-sarathy
 
sarathy natarajan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found the answer for my question here: http://wso2.org/library/169
 
reply
    Bookmark Topic Watch Topic
  • New Topic