Say you have a SQL Server 2008 database. You build a SOAP web service. You then deploy or publish this using Visual Studio 2010 in one website. Now, using the same database, you build a REST web service, in a different solution. You deploy this on another website.
Can you consume the endpoints and/or .svc file of both the SOAP and REST web services, though they reference the same SQL Server 2008 database?
I don’t see why not, but before I go down this path and spend days I’d like to make sure.
Also if there’s a performance hit to the database if it is running both SOAP and REST at the same time–again, I don’t see why it would matter, but I must make sure. Thanks.
SQL Server won’t know anything of your web service – it will just receive queries and return the data to the calling connection (your server-side code in this case).
It doesn’t care whether the query originated in VBA, Mgmt Studio, your SOAP service or all three.