Axis2 + Rampart
От: Lep  
Дата: 16.07.09 14:03
Оценка:
Клиент на 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);


Но в вылетающем сообщении никаких хэдеров нет, сразу идет боди.
axis2 rampart ws
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.