Клиент на axis2 к веб-сервису.
Подскажите, как можно добавить WSE header с логином и паролем, к моему сообщению?
Пробую так:
ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem("repositories", null);
SubscriberOperationsStub service = new SubscriberOperationsStub(ctx, url);
ServiceClient sc = service._getServiceClient();
sc.engageModule("rampart");
Options options = sc.getOptions();
options.setUserName("login");
options.setPassword("password");
response = service.subscriberInquiryForPostPaid(request);
Но в вылетающем сообщении никаких хэдеров нет, сразу идет боди.