orc.lib.net
Class Webservice
java.lang.Object
orc.runtime.values.Value
orc.runtime.sites.Site
orc.runtime.sites.ThreadedSite
orc.lib.net.Webservice
- All Implemented Interfaces:
- Callable, Future
public class Webservice
- extends ThreadedSite
JAX-RPC-based webservice site.
Stubs for the service are generated and compiled on the fly.
This example should get you started:
val Google = Webservice("http://api.google.com/GoogleSearch.wsdl")
val GoogleDevKey = "YOURDEVKEY"
def GoogleSearch(keywords) = Google.doGoogleSearch(
GoogleDevKey, keywords, 0, 10, true, "", true, "", "", "")
each(GoogleSearch("test").getResultElements()) >r>
r.getURL()
TODO: allow webservices to provide constructors for complex objects.
- Author:
- quark, unknown
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Webservice
public Webservice()
evaluate
public Value evaluate(Args args)
throws TokenException
- Specified by:
evaluate
in class ThreadedSite
- Throws:
TokenException