Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > & https

Thread Tools & https

Bart Malfait
Posts: n/a

we want to access a webservice using https using (IE6). Is
this possible ?

Scenario: we've set up a server (W2K, .NET 1.1, latest SP's) with a
test-certificate (generated with makecert.exe). We also installed the
certificate as a trusted authority on the client (W2K, .NET 1.1, latest
SP's). Calling https://MyServer/ServiceTest/MyWebService.asmx?wsdl in the
client's IE succeeds. As expected, no pop-up anymore warning on an
unauthorized certificate. So far so good.

However, if we invoke the same URL in a piece of javascript in an html page,
using, we get a 'service not available' error. Replacing
'https' with 'http' succeeds. SSL-port is default on the server (443). Both
the javascript & are installed locally on the client (see
also below)

Any ideas what may go wrong are very appreciated !

FYI - client html page using

<meta http-equiv="Content-Type" content="text/html;
<title>New Page 2</title>
var webServiceNameSpace;
var webService;

function loadWebService()
webServiceNameSpace = document.namespaces.add("webServiceNS",


if (webServiceNameSpace != "complete") {
webServiceNameSpace .attachEvent("onreadystatechange",
else {

function createWebService()
var useOptions;

if (webServiceNameSpace .readyState == "complete")
webService = document.createElement("webServiceNS:webservice"); = "_servicegateway";
webService.visibility = "none";
useOptions = webService.createUseOptions(true);

"myWebService", useOptions);
webService.myWebService.callService(handleResponse ,

function handleResponse(result)

<body onload = "loadWebService()"> ... </body>


Reply With Quote
Bart Malfait
Posts: n/a
Feedback: under the cover "Microsoft.XMLHttp" is used and POST'ing from an
insecure to a secure website is not allowed.

For more background: check

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
netgear wireless router https problem Wireless Networking 3 03-15-2010 11:18 PM
server side redirect https => https NOT working Axel ASP General 8 04-27-2009 02:02 AM
https authentication & storing https page in string Naveen Dhanuka Ruby 1 09-19-2007 02:05 PM
open-uri and HTTPS, or net/https with a redirect jotto Ruby 4 10-02-2006 07:26 AM
Wireless problem with SP2 and HTTPS =?Utf-8?B?T21hciBLYXJpbQ==?= Wireless Networking 3 11-26-2004 03:40 PM