Can CXF services be exposed selectively to different consumers/clients?
for eg., if I have methods A, B, C, D in my WSDL, can i make only A, C available for one consumer and all the four methods for a different consumer?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Web service is just a URL and calling a WS method is a matter of sending properly formatted request wrapped in an envelope. From that description you can probably guess that you cannot hide or block some methods from certain clients. Your clients are free to send any request they want. The fact that the method does not exist in WSDL (if you manage to send different WSDL to different client) doesn’t mean that method will disappear from service.
It’s up to you to discover which client tries to connect and either allow or deny access to certain methods. Allow or deny are keywords here. You must implement some notion of authorization and authentication on top of your services and block some clients if they don’t have permissions to certain methods.