Как я могу подключиться к веб-службе Apache Cxf, размещенной на Apache Tomcat (включена безопасность Ws)?JAVA

Программисты JAVA общаются здесь
Ответить Пред. темаСлед. тема
Anonymous
 Как я могу подключиться к веб-службе Apache Cxf, размещенной на Apache Tomcat (включена безопасность Ws)?

Сообщение Anonymous »

Я использую пример wssec_sign_enc в примерах безопасности ws в jar apacheCxf, р а з в е р н у т о м п о д a p a c h e t o m c a t 7 . 0 . 2 9 . < b r / > М о й ф а й л w e b . x m l : < / p > < b r / > < b r / > < c o d e > & l t ; ? x m l v e r s i o n = " 1 . 0 " e n c o d i n g = " U T F - 8 " ? & g t ; < b r / > & l t ; w e b - a p p x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e " x m l n s = " h t t p : / / j a v a . s u n . c o m / x m l / n s / j a v a e e " x s i : s c h e m a L o c a t i o n = " h t t p : / / j a v a . s u n . c o m / x m l / n s / j a v a e e h t t p : / / j a v a . s u n . c o m / x m l / n s / j a v a e e / w e b - a p p _ 3 _ 0 . x s d " i d = " W e b A p p _ I D " v e r s i o n = " 3 . 0 " & g t ; < b r / > & l t ; d i s p l a y - n a m e & g t ; T e s t i n g W e b W s S e c u r i t y & l t ; / d i s p l a y - n a m e & g t ; < b r / > & l t ; w e l c o m e - f i l e - l i s t & g t ; < b r / > & l t ; w e l c o m e - f i l e & g t ; i n d e x . h t m l & l t ; / w e l c o m e - f i l e & g t ; < b r / > < b r / > & l t ; / w e l c o m e - f i l e - l i s t & g t ; < b r / > & l t ; s e r v l e t & g t ; < b r / > & l t ; d e s c r i p t i o n & g t ; A p a c h e C X F E n d p o i n t & l t ; / d e s c r i p t i o n & g t ; < b r / > & l t ; d i s p l a y - n a m e & g t ; c x f & l t ; / d i s p l a y - n a m e & g t ; < b r / > & l t ; s e r v l e t - n a m e & g t ; c x f & l t ; / s e r v l e t - n a m e & g t ; < b r / > & l t ; s e r v l e t - c l a s s & g t ; o r g . a p a c h e . c x f . t r a n s p o r t . s e r v l e t . C X F S e r v l e t & l t ; / s e r v l e t - c l a s s & g t ; < b r / > & l t ; l o a d - o n - s t a r t u p & g t ; 1 & l t ; / l o a d - o n - s t a r t u p & g t ; < b r / > & l t ; / s e r v l e t & g t ; < b r / > & l t ; s e r v l e t - m a p p i n g & g t ; < b r / > & l t ; s e r v l e t - n a m e & g t ; c x f & l t ; / s e r v l e t - n a m e & g t ; < b r / > & l t ; u r l - p a t t e r n & g t ; / s e r v i c e s / * & l t ; / u r l - p a t t e r n & g t ; < b r / > & l t ; / s e r v l e t - m a p p i n g & g t ; < b r / > & l t ; s e s s i o n - c o n f i g & g t ; < b r / > & l t ; s e s s i o n - t i m e o u t & g t ; 6 0 & l t ; / s e s s i o n - t i m e o u t & g t ; < b r / > & l t ; / s e s s i o n - c o n f i g & g t ; < b r / > & l t ; c o n t e x t - p a r a m & g t ; < b r / > & l t ; p a r a m - n a m e & g t ; c o n t e x t C o n f i g L o c a t i o n & l t ; / p a r a m - n a m e & g t ; < b r / > & l t ; p a r a m - v a l u e & g t ; W E B - I N F / c x f - b e a n s . x m l & l t ; / p a r a m - v a l u e & g t ; < b r / > & l t ; / c o n t e x t - p a r a m & g t ; < b r / > & l t ; l i s t e n e r & g t ; < b r / > & l t ; l i s t e n e r - c l a s s & g t ; o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r L i s t e n e r & l t ; / l i s t e n e r - c l a s s & g t ; < b r / > & l t ; / l i s t e n e r & g t ; < b r / > & l t ; / w e b - a p p & g t ; < b r / > < / к о д > < b r / > < b r / > м о й ф а й л c x f - b e a n s . x m l < / p > < b r / > < b r / > < c o d e > & l t ; ? x m l v e r s i o n = " 1 . 0 " e n c o d i n g = " U T F - 8 " ? & g t ; < b r / > & l t ; b e a n s x m l n s = " h t t p : / / w w w . s p r i n g f r a m e w o r k . o r g / s c h e m a / b e a n s " < b r / > x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e " x m l n s : j a x w s = " h t t p : //cxf.apache.org/jaxws"
xmlns:cxf="http://cxf.apache.org/core" xmlns:wsa="http://cxf.apache.org/ws/addressing"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:wsrm-policy="http://schemas.xmlsoap.org/ws/2005/02/rm/policy"
xmlns:wsrm-mgr="http://cxf.apache.org/ws/rm/manager"
xsi:schemaLocation=" http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configura ... p-conf.xsd http://schemas.xmlsoap.org/ws/2005/02/rm/policy http://schemas.xmlsoap.org/ws/2005/02/r ... policy.xsd http://cxf.apache.org/ws/rm/manager http://cxf.apache.org/schemas/configura ... anager.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/b ... -beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd ">





















































Подробнее здесь: https://stackoverflow.com/questions/183 ... s-security
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «JAVA»