Reputation: 2218
What ever it sounds like, I have faced the following situation:
what I need to do:
what I have:
Question:
Do I really need to downgrade the WCF service to a Web service or there is more elegant way to do the same? (over a config file? over additional decoration of the wcf methods?)
if refactoring is the only way - what to do with FaultExeptions I throw in my WCF service?
Upvotes: 0
Views: 536
Reputation: 2218
managed to solve my issue over configuration file
In the web.config that was on the root level of my site added
<system.webServer>
<rewrite>
<rules>
<rule name="SvcAsAsmx">
<match url="^Webservices/library/myservice.asmx(.*)$" />
<action type="Rewrite" url="myservice/myservice.svc{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
more information and a possible troubleshooting is here: http://serena-yeoh.blogspot.co.at/2013/05/url-rewrite-on-iis-8-aspx-to-svc.html
Upvotes: 3