I have a web service that implements two contracts:
[ServiceContract]
public interface IServiceA
{
[OperationContrcat]
void OpertationA();
}
[ServiceContract]
public interface IServiceB
{
[OperationContrcat]
void OpertationB();
}
public class Service : IServiceA, IServiceB
{
…
}
in my web.config I have the service defined with separate endpoints for each contract, which works perfectly, but I want to be able to export WSDL for each contract separately as well.
Currently I only get a single WSDL for the whole service which, when used, generates a client that sees both methods from IServiceA
and IServiceB
.
I am wondering if there is a way to provide a separate wsdl in a way that if I require ServiceAClinet
I can use a wsdl that defines only methods from IServiceA
and the same for IServiceB
.
After some searching I found this Single endpoint with multiple service contracts which is actually a good idea and does not require too much additional work, but I was wondering if it is possible to do it without wrappers?
Thank you in advance.