R: Get XML node from SOAP response

getReturnNode {SSOAP} | R Documentation

## Get XML node from SOAP response

### Description

Parse the XML content from the SOAP response and traverse the tree to find the node in the Body element associated with the result of the request. It looks for a node named This attempts to be helpful by taking input in various forms, i.e. text of the body of the HTTP response, header and body in a `SOAPHTTPReply` object returned form `.SOAP`, or the root node of a previously parsed XML tree.

### Usage

    getReturnNode(node, name = "return")

### Arguments

`node` | either an XML node that was obtained from parsing the text of the reply or the `SOAPHTTPReply` object returned from the `.SOAP` call which contains the header and body of the HTTP request, or alternatively this can be the text content from the body of the HTTP response.
`name` | the name of the node in the SOAP response that is the container for the content of the response. This is often `"return"` but can be any legal XML node name and is often given to us in a WSDL.

### Value

An `XMLNode` object.

### Author(s)

Duncan Temple Lang

### See Also

`.SOAP` `xmlTreeParse`

[Package SSOAP version 0.91-0 Index]