Hi Mai Sun,

>  is there a way to set username and
> password programatically when invoking a web service that requires
> WS-Security header?

use
    ServiceClient sc = stub._getServiceClient();
    Options options = sc.getOptions();
    options.setUserName("username");
    options.setPassword("password");

take a look at this tutorial [1] for more information.

thanks,
/nandana

[1] - http://wso2.org/library/3190

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to