CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: vb6 and SOAP to access web service

  1. #1
    Join Date
    May 2006
    Posts
    3

    vb6 and SOAP to access web service

    I have written following code to access a asp.net method in web service.

    Dim oClient As New MSSOAPLib30.SoapClient30
    Dim strg() As String
    oClient.mssoapinit "http://localhost/WebSite3/Service.asmx?WSDL"

    strg() = (oClient.GetCityName(""))

    I have used soap tool kit.

    It works fine with any computer except my computer. It gives an error saying "The system can not locate the resources specified"

    It gives this error for both web service in the internet as well as web service on localhost.

    Please help me in this regard.

    Thanks in advance

    Devdas_kamath

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: vb6 and SOAP to access web service

    localhost only works... LOCALLY

    Supply the IP address of your computer (within your network) or the Router Address (with IP forwarding to YOUR IP address)

    You can even get a dynamic name, so you can use a domain name to access it.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    May 2006
    Posts
    3

    Re: vb6 and SOAP to access web service

    Thanks for reply. I tried even giving ip address of the local machine. it didn't work. In the other machine works fine with localhost as well as ip address both locally and internet. Please help

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: vb6 and SOAP to access web service

    Firewall, AV Software, any one of a dozen reasons, depending on what OS.

    can you PING the machine? Browse? Remote In?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)