Hi all,
I've added username token over https support to WSRequest. This support
is available in both the Host Object and the native WSRequest. With this
is place we can talk to services that are secures using username token.
The following code snippet shows sample usage
var request = new WSRequest();
var options = new Array();
options["username"] = "keith";
options["password"] = "keith";
options["useWSS"] = true;
options["useWSA"] = true;
options["useSOAP"] = "1.2";
options["action"] =
"http://services.mashup.wso2.org/version/ServiceInterface/getVersionRequest";
try {
request.open(options,
"https://localhost:7443/services/system/version/getVersion", false);
request.send(null);
result = request.responseText;
return result;
} catch (e) {
return e.toString();
}
To test this out just go to wsasadmin and configure the version service
to have UsernameToken with Timestamp over HTTPS
The next step is to get this into the Javascript stub and then tryit...
Thanks,
Keith.
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev