rdfp (version 0.1.4)

execute_soap_request: Transmit and Receive API SOAP Calls

Description

Pull together SOAP Header and Body and make call to the appropriate API service, then parse the response.

Usage

execute_soap_request(request_body, service = NULL,
  network_code = getOption("rdfp.network_code"),
  application_name = getOption("rdfp.application_name"),
  version = getOption("rdfp.version"), verbose = FALSE)

Arguments

request_body

a character string of XML with service name as an attribute

service

a character string matching one of the API services

network_code

a character string matching the code associated with the ad serving network

application_name

a character string naming your application so that it can be identified in API calls

version

a character string indicating the version of the DFP API that is to be used in the SOAP request

verbose

a logical indicating whether to print the POSTed XML

Value

a XML document if no error was returned