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 ?
Expand|Select|Wrap|Line Numbers
- 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>';
Expand|Select|Wrap|Line Numbers
- 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