The function soap.buildTransaction obtains a document XML in SOAP format, with the information of the registers selected to be used in a SOAP transaction.
1 soap.buildTransaction
<soap.buildTransaction
tabname='tabname'
condition='condition'
exclude='exclude'
recursive='true|false'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atabname | String | Table of which you must obtain the XML document with SOAP format for transactions. | |||
Acondition | String | Selection condition to apply in the query of the table to obatin the corresponding registers. | |||
Aexclude | String | This value has only ssense to be informed if recursion has been specified. List of tables separated by comma that are excluded of the generation of the document. | |||
Arecursive | String | false | Indicate if the document is formed with the related tables (through external references, foreign keys) or only with the table indicated in the attribute tabname. |
Returns | |
---|---|
Type | Description |
file | The obtained result is a XML document in SOAP format with the data of the registers involved in the selection. |
Exception
attribute 'tabname' required
The table has not been specified.
attribute 'condition' required
The identifier of the web service has not been indicated.
Example
Generate a XML document in SOAP format of the SQL Object (wic_jrep_object) gcompedh, of the dictionary database of wic_iges. It is indicated recursive to obtain the data of all the related tables, as they are input (wic_jrep_colqry), output (wic_jrep_colout), form (wic_jrep_form_data and all its decendents)...
Copy
<set name='cond'>rep_code='gcompedh'</set> <set name='m_xml'> <soap.buildTransaction tabname='wic_jrep_object' condition='#cond' recursive='true' /> </set> <println><m_xml/></println>