Last post Nov 02, 2014 09:11 AM by mgebhard
Oct 31, 2014 04:37 PM|dbasarab|LINK
I understand that webservices can be either be created inside an application or outside an application but then referenced by an application.
What are the pros and cons of each method?
When would you use each method?
Nov 02, 2014 09:11 AM|mgebhard|LINK
Web services abstract functionality which can be shared among many clients. There's security benefits as well.
Placing a web service inside an application is similar to creating a shared class library inside an application. In order to reference the shared class a client must reference the application's assembly. In the case of a web service, the service and
the application share the config file which usually cause issues. Secondly, there's no need to create a web reference (extra HTTP requests) if the service and application are in the same project. You would simply invoke the service like any other class file.
IMHO, placing a web service inside an application is poor design.