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. General Programming
  3. C#
  4. How to invoke web service method in C#.Net

How to invoke web service method in C#.Net

Scheduled Pinned Locked Moved C#
csharptutorialquestion
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
    shanthivasan
    wrote on last edited by
    #1

    Hi, How to invoke web service methods in C#.Net? Thanks in advance

    W 1 Reply Last reply
    0
    • S shanthivasan

      Hi, How to invoke web service methods in C#.Net? Thanks in advance

      W Offline
      W Offline
      WillemM
      wrote on last edited by
      #2

      The question is a bit short to really understand your problem. But I will try to guess here. The most basic operation to be able to use a webservice in your application is to right-click on the project and choose Add Web Reference. There you browse to the webservice, give it a good name and select OK. After that it's just simply a matter of doing something like this: ServiceClass service = new ServiceClass(); object someResult = service.SomeMethod(someParameter); The service class is strongly typed, so you shouldn't have much trouble finding out how to call the service and what to pass and what you get in return. Hope this helps

      WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson

      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