wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Java _ Microsoft XML challenge Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Java _ Microsoft XML challenge" Watch "Java _ Microsoft XML challenge" New topic
Author

Java _ Microsoft XML challenge

Sumanth Tarigopula
Greenhorn

Joined: Feb 21, 2002
Posts: 15
I m developing one application wherein i have to send information from a Microsoft ASP page requesting XML from a jsp page on the server side.
Client Side ASP Code (JavaScript) is as follows:
var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
var qryRequest = new ActiveXObject("MSXML2.DOMDocument");
var qryResponse = new ActiveXObject("MSXML2.DOMDocument");
var sURL = "http://serverip/foo.jsp";
xmlhttp.Open("POST",sURL, false);
xmlhttp.Send(qryRequest.xml);
qryResponse.loadXML(xmlhttp.responseXML.xml);
alert(qryResponse.xml)
The Server JSP Page is as simple as :
<%
out.print ("<?xmlversion=\"1.0\"?><Name>foo</Name>");
%>
i get the response in client application properly when we use xmlhttp.responseText instead of xmlhttp.responseXML
Is there a way we can have the jsp page return a format for xmlhttp.responseXML intead of xmlhttp.responseText?

Thx in advance
Sumanth
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Java _ Microsoft XML challenge
 
Similar Threads
Notify Users before session expires
AJAX ( problem while retrieving xml data from the jsp)
JSP + Microsoft
Passing resultset from Servlet to JSP
responseXml is null