diff --git a/apps/maarch_entreprise/actions/sendToExternalSignatureBook.php b/apps/maarch_entreprise/actions/sendToExternalSignatureBook.php
index 40d43fc7272a806600c96d8185df388cf30795d1..793a2b585827ef4597cf4fa1cf00ac10bf117e5b 100644
--- a/apps/maarch_entreprise/actions/sendToExternalSignatureBook.php
+++ b/apps/maarch_entreprise/actions/sendToExternalSignatureBook.php
@@ -47,33 +47,28 @@ function check_form($form_id, $values)
 function manage_form($arr_id, $history, $id_action, $label_action, $status, $coll_id, $table, $values_form)
 {
     $result = '';
-
     $config = getXml();
 
     foreach ($arr_id as $value) {
         if (!empty($config)) {
             if ($config['id'] == 'ixbus') {
                 include_once 'modules/visa/class/IxbusController.php';
-    
-                $html .= IxbusController::getModal($config);
+                $attachmentToFreeze = IxbusController::sendDatas(['config' => $config, 'resIdMaster' => $value]);
             } elseif ($config['id'] == 'iParapheur') {
                 include_once 'modules/visa/class/IParapheurController.php';
-    
-                $html .= IParapheurController::getModal($config);
+                $attachmentToFreeze = IParapheurController::sendDatas(['config' => $config, 'resIdMaster' => $value]);
             } elseif ($config['id'] == 'fastParapheur') {
                 include_once 'modules/visa/class/FastParapheurController.php';
-    
-                $html .= FastParapheurController::getModal($config);
+                $attachmentToFreeze = FastParapheurController::sendDatas(['config' => $config, 'resIdMaster' => $value]);
             }
         }
 
-        IxbusController::sendDatas(['config' => $config, 'resIdMaster' => $value]);
+        \Attachment\models\AttachmentModel::freezeAttachment(['resId' => $attachmentToFreeze, 'table' => 'res_attachments']);
     }
 
     return ['result' => $result, 'history_msg' => ''];
 }
 
-
 function getXml()
 {
     if (file_exists("custom/{$_SESSION['custom_override_id']}/modules/visa/xml/remoteSignatoryBooks.xml")) {
diff --git a/modules/visa/class/IxbusController.php b/modules/visa/class/IxbusController.php
index e4b4a66ca32801f00a738dc2a1dfd7e3a941586c..0624de90e437ddfa395d7a703d584a56446adecd 100755
--- a/modules/visa/class/IxbusController.php
+++ b/modules/visa/class/IxbusController.php
@@ -116,7 +116,7 @@ class IxbusController
         $rawResponse = curl_exec($curl);
 
         $data = simplexml_load_string($rawResponse);
-        $response = $data->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->CreateSessionResponse;
+        $response = $data->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->GetNaturesAvecDroitsCreerResponse;
 
         return $response;
     }
@@ -153,7 +153,7 @@ class IxbusController
         $rawResponse = curl_exec($curl);
 
         $data = simplexml_load_string($rawResponse);
-        $response = $data->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->CreateSessionResponse;
+        $response = $data->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->GetListeUtilisateursDroitCreerResponse;
 
         return $response;
     }
@@ -193,13 +193,66 @@ class IxbusController
         $rawResponse = curl_exec($curl);
 
         $data = simplexml_load_string($rawResponse);
-        $response = $data->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->CreateSessionResponse;
+        $response = $data->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->GetMessagesModelResponse;
+
+        return $response;
+    }
+
+    public static function getMessageNature($aArgs)
+    {
+        $xmlPostString = '<?xml version="1.0" encoding="utf-8"?>
+        <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+          <soap:Body>
+            <GetMessageNature xmlns="http://www.srci.fr">
+              <messageID>123</messageID>
+            </GetMessageNature>
+          </soap:Body>
+        </soap:Envelope>';
+
+        $opts = [
+        CURLOPT_URL => 'http://parapheur.orleans.fr/parapheurws/service.asmx',
+        CURLOPT_HTTPHEADER => [
+        'content-type:text/xml;charset=\"utf-8\"',
+        'accept:text/xml',
+        "Cache-Control: no-cache",
+        "Pragma: no-cache",
+        "Content-length: ".strlen($xmlPostString),
+        "Cookie:".$aArgs['sessionId'],
+        "SOAPAction: \"http://www.srci.fr/GetMessageNature\""
+        ],
+        CURLOPT_RETURNTRANSFER => true,
+        CURLOPT_POST => true,
+        CURLOPT_POSTFIELDS  => $xmlPostString
+        ];
+
+        $curl = curl_init();
+        curl_setopt_array($curl, $opts);
+        $rawResponse = curl_exec($curl);
+
+        $data = simplexml_load_string($rawResponse);
+        $response = $data->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->GetMessageNatureResponse;
 
         return $response;
     }
 
     public static function sendDatas($aArgs)
     {
+        $attachments = \Attachment\models\AttachmentModel::getOnView([
+            'select'    => [
+                'res_id', 'res_id_version', 'title', 'identifier', 'attachment_type',
+                'status', 'typist', 'path', 'filename', 'updated_by', 'creation_date',
+                'validation_date', 'format', 'relation', 'dest_user', 'dest_contact_id',
+                'dest_address_id', 'origin', 'doc_date', 'attachment_id_master'
+            ],
+            'where'     => ['res_id_master = ?', 'attachment_type not in (?)', "status not in ('DEL', 'OBS')", 'in_signature_book = TRUE'],
+            'data'      => [$aArgs['resIdMaster'], ['incoming_mail_attachment', 'print_folder']]
+        ]);
+
+        $attachmentToFreeze = [];
+        foreach ($attachments as $value) {
+            $attachmentToFreeze[] = $value['res_id'];
+        }
+
         $xmlPostString = '<?xml version="1.0" encoding="utf-8"?>
         <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
           <soap:Body>
@@ -252,8 +305,8 @@ class IxbusController
         $rawResponse = curl_exec($curl);
 
         $data = simplexml_load_string($rawResponse);
-        $response = $data->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->CreateSessionResponse;
+        $response = $data->children('http://schemas.xmlsoap.org/soap/envelope/')->Body->children()->TransmettreResponse;
 
-        return $response;
+        return $attachmentToFreeze;
     }
 }
diff --git a/modules/visa/lang/en.php b/modules/visa/lang/en.php
index 103962837136c7466ace84524ac86f2e023f3935..8c14fd15e09d1698e1d1a2154573345ba373c1a0 100755
--- a/modules/visa/lang/en.php
+++ b/modules/visa/lang/en.php
@@ -261,5 +261,5 @@ if (!defined('_USE_DATE_IN_SIGNBLOCK_DESC')) {
 }
 
 if (!defined('_SELECT_MESSAGE_MODEL_IXBUS')) {
-    define('_SELECT_MESSAGE_MODEL_IXBUS', "Choisissez un circuit");
+    define('_SELECT_MESSAGE_MODEL_IXBUS', "Choose a circuit");
 }
diff --git a/src/app/attachment/models/AttachmentModelAbstract.php b/src/app/attachment/models/AttachmentModelAbstract.php
index d87d1526f1545644834327cf9000a5c54ed0a925..7633de7265180864ecced696b4e47ff54f4a292d 100644
--- a/src/app/attachment/models/AttachmentModelAbstract.php
+++ b/src/app/attachment/models/AttachmentModelAbstract.php
@@ -181,12 +181,12 @@ abstract class AttachmentModelAbstract
     {
         ValidatorModel::notEmpty($aArgs, ['table', 'resId']);
         ValidatorModel::stringType($aArgs, ['table']);
-        ValidatorModel::intVal($aArgs, ['resId']);
+        ValidatorModel::arrayType($aArgs, ['resId']);
 
         DatabaseModel::update([
             'table'     => $aArgs['table'],
             'set'       => ['status' => 'FRZ'],
-            'where'     => ['res_id = ?'],
+            'where'     => ['res_id in (?)'],
             'data'      => [$aArgs['resId']]
         ]);