-
Notifications
You must be signed in to change notification settings - Fork 5
SOAPEncoding
do- edited this page Sep 16, 2024
·
15 revisions
SOAPEncoding is a class partially implementing the SOAP Encoding style.
const se = new SOAPEncoding (
// {
// emptyScalar: undefined, // may be null
// }
)| Name | Defaullt | Description |
|---|---|---|
emptyScalar |
undefined |
The value for empty simple typed elements like <value xsi:type="xsd:string"/>
|
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.