---
title: "档案归档接口"
source: "https://weapp.eteams.cn/build/techdoc/wdoc/index.html#/public/repository/7c6cd4f8-c2f2-4131-9fdb-2749691320dc/doc/955339436993806336"
---

# 档案归档接口

**依赖引入:**

```java
<dependency>
    <groupId>com.weaver</groupId>
    <artifactId>weaver-archive-core-api</artifactId>
</dependency>
```

**方法路径:**com.weaver.archive.api.core.remote.DataToArchiveDubboService#dataToArchive

**降级类继承:**com.weaver.archive.api.core.remote.impl.DefaultDataToArchiveServiceImpl

	group=archive,moduleFlag=archive

**入参:**String xml,String tenantKey

| 参数名 | 参数说明 | 是否必填 | 参数类型 | 备注 |
| --- | --- | --- | --- | --- |
| xml | 入档案数据的xml文本 | 是 | String | 消息体大小不可超过7M |
| tenantKey | 租户KEY | 是 | String |  |

**返回值:**WeaResult

```json
{
    "code": 200,
    "msg": "xml接收成功!",
    "status": true,
    "data": {
        "xmlName": "",
        "dealResult": [
            {
                "msg": "处理成功!",
                "dataReceive": 1,
                "isSucess": true,
                "details": [
                    {
                        "msg": [],
                        "metadataId": "955350165981503494",
                        "isSucess": true,
                        "documentId": "955350170175815687"
                    }
                ]
            }
        ],
        "taskId": 955350161429348352
    },
    "fail": false
}
```
