Retrieve Data from another webpage besides XML
-
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
-
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
-
Bad Programmer wrote:
The operation timed out
Oh sure, the XML timed out, right, good one.
led mike
hey, is there any solution for this. or idea to implement in a different way. Thanks,
Bad Programmer