Esempio n. 1
0
		public void CallWebService(int firstRowIndex, int lastRowIndex, Dictionary parameters, WebServiceSuccessCallback successCallback, WebServiceFailureCallback failureCallback, object userContext)
		{
			Dictionary pagedParameters = new Dictionary();
			pagedParameters["firstRowIndex"] = firstRowIndex;
			pagedParameters["lastRowIndex"] = lastRowIndex;
			foreach (DictionaryEntry de in parameters)
			{
				pagedParameters[de.Key] = de.Value;
			}
			base.CallWebService(pagedParameters, successCallback, failureCallback, userContext);
		}
Esempio n. 2
0
		public void CallWebService(Dictionary parameters, WebServiceSuccessCallback successCallback, WebServiceFailureCallback failureCallback, object userContext)
		{
			this.successCallback = successCallback;
			this.failureCallback = failureCallback;

			if (this.webRequest != null)
			{
				Trace.Write("ABORT");
				this.webRequest.Executor.Abort();
			}

			this.webRequest = WebServiceProxy.Invoke(servicePath, serviceMethod, false, parameters, successCallback2, failureCallback2, userContext, timeOut);
		}
Esempio n. 3
0
 ///<summary>
 ///Invokes the specified Web service method.
 ///</summary>
 ///<param name="servicePath">The Web service URL.</param>
 ///<param name="methodName">The name of the Web service method to invoke.</param>
 ///<param name="useGet">false if the Web request HTTP verb is POST; otherwise, true. The default is false.</param>
 ///<param name="parameters">A dictionary that contains name/value pairs that correspond to the parameters of the method to call.</param>
 ///<param name="successCallback">The function invoked as a callback if the Web service method call returns successfully. If no callback function is provided, no action is taken when the Web service method finishes successfully.</param>
 ///<param name="failedCallback">The function invoked as a callback if the Web service method call fails. If no callback function is provided, no action is taken if an error occurs during the Web service method call.</param>
 ///<param name="userContext">Any user-specific information to be passed to either callback.</param>
 ///<param name="timeout">The time in milliseconds after which the request is timed out and aborted.</param>
 ///<returns>The <see cref="T:Sys.Net.WebRequest" /> that was created to invoke the method.</returns>
 public static WebRequest invoke(string servicePath, string methodName, bool useGet, JsObject parameters, WebServiceSuccessCallback successCallback, WebServiceFailureCallback failedCallback, object userContext, JsNumber timeout) { return default(WebRequest); }
Esempio n. 4
0
 ///<summary>
 ///Logs out the currently authenticated user.
 ///</summary>
 ///<param name="redirectUrl">The URL to redirect the browser to on successful logout. The default is null.</param>
 ///<param name="logoutCompletedCallback">The function that is called when the logout has finished. The default is null.</param>
 ///<param name="failedCallback">The function that is called if the logout has failed. The default is null.</param>
 ///<param name="userContext">User context information that you are passing to the callback functions.</param>
 public static void logout(string redirectUrl, WebServiceSuccessCallback logoutCompletedCallback, WebServiceFailureCallback failedCallback, object userContext) { }