Results 1 to 2 of 2

Thread: [RESOLVED] Accessing Local Web Service (IIS) from VB.NET

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    312

    Resolved [RESOLVED] Accessing Local Web Service (IIS) from VB.NET

    Hi there.

    I have developed a web service on my LAN PC, then i hosted that Web Service using IIS and now i can access that web service on that Local PC using http://localhost:<PortNo>/Service.asmx and similarly i can access this service from another PC on my LAN network using http://<ip address>:<PortNo>/Service.asmx, all is well.

    Now i am trying to access this web service from a VB.net Program on another PC on my LAN. I added the Service to my VB.net Project using the Add reference in solution Explorer, all is well again. Now the problem is i dont know how to access that service in my code?? When i try something like this

    Code:
    dim myService as new WebCalService
    'Webcal is my service running on a network PC.
    i get an underline under WebCalService and it says Type Expected??

    Anyone having any suggestion on how to use a WebService on a LAN in VB.net??

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2005
    Posts
    312

    Re: Accessing Local Web Service (IIS) from VB.NET

    Well i got it working. I was adding a Service instead of Web Service as i think this has changed in VS2008.

    Any one having problem adding a webservice, do this

    Right Click your project in Solution Explorer and click add Service Reference.
    Then go to Advanced and Click on Add Web Reference then add your web/local Address and click add, you are good to go.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width