Description Usage Arguments Value Note Author(s) References See Also
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.
1 2 3 4 5 6 7 8 | writeSOAPBody(method, ..., xmlns = NULL, con, .types = NULL,
.soapArgs = list(), .literal = FALSE,
.header = NULL, .elementFormQualified = FALSE)
writeSOAPEnvelope(con, nameSpaces = SOAPNameSpaces())
writeSOAPMessage(con, nameSpaces, method, ..., .types = NULL,
xmlns = NULL, .soapArgs = list(), .literal = FALSE,
.soapHeader = NULL, .elementFormQualified = FALSE)
|
method |
the name of the SOAP method to be invoked |
... |
For |
.soapArgs |
an alternative mechanism for passing arguments to the
.SOAP call. This is a |
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 |
.types |
a list parallelling the arguments to the SOAP method
(i.e. ... or |
nameSpaces |
a named character vector giving the
namespace identifier and URI pairs. These are added as attributes in
the SOAP |
.literal |
a logical value indicating whether to use the literal format of the encoding for the seralization of objects. |
.header |
a character string (or |
.soapHeader |
a string, an XML node or a function
that can be optionally specified to add content to the SOAP
message as the header of the envelope.
This is used in some Web services to provide transaction information
such as a authentication and security details.
See the eBaySvc.wsdl for an example.
If this is a function, it is called with the value of |
.elementFormQualified |
a logical value. If this is |
For each function, the return value is irrelevant. It is the side-effect of writing to the connection that is used for.
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.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://www.w3.org/TR/SOAP/ http://www.omegahat.org/SSOAP, http://www.omegahat.org/bugs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.