Basic question about C# Web Services

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DomoChan@gmail.com

    Basic question about C# Web Services

    I have developed a small class and generated a proxy class for it
    using the wsdl.exe utility. I dont understand how an actual wsdl file
    ties into this. It appears that I can create a c# webservice and
    operate without a wsdl file, but that doesnt realy make sense to me.
    Does the SoapHttpClientP rotocol class hide the wsdl xml file?

    Any help Appreciated!
    -Velik
  • Alex Meleta

    #2
    Re: Basic question about C# Web Services

    Hi

    WSDL describes the external public interfaces of your web services (facade).
    To refer the service it fairly enough to use just the file, without having
    an access to the service itself.

    Regards, Alex


    Comment

    • Peter Bromberg [C# MVP]

      #3
      Re: Basic question about C# Web Services

      When you create a .NET webservice and set a Webreference to it from a client
      application, it uses the webservice - generated WSDL contract to create a
      client proxy class to make webmethod calls to the service.
      The WSDL utility does the same thing, it just has some additional utility
      switches.
      Peter
      <DomoChan@gmail .comwrote in message
      news:f7c2dcbd-9344-46fb-9ad6-da3a9bb981a8@x3 5g2000hsb.googl egroups.com...
      >I have developed a small class and generated a proxy class for it
      using the wsdl.exe utility. I dont understand how an actual wsdl file
      ties into this. It appears that I can create a c# webservice and
      operate without a wsdl file, but that doesnt realy make sense to me.
      Does the SoapHttpClientP rotocol class hide the wsdl xml file?
      >
      Any help Appreciated!
      -Velik

      Comment

      • =?ISO-8859-1?Q?Arne_Vajh=F8j?=

        #4
        Re: Basic question about C# Web Services

        DomoChan@gmail. com wrote:
        I have developed a small class and generated a proxy class for it
        using the wsdl.exe utility. I dont understand how an actual wsdl file
        ties into this. It appears that I can create a c# webservice and
        operate without a wsdl file, but that doesnt realy make sense to me.
        Does the SoapHttpClientP rotocol class hide the wsdl xml file?
        the server side developer writes the web service and deploy it

        ASP.NET generates the WSDL from the web service

        the wsdl utility generated a stub from the WSDL

        the client side developer write client code that calls
        the stub

        Arne

        Comment

        • Cor Ligthert[MVP]

          #5
          Re: Basic question about C# Web Services

          DomoChan,

          From the first version of Visual Studio 2K+ there is a WebService project
          template.

          As you use that a webservice is created which contains all your WSDL and
          SOAP wrappers for you.
          (It shows up as a kind of Hello World application it it, what you just have
          to tailor to your needs)

          Cor


          <DomoChan@gmail .comschreef in bericht
          news:f7c2dcbd-9344-46fb-9ad6-da3a9bb981a8@x3 5g2000hsb.googl egroups.com...
          >I have developed a small class and generated a proxy class for it
          using the wsdl.exe utility. I dont understand how an actual wsdl file
          ties into this. It appears that I can create a c# webservice and
          operate without a wsdl file, but that doesnt realy make sense to me.
          Does the SoapHttpClientP rotocol class hide the wsdl xml file?
          >
          Any help Appreciated!
          -Velik

          Comment

          Working...