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

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

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

Jonathan Marsh-2
Author: jonathan
Date: Sat Jul 19 08:44:43 2008
New Revision: 19635
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19635

Log:
MASHUP-993 corresponding change, allowing "GET" method to map to HTTP binding instead of an error.

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

Modified: trunk/wsf/javascript/native/src/WSRequest.js
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/javascript/native/src/WSRequest.js?rev=19635&r1=19634&r2=19635&view=diff
==============================================================================
--- trunk/wsf/javascript/native/src/WSRequest.js (original)
+++ trunk/wsf/javascript/native/src/WSRequest.js Sat Jul 19 08:44:43 2008
@@ -64,6 +64,7 @@
     if (typeof(options) == "string") {
         this._optionSet = new Array();
         this._optionSet["HTTPMethod"] = options;
+        this._optionSet["useSOAP"] = false;
     } else {
         this._optionSet = options;
     }
@@ -769,7 +770,10 @@
             resultValues["url"] = options[HTTPLocation];
 
             // If templates are specified and a valid payload is available, process, else just return original URI.
-            if (options[HTTPLocation] != null && xmlDoc != null && xmlDoc.hasChildNodes()) {
+            if (options[HTTPLocation] == null) {
+                resultValues["url"] = "";
+            } else if (xmlDoc != null && xmlDoc.hasChildNodes()) {
+
                 // Ideally .documentElement should be used instead of .firstChild, but this does not work.
                 var rootNode = xmlDoc.firstChild;
 

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