Author: keith
Date: Thu Apr 3 04:01:37 2008
New Revision: 15515
Log:
Throw an acceptable error in WSRequest is called with incorrect number of params
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
==============================================================================
---
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
Thu Apr 3 04:01:37 2008
@@ -230,6 +230,8 @@
username = (String) arguments[2];
}
break;
+ default:
+ throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
}
if (arguments[0] instanceof String) {
@@ -329,6 +331,11 @@
setCommonProperties(cx, wsRequest);
}
+ /**
+ *
+ * This function enables you to give a WSDL and get WSRequest configured.
You dont have to
+ * configure it your self using an options object.
+ */
public static void jsFunction_openWSDL(Context cx, Scriptable thisObj,
Object[] arguments,
Function funObj) throws AxisFault {
WSRequestHostImpl wsRequest = checkInstance(thisObj);
@@ -356,6 +363,8 @@
else
throw
Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
break;
+ default:
+ throw Context.reportRuntimeError("INVALID_SYNTAX_EXCEPTION");
}
try {
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev