You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Mark Badorrek <mb...@avoga.com.au> on 2007/02/07 04:48:43 UTC

Programatically assigning the usernametoken

Dear all,
 
I'm moving across from Axis 1.4 to Axis2.
In Axis2 I have to call a webservice that requires a username token plus password.
Is there a way to programmatically supply both?
 
Alternatively, I can supply a configuration file with a passwordCallback class etc. But when using this approach, I have no idea how to avoid supplying the username with the config file. I imagine that there is a simply way to avoid hard-coding the username token. Can anyone help?
 
Cheers.