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. reference to webservice

reference to webservice

Scheduled Pinned Locked Moved C#
question
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.
  • F Offline
    F Offline
    fmardani
    wrote on last edited by
    #1

    Hi, I have added a web reference to the web service from the client project. The webservice is called ItemsWebService The webservice has two .asmx files i.e. orders.asmx and employees.asmx from the client I would like to call the ItemsWebService. So that the relevant forms on the client calls the appropriate .asmx file. i.e. the orders form in client calls ItemsWebService.Orders and the employees form on the client calls ItemsWebService.Employees At present when I add a web refernce to this webservice from the client I get the two names i.e. orders and employees. I think I should get just the itemsWebService. Am I right? Thanks

    C 1 Reply Last reply
    0
    • F fmardani

      Hi, I have added a web reference to the web service from the client project. The webservice is called ItemsWebService The webservice has two .asmx files i.e. orders.asmx and employees.asmx from the client I would like to call the ItemsWebService. So that the relevant forms on the client calls the appropriate .asmx file. i.e. the orders form in client calls ItemsWebService.Orders and the employees form on the client calls ItemsWebService.Employees At present when I add a web refernce to this webservice from the client I get the two names i.e. orders and employees. I think I should get just the itemsWebService. Am I right? Thanks

      C Offline
      C Offline
      Chris Buckett
      wrote on last edited by
      #2

      The webservice creates a reference to each .asmx file within it. You could just create 1 file called MyService.asmx (for example), then each form could reference ItemsWebservice.MyService.whatever rather than distinguishing between the two files.

      fmardani wrote:

      At present when I add a web refernce to this webservice from the client I get the two names i.e. orders and employees.

      This is what you should expect to happen.

      ChrisB

      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