troubleshooting Question

Problem with XMLHTTP Object

Avatar of sanjay_undale
sanjay_undale asked on
XML
6 Comments1 Solution2788 ViewsLast Modified:
I need to build an ASP page (sender) which will send data as XML via XMLHTTP to another ASP page (reciever). The reciever will process the xml data and send back xml which the sender will then process to display on the browser. I am initially trying to sort out issues with XMLHTTP. Here's the code..

Sender:
<%@ Language=VBScript %>
<%

      Response.ContentType = "text/html"

      Dim objXMLHTTP, XML
      Set objXMLHTTP = CreateObject ("MSXML2.serverXMLHTTP")
      objXMLHTTP.Open "POST", "http://..//someasppage.asp", false
      objXMLHTTP.setRequestHeader "Content-Type", "text/xml"
      objXMLHTTP.setRequestHeader "charset", "utf-8"

      XML = "<magazine>MSDN</magazine>"
      
      objXMLHTTP.send XML

      response.write objXMLHTTP.responseXML.xml

%>

Reciever:
<%@ ENABLESESSIONSTATE=False LANGUAGE=VBScript %>
<%
      Option Explicit
      
      Response.setContentType = "text/xml"
      Response.CharSet = "UTF-8"

      Response.Clear
      Response.Write "<ResponseMag>Test</ResponseMag>"
      
%>

objXMLHTTP.responseXML.xml is blank. Nothing comes back from the reciever.

When I try to use objXMLHTTP.responseText I get 403.9: Access Forbidden. Too many users...

Could anybody please tell me what I am doing wrong. Also if anybody has a working code for such a scenario then it would be of immense help.

I am new to XMLHTTP (just a couple of days old). So struggling. Please help !!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros