Gws_01Stub.UserAuthElement userAuthElement = new Gws_01Stub.UserAuthElement(); userAuthElement.setLogin(login); userAuthElement.setPassword(pass); Gws_01Stub.SessionBooleanResponseElement response = serviceStub.login(userAuthElement); if (!response.getResult()){ throw new Exception(response.getDescription()); }