Projet

Général

Profil

Anomalie #26688 » MaarchWSClient_cs_vcte_db.xml

Gaelle guegan, 27/06/2023 16:07

 
<?xml version="1.0" encoding="UTF-8"?>
<MaarchWSClient>
<!-- REST FRONTAL -->
<WS name="MaarchRestWS" type="REST" uri="https://cchaplin:maarch@courrier.vitrecommunaute.bzh/rest/" SSL="true" cacheUse="0" />

<!-- REST SAMPLES -->
<process name="MaarchRestWSProcessFromScan">
<loop xpath="/Batch/Documents/Document">
<call name="/resources" method="POST">
<argument type="entity" name="modelId">1</argument>
<argument type="entity" name="encodedFile" eval="base64_encode(file_get_contents($Element-&gt;path))"/>
<argument type="entity" name="format" attribute="extension"/>
<argument type="entity" name="doctype">119</argument>
<argument type="entity" name="chrono">true</argument>
<!--<argument type="entity" name="destination">30</argument>-->
<!--<argument type="entity" name="destination" eval="explode('_', $Element-&gt;filename)&#91;0&#93;"/>-->
<argument type="entity" name="priority">poiuytre1357nbvc</argument>
<argument type="entity" name="status">INIT</argument>
<return>
<resId metadata="resId" />
</return>
</call>
</loop>
</process>

<process name="MaarchRestWSProcessFromScanMassVcte">
<loop xpath="/Batch/Documents/Document">
<call name="/resources" method="POST">
<argument type="entity" name="modelId">1</argument>
<argument type="entity" name="encodedFile" eval="base64_encode(file_get_contents($Element-&gt;path))"/>
<argument type="entity" name="format" attribute="extension"/>
<argument type="entity" name="doctype">119</argument>
<argument type="entity" name="chrono">true</argument>
<!--<argument type="entity" name="destination">30</argument>-->
<argument type="entity" name="destination" eval="explode('_', $Element-&gt;filename)&#91;0&#93;"/>
<argument type="entity" name="priority">poiuytre1357nbvc</argument>
<argument type="entity" name="status">INIT</argument>
<return>
<resId metadata="resId" />
</return>
</call>
</loop>
</process>

<process name="MaarchRestWSProcessFromMail">
<loop xpath="/Batch/Documents/Document">
<call name="/resources" method="POST">
<argument type="entity" name="modelId">1</argument>
<argument type="entity" name="encodedFile" eval="base64_encode(file_get_contents($Element-&gt;path))"/>
<argument type="entity" name="format" attribute="extension"/>
<argument type="entity" name="status">INIT</argument>
<argument type="entity" name="chrono">true</argument>
<argument type="entity" name="doctype">119</argument>
<argument type="entity" name="subject" metadata="subject"/>
<!--<argument type="entity" name="destination">30</argument>-->
<argument type="entity" name="priority">poiuytre1357nbvc</argument>
<return>
<resId metadata="resId" />
</return>
</call>
<loop xpath="Attachments/Attachment">
<call name="/attachments" method="POST">
<argument type="entity" name="resIdMaster" xvalue="ancestor::Document/Metadata/resId"/>
<argument type="entity" name="type">incoming_mail_attachment</argument>
<argument type="entity" name="encodedFile" eval="base64_encode(file_get_contents($Element-&gt;path))"/>
<argument type="entity" name="format" attribute="extension"/>
<argument type="entity" name="title" metadata="filename"/>
<return>
<id metadata="resId" />
</return>
</call>
</loop>
</loop>
</process>
</MaarchWSClient>
(2-2/4)