Skip to content

SOAPEncoding

do- edited this page Sep 16, 2024 · 15 revisions

SOAPEncoding is a class partially implementing the SOAP Encoding style.

Constructor

 const se = new SOAPEncoding (
//  {
//    emptyScalar: undefined, // may be null
//  }
 )

Methods

decode (node)

For a given XMLNode, returns the corresponding plain javaScript Object.

Any value with truthy xsi:nil is read as null.

All values of simple Types having some text content are read as strings (numbers are NOT parsed).

Empty elements of simple Types are read as emptyScalar (undefined by default).

Maps from http://xml.apache.org/xml-soap namespace are read as Objects. Entries with undefined values are skipped, so empty scalar elements are ignored by default, but this can be changed by setting emptyScalar to null.

Arrays are read as regular Arrays.

Clone this wiki locally