Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How To Dynamically Call a Webservice?

How To Dynamically Call a Webservice?

Scheduled Pinned Locked Moved ASP.NET
wcfbusinesstutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sstocker
    wrote on last edited by
    #1

    Is there any way to call a web service without making a web reference in your project or generating proxy classes using wsdl.exe? The project I am working on involves calling a number of web services listed in the appsettings section of the web.config. The app will eventually test these web services for responsiveness. One of the requirements is that it should be configurable from the web.config and should not have to be recompiled upon adding a new web service. I googled a few hours yesterday with little results. Any ideas? Thanks, Scott Stocker

    L 1 Reply Last reply
    0
    • S sstocker

      Is there any way to call a web service without making a web reference in your project or generating proxy classes using wsdl.exe? The project I am working on involves calling a number of web services listed in the appsettings section of the web.config. The app will eventually test these web services for responsiveness. One of the requirements is that it should be configurable from the web.config and should not have to be recompiled upon adding a new web service. I googled a few hours yesterday with little results. Any ideas? Thanks, Scott Stocker

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      sstocker wrote:

      I googled a few hours yesterday with little results

      http://en.wikipedia.org/wiki/WSDL[^]

      led mike

      S 1 Reply Last reply
      0
      • L led mike

        sstocker wrote:

        I googled a few hours yesterday with little results

        http://en.wikipedia.org/wiki/WSDL[^]

        led mike

        S Offline
        S Offline
        sstocker
        wrote on last edited by
        #3

        I know what WSDL is. I am looking for a .NET way to load a web service without a web reference in my project. I know that a WSDL definition will probably be key in accomplishing a dynamic call to a web service but I was unable to find code to accomplish the dynamic call I am looking for.

        L 1 Reply Last reply
        0
        • S sstocker

          I know what WSDL is. I am looking for a .NET way to load a web service without a web reference in my project. I know that a WSDL definition will probably be key in accomplishing a dynamic call to a web service but I was unable to find code to accomplish the dynamic call I am looking for.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          sstocker wrote:

          I am looking for a .NET way to load a web service without a web reference in my project.

          Well since WSDL provides that capability perhaps you don't know what it is? To use a new web service your configuration information would supply the URL to the WSDL for the new service. Your code would then use the response WSDL to know how to format and where to send a request to the service. Of course the WSDL does not tell where to get the input parameters in your system or even what to do with the response data that might be returned from the web service so I don't really understand the point of all this, but there it is anyway.

          led mike

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups