writeSOAPBody {SSOAP}R Documentation

Write SOAP message elements directly to connection

Description

These functions write the different parts of the SOAP request directly to an S connection. This means that they generate their content for the connection in order.

Usage

writeSOAPBody(method, ..., xmlns = NULL, con, .types = .types)
writeSOAPEnvelope(con, nameSpaces = SOAPNameSpaces)
writeSOAPMessage(con, nameSpaces, method, ..., .types = NULL, xmlns = NULL)
writeSOAPHeader(url, host, action, con, ...)

Arguments

method the name of the SOAP method to be invoked
... For writeSOAPBody and writeSOAPMessage, these are the name-value arguments for the SOAP method being called. For writeSOAPHeader, these is a collection of name-value strings that are added to the HTTP header
xmlns the namespace given either as a simple string or as a named character vector of namespace URIs and local names. (Currently only one namespace is used). This is used for the top-level element of the node within the SOAP Body, corresponding to the actual request.
con the connection object on which to write the HTTP and SOAP content
url the name of the file within the host, without the leading `/'
host the name of the host for the SOAP server, e.g. www.omegahat.org
action the string to add to the HTTP header for the SOAPAction.
nameSpaces a named character vector giving the namespace identifier and URI pairs. These are added as attributes in the SOAP Body element of the generated XML.

Details

Value

For each function, the return value is irrelevant. It is the side-effect of writing to the connection that is used for.

Note

A different approach is to create the XML ``payload'' first as a string (by creating it as an XML tree and then serializing that to a buffer). This allows one to add the Content-Length to the HTTP header.

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

References

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

See Also

.SOAP

Examples



[Package SSOAP version 0.2-1 Index]