SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Requesting an XML file from another website using MSXML2.ServerXMLHTTP

    Hello,

    I have written some classic ASP code that will obtain the contents of an XML file from another website. This all works perfectly fine when requesting RSS feeds from WordPress and Twitter etc.

    My problem is that I have two websites, both on the same web server, (lets say website1 and website2). I have an ASP script on website1 that is trying to obatin an XML file from website2, but I am getting the following error:


    msxml3.dll error '80072efd'
    A connection with the server could not be established



    This only seems to happen when I am requestng an XML file from a website on the same server as the one I am making the request from (i.e. my web server).

    I have tried debugging this using the same code, only this time on my local machine. So in this instance, the code is attempting to obatin the XML from from website2 (located on the webserver) and the request is being made from my local machine (i.e. not the webserver). This works perfectly, indicating that the XML file, on website2, can actually be requested.

    I am not sure what else to do with this now. The code seems to be working fine in all other scenarios, it is only when I am requestng an XML file from a website on the same server as the one I am making the request from.

    Any help with this would be greatly appreciated.

    Thanks

  2. #2
    SitePoint Addict
    Join Date
    Apr 2009
    Posts
    356
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    One guess, if your code is using an external url/ip address perhaps the network your server is on doesn't allow looping an external when originated from an internal LAN computer.
    Doug G
    =====
    "If you ain't the lead dog, the view is always the same - Anon

  3. #3
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your reply.

    IT'S all sorted now, I've' just found out that this was due to the way our Firewall is configured.

    All I had to do was add the internal IP address and domain name to the Hosts file at C:\WINDOWS\system32\drivers\etc.

    Thanks
    Chris Docherty


Tags for this Thread

Bookmarks

Posting Permissions

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