如果需要,将用户名/密码组合显式传递给客户机程序,如下所示:
((Stub)yourWSPort)._setProperty(Stub.USERNAME_PROPERTY, "yourUsername"); ((Stub)yourWSPort)._setProperty(Stub.PASSWORD_PROPERTY, "yourPassword");