Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

RemoteWorkflowCall class

From Catglobe Wiki
Revision as of 10:25, 7 November 2011 by Tungocman (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=<nowiki>RemoteWorkflowCall class</nowiki> |Description=<nowiki>Class to call workflows on other sites.</nowiki> |Constructors= {{CGscriptConstructo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RemoteWorkflowCall class



Class to call workflows on other sites.

Constructors

  • (number resourceId "The resource id of the script to call on the foreign site", string username "The username on the foreign site", string password "The password on the foreign site") - Create new request
  • (number resourceId "The resource id of the script to call on the foreign site", string username "The username on the foreign site", string password "The password on the foreign site", AnyType parameter "The parameter to call the workflow with on the foreign site") - Create new request

Methods

  • AnyType Call(string site "Url of the site to call. E.g. cg.catglobe.com.") - Call the foreign site and get the result
  • AnyType Call(HttpRequest request "Call using a premade object, in case it requires special settings.") - Call the foreign site and get the result
  • [[HttpRequestName=CreateDefaultRequest_class|HttpRequestName=CreateDefaultRequest]] (string site "Url of the site to call. E.g. cg.catglobe.com.") - Create a request with the default settings
  • string ToString() - The string representation of the object

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.


More information about an HTTP Message: http://www.jmarshall.com/easy/http/

Examples

string uri = "http://google.com";
string responseString;
HttpRequest hr = new HttpRequest(uri);
WebResponse wr = hr.GetResponse();  
responseString = wr.Response();
print(responseString);