Object to server xml

See also: Server xml to object

Value resolver – Abstract

Purpose: Returns the data structure of the input value as text in server XML format.


images/download/attachments/102602327/image2022-6-9_17-9-56-version-1-modificationdate-1654787396767-api-v2.png

The Object to server xml value resolver returns the data structure of the input value as text in server XML format (see Server data encoder).

Configuration

The value resolver does not use any parameters.

An object is expected as input value.

NOTE◄ If no object is present as an input value, the following text is output as a return value ($null):

<?xml version="1.0" encoding="UTF-8"?>
<nil xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>

Examples

Input value

Configuration example

Return value (string)

Text
(for the server any object with string value)

images/download/attachments/102602327/image2022-6-9_17-10-43-version-1-modificationdate-1654787443341-api-v2.png

<?xml version="1.0" encoding="UTF-8"?>
<any xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value xsi:type="xsd:string">HELLO WORLD!</value>
</any>

Date/Time
(DateTime object)

images/download/attachments/102602327/image2022-6-9_17-11-43-version-1-modificationdate-1654787503900-api-v2.png

<?xml version="1.0" encoding="UTF-8"?>
<core:DateTime xmlns:core="CORESYSTEM" dateValue="1654762340582" timeZone="UTC"/>

Heterogeneous list of values
(one list object with a possibly different type per entry)

images/download/attachments/102602327/image2022-6-9_17-13-14-version-1-modificationdate-1654787594074-api-v2.png

<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<entry xsi:type="xsd:long">4711</entry>
<entry xsi:type="xsd:string">0815</entry>
</list>

Company account
(as an example of an entity)

images/download/attachments/102602327/image2022-6-9_17-13-59-version-1-modificationdate-1654787639754-api-v2.png

<?xml version="1.0" encoding="UTF-8"?>
<base:CompanyAccount xmlns:base="SCM.BASE" id="1902" creatorId="1901" ... metaType="COMPANY">
<types>
<type>CNE</type>
<type>INV</type>
<type>FWD</type>
<type>DPA</type>
<type>AAL</type>
</types>
<parentCompanies>
<company>702</company>
</parentCompanies>
<attributes/>
<address id="15307" creatorId="1901" ... accMatchCode="XFLOW">
...
</address>
</base:CompanyAccount>