I discovered the existence of the HTTP GET scriptable task that uses the urlObject (text from script included below) in a VCO develop workflows class last week.
Could someone tell me if there is any associated timeout limitation when using this object to ensure that a workflow returns ? Is this timeout configurable ?
thanks,
//Auto-generated script
var urlObject = new URL(url);
result = urlObject.getContent() ;
Hi!
The built-in URL object is very limited, as you have recognized :smileysilly::
No timeout, no SSL, no authentication...
If you try to access an external webservice, give the SOAP- or the REST-Plugin a try: They include the mentioned features...
If you just want to GET a html-page (e.g. http://mywebserver.com/somepath/somefile.html), you might also try the "fake" this with the REST-Plugin:
1. Create a new REST-host with the domain (http://mywebserver.com)
2. Create a new REST-operation with the full path /somepath/somefile.html and operation GET
3. Execute this operation
Or create your own vCO-Plugin wrapping a Java-Library that provides an URL-object with the features you need . Some assembly required... :smileygrin:
Cheers,
Joerg
Hi!
The built-in URL object is very limited, as you have recognized :smileysilly::
No timeout, no SSL, no authentication...
If you try to access an external webservice, give the SOAP- or the REST-Plugin a try: They include the mentioned features...
If you just want to GET a html-page (e.g. http://mywebserver.com/somepath/somefile.html), you might also try the "fake" this with the REST-Plugin:
1. Create a new REST-host with the domain (http://mywebserver.com)
2. Create a new REST-operation with the full path /somepath/somefile.html and operation GET
3. Execute this operation
Or create your own vCO-Plugin wrapping a Java-Library that provides an URL-object with the features you need . Some assembly required... :smileygrin:
Cheers,
Joerg