R: Classes for SOAP Server object

SOAPServer-class {SSOAP} | R Documentation

## Classes for SOAP Server object

### Description

These classes provide a way to describe the location of a SOAP server. This is separate from the servers actions. Rather, we use this to represent the identity of the server in terms of its Web address, i.e. the machine name or IP address, port number and URI or path within the server. The different classes represent the communication protocol, typically HTTP or HTTPS, i.e. HTTP over SSL, the secure communication protocol.

A DynamicSOAPServer might be better termed a “compiled” server. It contains information about the methods and data types accessible via the server. This information is converted into R classes and functions that can be used to invoke the server's methods.

DynamicSOAPServer does not extend SOAPServer currently. Rather, it contains a SOAPServer. This is because we need to be able to determine the protocol and so have different types of SOAPServer objects associated with the interface methods. This class hierarchy may change in the future.

### Objects from the Class

The function `SOAPServer` is used as the general constructor. Alternatively, one can use the `new` syntax, `new("HTTPServer", host = "www.omegahat.org", url = "theServer")`

### Slots

`host`:

  Object of class `"character"`. The machine name or IP address of the server.

`port`:

  Object of class `"integer"`. The port number, if other than the default HTTP port 80.

`url`:

  Object of class `"character"`. The document within the server that is the location of the server.

### Methods

\$

  `signature(x = "SOAPServer", name = "character")`: returns a function that will invoke the server's method whose name is given by `name`. This is merely syntactic sugar to allow the expression `server\$foo(1, 2, 3)` to invoke the method foo in the remote server.

\$

  `signature(x = "DynamicSOAPServer", name = "character")`: returns a function that will invoke the server's method whose name is given by `name`. This is merely syntactic sugar to allow the expression `server\$foo(1, 2, 3)` to invoke the method foo in the remote server.

names

  `signature(x = "DynamicSOAPServer")`

returns the names of the server's available methods.

### Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

### References

http://www.w3.org/TR/SOAP/ http://www.omegahat.org/SSOAP, http://www.omegahat.org/bugs.

### See Also

`SOAPServer`

[Package SSOAP version 0.91-0 Index]