i'm particularly new in developing web services. I have this existing web service i need to redo becbecause currently it doesntdoesn't seem to work,
The web service has a references to a DLL Class
<%@ WebService Language="C#" Class="MyClass"%>
that's the whole content...and it has a MYClassMyClass.DLLdll located in a bin folder
What i did is put the MYClassMyClass class inside the Web service itself....
<%@ WebService Language="C#" Class="MyClass"%>
using System;
using System.IO;
using System.Data;
//...
[System.CodeDom.Compiler.GeneratedCodeAttribute[GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Web.Services.WebServiceAttribute[WebServiceAttribute(Namespace = "http://service.search.lsc.slacker.com")]
[System.Web.Services.WebServiceBindingAttribute[WebServiceBindingAttribute(Name = "TLSCSoap22Binding", Namespace = "http://service.search.lsc.slacker.com")]
public class MYClass: System.Web.Services.WebService
{
//...
}
and it did work, tested all the functions and everything worked as expected.
However, i need to see all the repercussions before proposing this solution, i might have overlooked the benefits of referencing a dll instead
Pls.Please note that i cannot ask the previous developer of why it was encapsulated in a DLL file and i know for a fact that this DLL will not be reusable by any other external apps. It was created solely for the web service.
So my question is why did the old developer created a dll to contain the class and be consumed by a web service, instead of just a web service?