SOAPServer {SSOAP} | R Documentation |
This is a constructor for the SOAPServer
class
which is used to identify the host, port and URL of a SOAP
server.
SOAPServer(host, url, port = NA, s = new(className))
host |
typically, the name of the host machine,
e.g. "www.omegahat.org" .
Alternatively, a complete URL (e.g. http://www.omegahat.org/SOAP )
may be given as the value for host and the individual
parts are extracted from this.
|
url |
the file/URL within the server that contains the SOAP
server. If this is omitted, we attempt to find the value
from the value of host . |
port |
the port number on which the server is listening.
This is typically 80, the standard HTTP port. However, one can
specify this when creating the S server object to
identify a different port. This is useful when testing
a server since one can use a user-level port.
It is left as NA if not specified to indicate that it was
not explicitly set to 80.
|
s |
the object being created and initialized.
Having this as an argument allows the caller to specify
the class of the desired object and supply a partially initialized
value and still get the ``standard'' initialization for the server
object.
className is computed in the body of the function and this
mechanism works via lazy evaluation.
|
An object of class HTTPSOAPServer
,
FTPSOAPServer
or SOAPServer
.
If the host is specified with an ftp:
or http:
prefix, an object of class FTPSOAPServer
or
HTTPSOAPServer
respectively is returned.
Otherwise, a generic SOAPServer
is created.
In the future, we will use a SOAPConnection
class that builds on the server and maintains a
connection to the server.
The URL may get dropped from the server as we can use
the same basic host and port combination with different
URLs for different requests. Experience will give us
a better handle on an appropriate interface.
Also, we may store a server-specific, default SOAPAction value in the server.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://www.w3.org/TR/SOAP/ http://www.omegahat.org/SSOAP, http://www.omegahat.org/bugs.
SOAPServer("www.nanonull.com", "TimeService/TimeService.asmx")