orc.lib.net
Class Webservice

java.lang.Object
  extended by orc.runtime.values.Value
      extended by orc.runtime.sites.Site
          extended by orc.runtime.sites.ThreadedSite
              extended by 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

Constructor Summary
Webservice()
           
 
Method Summary
 Value evaluate(Args args)
           
 
Methods inherited from class orc.runtime.sites.ThreadedSite
callSite
 
Methods inherited from class orc.runtime.sites.Site
accept, createCall
 
Methods inherited from class orc.runtime.values.Value
forceArg, forceCall, head, isCons, isNil, isNone, isSome, signal, tail, untag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Webservice

public Webservice()
Method Detail

evaluate

public Value evaluate(Args args)
               throws TokenException
Specified by:
evaluate in class ThreadedSite
Throws:
TokenException