SoapCore
SoapCore copied to clipboard
Implement multiple interfaces same endpoint
Is it possible to register multiple interfaces on the same endpoint? The code sample below doesn't work app.UseSoapEndpoint<ServiceContractA,ServiceContractB>("/ServicePath.asmx", new SoapEncoderOptions());
That scenario is not supported and I don't think it can be support. It could result in conflicting namespaces, duplicate actions etc.
You'll have to combine both of them, if it's important to use the same endpoint
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
@etboy-b Whether this treatment can achieve your needs?
[ServiceContract]
public interface IServiceContract : IServiceContractA, IServiceContractB
{
}
[ServiceContract]
public interface IServiceContractA:
{
}
[ServiceContract]
public interface IServiceContractB:
{
}
app.UseSoapEndpoint<IServiceContract>("/ServicePath.asmx", new SoapEncoderOptions());