Skip to content

twf process-xml

Send an XML request to Twinfield (ProcessXml).

Terminal window
twf process-xml [<file>] [options]

twf process-xml sends a request to the XML web services of Twinfield, like gh api. With it you read, create and change anything these web services support.

twf xml is the short name of twf process-xml.

The request comes from a file or from standard input. The response is printed as Twinfield returned it; in a terminal it is indented.

Argument Description
<file> The file with the XML request. Default: standard input. - also reads standard input.
Option Description
--office=<code> The code of the office (company) the request is for. Find the codes with twf office list.
--profile=<name> The login to use, see Profiles. Default: TWINFIELD_PROFILE or default.

See twf for the options every command takes.

When Twinfield does not process the request, or not all of it, the response is printed too: it has the messages (msg) on the elements they are about. The error goes to standard error and the exit status is 1.

A request from a file:

Terminal window
vendor/bin/twf process-xml request.xml --office=1000

A request from standard input:

Terminal window
echo '<read><type>office</type><code>1000</code></read>' | vendor/bin/twf process-xml --office=1000

With the short name:

Terminal window
vendor/bin/twf xml request.xml --office=1000

Save the response in a file:

Terminal window
vendor/bin/twf process-xml request.xml --office=1000 > response.xml
Made by SolveBeam

Twinfield and Wolters Kluwer are trademarks of Wolters Kluwer. Their names and logos are used only to refer to their products.