C
C#17mo ago
Becquerel

❔ ASP.NET Core: differentiate multiple actions per controller based on SOAP XML Body

I have an old legacy ASP.NET project with routes like this: 'http://foobar.com/myservice.asmx'. There are three actions associated with this route that are all GET, differentiated by the HTTP body. E.g., it will contain stuff like <soap:MyFirstAction>, <soap:MySecondAction>, etc. I want to write a drop-in replacement in ASP.NET Core that uses identical routing. I think I can make a controller to house all these actions that just has the static route of [Route("myservice.asmx")] or whatever. But can I have multiple GET actions in this one controller that are only differentiated by the type the XML of the body deserialises to?
1 Reply
Accord
Accord17mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server