SOAPNameSpaces: Get SOAP namespace definitions

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/SOAP.S

Description

This is a convenience function that makes it easy to in-line the specification of the top-level or global SOAP namespaces within a .SOAP call. It provides a way to cumulate namespace identifiers and URIs into a named vector by specifying the relevant collection within the “catalog” of SOAP-namespace collections and to augment that collection, override elements and/or include and exclude certain elements by name.

Usage

1
2
SOAPNameSpaces(..., include = character(0), exclude = character(0),
                version = getOption("SSOAP:DefaultNamespace"))

Arguments

...

an arbitrary number of id-URI pairs that define a namespace. These are included in the collection returned from this function along with any values identified via the version argument in the .SOAPDefaultNameSpaces list.

include

a character vector giving the names of the elements to include. This is used to identify (a few) elements that are to be kept from the defaults identified by version.

exclude

a character vector giving the names of the elements to discard. This is usually deployed when we want to keep a large number of elements and it is more convenient to explicitly exclude some.

version

a name that identifies an element in the .SOAPDefaultNameSpaces list that is used to get the default values. If this does not match a name in that list, no defaults are used and only the values in ... are used.

Value

A named vector giving the id-URI pairs of namespaces.

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

.merge

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 SOAPNameSpaces()
 SOAPNameSpaces(omegahat="http://www.omegahat.org",
                 r = "http://www.r-project.org")

 SOAPNameSpaces(omegahat="http://www.omegahat.org",
                 r = "http://www.r-project.org", include="SOAP-ENV")

 SOAPNameSpaces(omegahat="http://www.omegahat.org",
                 r = "http://www.r-project.org", exclude="xsd")

 SOAPNameSpaces(omegahat="http://www.omegahat.org",
                 r = "http://www.r-project.org",
                 xsd = "my own XSD URI")

sckott/SSOAP documentation built on Sept. 16, 2020, 5:49 p.m.