dcsimg
"xmlhttp" can not run on websphere3.5'server
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   lu_djg
Posted On:   Wednesday, May 21, 2003 12:02 AM

Sorry! My English is very pool!My question is: Please see this code function send() { var ado_stream = new ActiveXObject("ADODB.Stream"); var xml_dom = new ActiveXObject("MSXML2.DOMDocument"); xml_dom.loadXML(' <?xml version="1.0" ?> '); xml_dom.documentElement.setAttribute("xmlns:dt", "urn:schemas-microsoft-com:datatypes"); var l_node1 = xml_dom.createElement("file1"); l_node1.dataType = "bin.base64"; ado_stream.Type = 1; // 1=adTypeBinary ado_stream.Open(); ado_stream.LoadFromFile("c:\temp.tif"); l_node   More>>

Sorry! My English is very pool!My question is:

Please see this code

			
function send()
{
var ado_stream = new ActiveXObject("ADODB.Stream");

var xml_dom = new ActiveXObject("MSXML2.DOMDocument");

xml_dom.loadXML(' <?xml version="1.0" ?> ');

xml_dom.documentElement.setAttribute("xmlns:dt", "urn:schemas-microsoft-com:datatypes");

var l_node1 = xml_dom.createElement("file1");

l_node1.dataType = "bin.base64";

ado_stream.Type = 1; // 1=adTypeBinary

ado_stream.Open();

ado_stream.LoadFromFile("c:\temp.tif");

l_node1.nodeTypedValue = ado_stream.Read(-1);

ado_stream.Close();

xml_dom.documentElement.appendChild(l_node1);

var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

xmlhttp.open("POST","scanact.jsp",false);

xmlhttp.send(xml_dom);

}



This code can run right on resin's server,no error! but on websphere3.5's server,this code can not run,at ("xmlhttp.open("post","scanact.jsp",false);")paragraph report a error!
why!I do not know!
Please help me! Thank you!    <<Less
About | Sitemap | Contact