How to have one shared web service that has multiple URLs pointing to it with different service description pages and WSDLs so that certain clients do not see the laundry list of shared web methods but only the web methods we want them to see from that URL?
Create a "clients only" set of services and they can use the same methods/functions you've already created for the "non-client" area. Also, set the non-client area to require a password and then the clients won't see that area. If I remember right you
set the permission on the non-client area services in IIS.
Remember to mark as answer if this post answered or solved your problem.
Can you provide a link? Not fully following your response.
Example: I have 3 web service customers using one shared web service and all customers require a password to access the web service.
Customer 1: (Me) Full access to web service (all 10 web methods). I get to see the nice IIS web service web page showing the web services with hyperlinks to the sample SOAP requests and the link to the "Service Description"/WSDL page.
Customer 2: Different web service URL with a subset of what I see above (just 4 web methods listed).
Customer 3: Different web service URL with a subset of what I see above (just 3 web methods listed).
I may be able to live with a shared WSDL but would rather not I guess. But if the web service URL listing of web methods was different that would definitely help.
You can achieve this by having multiple endpoints for the same service.
You can create partial class for the wcf service and create multiple endpoints for the same class and then expose 4 methods in one endpoint and 6 in another end point.
that this will give me what I want - namely that my one web service can have multiple custom URL’s (endpoints) and custom WSDL’s (bindings) that only show certain web service methods.
dvfp
Member
54 Points
44 Posts
How to have different WSDLs for different URL's pointing to same web service?
Feb 21, 2012 02:33 PM|LINK
How to have one shared web service that has multiple URLs pointing to it with different service description pages and WSDLs so that certain clients do not see the laundry list of shared web methods but only the web methods we want them to see from that URL?
b471code3
Star
13877 Points
2598 Posts
Re: How to have different WSDLs for different URL's pointing to same web service?
Feb 21, 2012 02:38 PM|LINK
Create a "clients only" set of services and they can use the same methods/functions you've already created for the "non-client" area. Also, set the non-client area to require a password and then the clients won't see that area. If I remember right you set the permission on the non-client area services in IIS.
dvfp
Member
54 Points
44 Posts
Re: How to have different WSDLs for different URL's pointing to same web service?
Feb 21, 2012 02:52 PM|LINK
Can you provide a link? Not fully following your response.
Example: I have 3 web service customers using one shared web service and all customers require a password to access the web service.
Customer 1: (Me) Full access to web service (all 10 web methods). I get to see the nice IIS web service web page showing the web services with hyperlinks to the sample SOAP requests and the link to the "Service Description"/WSDL page.
Customer 2: Different web service URL with a subset of what I see above (just 4 web methods listed).
Customer 3: Different web service URL with a subset of what I see above (just 3 web methods listed).
I may be able to live with a shared WSDL but would rather not I guess. But if the web service URL listing of web methods was different that would definitely help.
kushalrdalal
Contributor
7128 Points
1270 Posts
Re: How to have different WSDLs for different URL's pointing to same web service?
Feb 22, 2012 07:26 PM|LINK
You can achieve this by having multiple endpoints for the same service.
You can create partial class for the wcf service and create multiple endpoints for the same class and then expose 4 methods in one endpoint and 6 in another end point.
My Blog
LinkedIn Profile
dvfp
Member
54 Points
44 Posts
Re: How to have different WSDLs for different URL's pointing to same web service?
Feb 23, 2012 12:33 PM|LINK
Thanks!
I will test this today. This sounds like another good reason to upgrade to WCF from asmx web services.
So are you saying that if I follow the MSDN sample "MultipleEndpoints" http://msdn.microsoft.com/en-us/library/ms751515.aspx
that this will give me what I want - namely that my one web service can have multiple custom URL’s (endpoints) and custom WSDL’s (bindings) that only show certain web service methods.
kushalrdalal
Contributor
7128 Points
1270 Posts
Re: How to have different WSDLs for different URL's pointing to same web service?
Feb 23, 2012 12:41 PM|LINK
Yes.
We have implemented it and it is working really good.
My Blog
LinkedIn Profile