This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes Web Service question - Need your suggestion. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Web Service question - Need your suggestion." Watch "Web Service question - Need your suggestion." New topic
Author

Web Service question - Need your suggestion.

venugopal krishnan
Greenhorn

Joined: Sep 14, 2006
Posts: 1
Guys,

I am newbie to web services.

I implemented one example web service in which I am exposing 3 different methods to the outside world.

MyService exposing the following operations to the outside world,

OperationA
OperationB
OperationC

3 different clients (remote client) need an access to my webservice.

Client - A need an access only to OperationA
Client - B need an access only to OperationB
Client - C need an access to all OperationA, OperationB, OperationC

In MyServices.wsdl document, I am exposing all the above operations. If Client - A view my WSDL, they will know about all my operations but I do not want to expose it to the client who doesn't need it.

How can I restrict clientA and ClientB to view only OperationA and OperationB?

Your response is greatly appreciated.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Originally posted by venugopal krishnan:
A view my WSDL, they will know about all my operations but I do not want to expose it to the client who doesn't need it.


Well in that case you will have to give each client a separate WSDL and service endpoint. Of course "client A" "Web Service Operation A" should call exactly the same "Service Operation Implementation A" as the "client C" "Web Service Operation A" would. Similarly the "client B" "Web Service Operation B" should call exactly the same "Service Operation Implementation B" as the "client C" "Web Service Operation A" would.


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Web Service question - Need your suggestion.
 
Similar Threads
RESTful Web Services:About the book
Design Mental Roadblock
Securing a Web Service
Schema Validation on Axis Call Parameters
what is "Proxy"?