Call local web method from asp.net page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • E11esar
    New Member
    • Nov 2008
    • 132

    Call local web method from asp.net page

    Hi there.

    I fully understand how to subscribe to a web service that is external to the asp.net project I am working in but how do I call a web method of a web service that is within the project please?

    Normally I would Add web reference but if I do this and search for a local web service, then adding in this way causes my whole solution to crawl to an almost standstill situation, so I am assuming that is the wrong approach.

    If I try to reference the web service directly in the code, such as WebService.Meth odName() then Visual Studio does not like that at all..!

    Any help will be much appreciated as this somewhat simple task is way above me for some reason..! If you could set out the steps I need to use the web methods in my C# code then that should get me on my way.

    Thank you.

    Mark :)
  • amirghaffarie1362
    New Member
    • Jan 2009
    • 19

    #2
    Code:
    dim s as webservice = new webservice 
    s.MethodName()

    Comment

    Working...