twf process-xml
Send an XML request to Twinfield (ProcessXml).
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.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
<file> |
The file with the XML request. Default: standard input. - also reads standard input. |
Options
Section titled “Options”| 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.
Errors
Section titled “Errors”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.
Examples
Section titled “Examples”A request from a file:
vendor/bin/twf process-xml request.xml --office=1000A request from standard input:
echo '<read><type>office</type><code>1000</code></read>' | vendor/bin/twf process-xml --office=1000With the short name:
vendor/bin/twf xml request.xml --office=1000Save the response in a file:
vendor/bin/twf process-xml request.xml --office=1000 > response.xmlSee also
Section titled “See also”- XML web services (ProcessXml) in the PHP Twinfield SDK
twf token
Twinfield and Wolters Kluwer are trademarks of Wolters Kluwer. Their names and logos are used only to refer to their products.