svn commit r16539 - trunk/wsf/javascript/native/src

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

svn commit r16539 - trunk/wsf/javascript/native/src

svn-9
Author: jonathan
Date: Mon May  5 18:47:12 2008
New Revision: 16539

Log:

Correctly set username and password options for useWSS=true.

Modified:
   trunk/wsf/javascript/native/src/WSRequest.js

Modified: trunk/wsf/javascript/native/src/WSRequest.js
==============================================================================
--- trunk/wsf/javascript/native/src/WSRequest.js (original)
+++ trunk/wsf/javascript/native/src/WSRequest.js Mon May  5 18:47:12 2008
@@ -14,9 +14,9 @@
  * limitations under the License.
  */
 
-// This file introduces two classes: WSRequest for invoking a Web Serivce, and WSError to encapsulate failure information.
+// This file introduces two classes: WSRequest for invoking a Web Service, and WebServiceError to encapsulate failure information.
 
-var WSRequest = WSRequest = function() {
+var WSRequest = function() {
     // properties and usage mirror XMLHTTPRequest
     this.readyState = 0;
     this.responseText = null;
@@ -70,8 +70,8 @@
         throw new WebServiceError("User name should have a password", "WSRequest.open invocation specified username: '" + username + "' without a corresponding password.");
     else
     {
-        this._username = username;
-        this._password = password;
+        this._optionSet["username"] = username;
+        this._optionSet["password"] = password;
     }
 
     this.readyState = 1;

_______________________________________________
Wsf-javascript-dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/wsf-javascript-dev
Loading...