Capítulo de livro

Accessing SOAP Web Services

2013; Springer International Publishing; Linguagem: Inglês

10.1007/978-1-4614-7900-0_12

ISSN

2197-5744

Autores

Deborah Nolan, Duncan Temple Lang,

Tópico(s)

Scientific Computing and Data Management

Resumo

This chapter looks at another mechanism used to access Web services—SOAP—which is similar to XML-RPC and to some extent REST. SOAP is more structured and general than XML-RPC and REST. It is also ostensibly more complex and more difficult to understand because of all of the details about how to format and send requests as XML documents. However, much of the complexity of SOAP is hidden from users as we can programmatically generate code in R (and other languages) to access any SOAP-based Web service and its collection of methods using the genSOAPClientInterface() function. This hides all of the details underlying XML and HTTP while still leaving the user with a lot of flexibility and control. In this chapter, we describe how to access SOAP Web services from within R and how to generate the interfaces from WSDL documents describing the service’s methods and data structures. For more advanced programmers, we also discuss approaches to customize how this code is generated and how to use the .SOAP() function directly to gain more control for more sophisticated applications of SOAP in R.

Referência(s)
Altmetric
PlumX