说一点关于这个方面的基认证方面需要设置的东东吧:
就拿上面这个工程中的GetHostname方法为例: 如果是HTTP basic authentication,那么需要设置的步骤如下: File->preferences->http settings中的 Authenticate preemptively选中, 然后在上图中的Aut(authenticate)中添加用户名和密码。 如果采用的是ws-security中的usernametoken方式,则需做如下设置: 双击devicemgmt这个项目出现如下图: 选择Security Configurations这个tab,然后选择outgoing ws-security configurations 点击第一个“+”添加ws-security configuration 点击第二个“+”添加wss entry: Password Type应该会有你所需要的类型,选中,那么在运行某个方法时,第一个图中选中 outgoing wss:(你已经定义的名称),那么就可以实现usernametoken(password 为text) 的形式。
|
|
来自: ebonyzhang > 《java》