Calling Webservice Thru an Interface

Mark Potter <[email protected]> Thu, 14 Feb 2008 05:57:12 -0500
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <LISTSERV%[email protected]>
Hello,

I have a web service that implements an interface as follows:

    [XmlInclude(typeof(AdvancedDTO))]
    public class AdvancedWebService : System.Web.Services.WebService,
IAdvanced
    {
        #region IAdvanced Members

        [WebMethod]
        public AdvancedInterface.AdvancedDTO makeMessage
(AdvancedInterface.AdvancedDTO aDTO)
        {
            BusAdvanced ba = new BusAdvanced();
            return ba.makeMessage(aDTO);
        }

        [WebMethod]
        public AdvancedInterface.AdvancedDTO[] listMessage
(AdvancedInterface.AdvancedDTO aDTO)
        {
            BusAdvanced ba = new BusAdvanced();
            return ba.listMessage(aDTO);
        }

        #endregion
    }


On the client side when I register the web serivce the proxy generated
does not have the Interface implemented.  I have to go in a touch up the
Reference.cs to implement the Interface.

    public partial class AdvancedWebService :
System.Web.Services.Protocols.SoapHttpClientProtocol,
AdvancedInterface.IAdvanced {

Are there any tools out there that will generate the web service proxy
with the Interface.

Thanks in advance.

Mark Potter

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com