1
votes

Is there a way to get a WSDL for a single ServiceStack service? For example, if I override the AppHost.Configure method and register a service, like so...

public override void Configure(Container container)
{
    this.RegisterService<MySoapService>("/MySoapService");
}

Could I configure ServiceStack to generate a WSDL for just the MySoapService service? Something like...

https://mycompany.com/MySoapService?wsdl

I find that getting a WSDL using [...]/soap11 gives me a WSDL for all services hosted by the application. This is a problem when REST-only services are not SOAP complaint.

1

1 Answers

0
votes

No, the /soap11 and /soap12 WSDL endpoints return all ServiceStack Services.

You can hide Services that aren't compatible with ServiceStack's SOAP Support by marking them with the [Exclude(Feature.Soap)] attribute which will hide them from the WSDL.