Hi, fairly new to javascript.
I am trying to make an https call to a web-service using XMLHttpRequest object in javascript. i successfully made a regular http call but having trouble getting the https working. The https call requires an ssl cert so any ideas how to attach the cert for this call ?
... then
the problem is how to handle the ssl keystore to make the call ...
thanks for any help/insight
I am trying to make an https call to a web-service using XMLHttpRequest object in javascript. i successfully made a regular http call but having trouble getting the https working. The https call requires an ssl cert so any ideas how to attach the cert for this call ?
Code:
url2="https://myServer/axis2/webService/...";
envelope2 =
'<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">' +
'<soap:Header/>' +
'<soap:Body>' +
.....
'</soap:Body>' +
'</soap:Envelope>';
Code:
xmlHttp.open("POST", url, true);
xmlHttp.setRequestHeader("Content-Type", "application/soap+xml;charset=UTF-8;action=\"urn:getProjectInfo\"");
xmlHttp.setRequestHeader("Content-Length", len);
xmlHttp.setRequestHeader("SOAPAction", "urn:getProjectInfo");
thanks for any help/insight
Comment