|
|
|
ws-security в SOAP
|
|||
|---|---|---|---|
|
#18+
Делаю сервис с ws-security в apache cxf,wss4j. Пытаюсь добавить подпись на стороне сервера: Код: java 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. server.properties: Код: java 1. 2. 3. 4. 5. Получаю ошибку: WSHandler: application provided null or empty password Что делаю не правильно? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.04.2015, 14:25 |
|
||
|
ws-security в SOAP
|
|||
|---|---|---|---|
|
#18+
Клиент почему-то хочет пароль, чтобы присоединится к серверу. Если у вас аутентификация по сертификату должна происходить, значит чего-то не доконфигурировали для этого. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.04.2015, 14:36 |
|
||
|
ws-security в SOAP
|
|||
|---|---|---|---|
|
#18+
BlazkowiczКлиент почему-то хочет пароль, чтобы присоединится к серверу. Если у вас аутентификация по сертификату должна происходить, значит чего-то не доконфигурировали для этого. Хочу начать с простого. Сделать подпись ответа на стороне сервера, а клиент пусть отправляет запрос без подписи. Это же возможно чтобы подпись была только на стороне сервера? Или что Вы имели ввиду под "Клиент почему-то хочет пароль"? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.04.2015, 14:49 |
|
||
|
ws-security в SOAP
|
|||
|---|---|---|---|
|
#18+
Стэктрейс покажите. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.04.2015, 14:53 |
|
||
|
ws-security в SOAP
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, SUN IOLA SunRsaSign SunJSSE SunJCE SunJGSS SunSASL XMLDSig SunPCSC ... 01.04.2015 17:00:49 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass INFO: Creating Service { http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}DiscoveryProxy from class org.apache.cxf.jaxws.support.DummyImpl 01.04.2015 17:00:55 org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging WARNING: Interceptor for { http://jaxws/}ArithmeticServiceService#{http://jaxws/}add has thrown exception, unwinding now org.apache.cxf.binding.soap.SoapFault: Security processing failed. at org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:280) at org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:141) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272) at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:83) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355) at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319) at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:66) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:662) Caused by: org.apache.ws.security.WSSecurityException: WSHandler: application provided null or empty password at org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:1048) at org.apache.ws.security.action.SignatureAction.execute(SignatureAction.java:43) at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:232) at org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.access$200(WSS4JOutInterceptor.java:52) at org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:265) ... 25 more ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.04.2015, 14:59 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=56&tid=2122442]: |
0ms |
get settings: |
9ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
42ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
3ms |
| others: | 13ms |
| total: | 138ms |

| 0 / 0 |

Извините, этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
... ля, ля, ля ...