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. XML / XSL
  4. Retrieve Data from another webpage besides XML

Retrieve Data from another webpage besides XML

Scheduled Pinned Locked Moved XML / XSL
helpcomsysadminsecurityxml
3 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.
  • B Offline
    B Offline
    Bad Programmer
    wrote on last edited by
    #1

    Hi, Im trying to send a XML string to a differet asp page and get the response from it. 'strFileName = an XML file with extension .txt My Code sample <pre>Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") Set fsoFileSystem = createobject("scripting.filesystemobject") set fsoFile = fsoFileSystem.OpenTextFile(strFileName,ForReading) 'Read the file into a variable strACORDXML = fsoFile.ReadAll fsoFile.Close set fsoFile =Nothing objXMLHTTP.open "POST", strURL, False 'Set the option to ignore SSL cert errors '13056 is SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS objXMLHTTP.setOption 2, 13056 'Set the HTTP headers objXMLHTTP.setRequestHeader "MIME-Version", "1.0" objXMLHTTP.setRequestHeader "Content-Type", "Multipart/Related; boundary=MIME_boundary;" 'Send the XML string objXMLHTTP.send (strACORDXML) 'Get the response strResponse = objXMLHTTP.responseText </pre> If I used MSXML2.ServerXMLHTTP object, it gives me time out error: msxml3.dll error '80072ee2' The operation timed out Actually both webpages that's communicating are hosted at the same machine. The main site (ex. aa.domain.com) points to particular folder under it, while another one (ex. bb.domain.com) points to another folder which is two levels up to the first one. Please help!!

    Bad Programmer

    L 1 Reply Last reply
    0
    • B Bad Programmer

      Hi, Im trying to send a XML string to a differet asp page and get the response from it. 'strFileName = an XML file with extension .txt My Code sample <pre>Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") Set fsoFileSystem = createobject("scripting.filesystemobject") set fsoFile = fsoFileSystem.OpenTextFile(strFileName,ForReading) 'Read the file into a variable strACORDXML = fsoFile.ReadAll fsoFile.Close set fsoFile =Nothing objXMLHTTP.open "POST", strURL, False 'Set the option to ignore SSL cert errors '13056 is SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS objXMLHTTP.setOption 2, 13056 'Set the HTTP headers objXMLHTTP.setRequestHeader "MIME-Version", "1.0" objXMLHTTP.setRequestHeader "Content-Type", "Multipart/Related; boundary=MIME_boundary;" 'Send the XML string objXMLHTTP.send (strACORDXML) 'Get the response strResponse = objXMLHTTP.responseText </pre> If I used MSXML2.ServerXMLHTTP object, it gives me time out error: msxml3.dll error '80072ee2' The operation timed out Actually both webpages that's communicating are hosted at the same machine. The main site (ex. aa.domain.com) points to particular folder under it, while another one (ex. bb.domain.com) points to another folder which is two levels up to the first one. Please help!!

      Bad Programmer

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Bad Programmer wrote:

      The operation timed out

      Oh sure, the XML timed out, right, good one.

      led mike

      B 1 Reply Last reply
      0
      • L led mike

        Bad Programmer wrote:

        The operation timed out

        Oh sure, the XML timed out, right, good one.

        led mike

        B Offline
        B Offline
        Bad Programmer
        wrote on last edited by
        #3

        hey, is there any solution for this. or idea to implement in a different way. Thanks,

        Bad Programmer

        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