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. Web Service - Query

Web Service - Query

Scheduled Pinned Locked Moved ASP.NET
helpdatabasewcf
2 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
    Sumit Domyan
    wrote on last edited by
    #1

    Hi All I am looking for a solution to a problem regarding web service. I want to call a web method of a web service, but I don’t want to use wsdl nor can I generate the proxy class. The scenario is that, in my application user can fill in the web service address and the method he wants to execute and I have to get the results. If any one could help me in this, that would be great. Waiting for reply, Sumit Domyan

    M 1 Reply Last reply
    0
    • S Sumit Domyan

      Hi All I am looking for a solution to a problem regarding web service. I want to call a web method of a web service, but I don’t want to use wsdl nor can I generate the proxy class. The scenario is that, in my application user can fill in the web service address and the method he wants to execute and I have to get the results. If any one could help me in this, that would be great. Waiting for reply, Sumit Domyan

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, There are several options which you may consider: + You can make a web request in code to call a web method, the url should be in the format:

      http://servername/projectname/xmlwebservicename.asmx/methodname

      + You can create a general proxy class which accepts the url as the method parameter in its constructor. Then you can implement the Invoke method which can be used by the client to invoke a web method from the specified url. However, in both cases you need to think about the situation where the web method requires the user to supply the parameters to call the web method. For more information, you can see Exploring XML Web Service Content[^]

      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