[Mashup-dev] svn commit r19642 - trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest

keith at wso2.com keith at wso2.com
Sat Jul 19 10:36:33 PDT 2008


Author: keith
Date: Sat Jul 19 10:36:33 2008
New Revision: 19642
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19642

Log:
Fixing Mashup-997


Modified:
   trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java

Modified: trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java
URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java?rev=19642&r1=19641&r2=19642&view=diff
==============================================================================
--- trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java	(original)
+++ trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java	Sat Jul 19 10:36:33 2008
@@ -403,32 +403,37 @@
                     throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
                 if (arguments[2] instanceof NativeArray) {
                     optionsArray = (NativeArray) arguments[2];
-
                 }
                 else
                     throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
                 break;
-            case 4:
-                if (arguments[1] instanceof org.wso2.javascript.xmlimpl.QName) {
+            case 5:
+                if (arguments[0] instanceof String)
+                    wsdlURL = (String) arguments[0];
+                else
+                    throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
+                if (arguments[1] instanceof Boolean)
+                    wsRequest.async = ((Boolean) arguments[1]).booleanValue();
+                else
+                    throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
+                if (arguments[2] instanceof NativeArray) {
+                    optionsArray = (NativeArray) arguments[2];
+                }
+                else
+                    throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
+                if (arguments[3] instanceof org.wso2.javascript.xmlimpl.QName) {
                     org.wso2.javascript.xmlimpl.QName qName =
-                            (org.wso2.javascript.xmlimpl.QName) arguments[1];
+                            (org.wso2.javascript.xmlimpl.QName) arguments[3];
                     String uri = (String) qName.get("uri", qName);
                     String localName = (String) qName.get("localName", qName);
                     serviceQName = new QName(uri, localName);
                 } else
                     throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
-                if (arguments[2] instanceof String)
-                    endpointName = (String) arguments[2];
-                else
-                    throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
-                if (arguments[3] instanceof Boolean)
-                    wsRequest.async = ((Boolean) arguments[3]).booleanValue();
-                else
-                    throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
-                if (arguments[0] instanceof String)
-                    wsdlURL = (String) arguments[0];
+                if (arguments[4] instanceof String)
+                    endpointName = (String) arguments[4];
                 else
                     throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
+
                 wsRequest.wsdlMode = true;
                 break;
             default:



More information about the Mashup-dev mailing list