This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache CXF Web Service - "Unauthorized Access"

 
drave lai
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I would to ask is there any way for our CXF web service for example: http://www.abc.com/search.wsdl when there is any unauthorized person access on the url, then redirect him/her to a page with message "Unauthorized Access"? if any, could anyone help me for any example that I can refer to?

Appreciate for any body helps.
 
Abhay Agarwal
Ranch Hand
Posts: 1375
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Java ranch !!

One way is to implement WS Security feature for web service using APache CXF Framework
http://cxf.apache.org/docs/secure-jax-rs-services.html
http://www.jroller.com/gmazza/entry/cxf_usernametoken_profile

Second way is to restrict access through web container (if web service is deployed in Web container) by using web.xml
 
Abhay Agarwal
Ranch Hand
Posts: 1375
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is you service is SOAP based or REST based?
Your solution approach may or may not vary based on web service type
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic