SoapCore icon indicating copy to clipboard operation
SoapCore copied to clipboard

Implement multiple interfaces same endpoint

Open etboy-b opened this issue 2 years ago • 2 comments

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());

etboy-b avatar Jul 29 '22 13:07 etboy-b

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

andersjonsson avatar Aug 16 '22 13:08 andersjonsson

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 16 '22 04:09 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Sep 30 '22 04:09 github-actions[bot]

@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());

Refactoring avatar Oct 27 '22 09:10 Refactoring