# test_SOAP.R
# Author: Emmanuel Blondel <emmanuel.blondel1@gmail.com>
#
# Description: Unit tests for SDMX SOAP responses
#=======================
require(rsdmx, quietly = TRUE)
require(testthat)
context("SDMXSoapResponse")
test_that("SOAP - CompactData",{
file <- system.file("extdata", "SDMX_SOAP_Example.xml", package = "rsdmx")
xmlObj <- xmlParse(file)
ns <- namespaces.SDMX(xmlObj)
expect_true(isSoapRequestEnvelope(xmlObj, ns))
xmlObj <- getSoapRequestResult(xmlObj)
expect_false(isSoapRequestEnvelope(xmlObj, ns))
ds <- SDMXCompactData(xmlObj, ns)
expect_is(ds, "SDMXCompactData")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.