WO2009049519A1 - Content copying method, device and system - Google Patents

Content copying method, device and system Download PDF

Info

Publication number
WO2009049519A1
WO2009049519A1 PCT/CN2008/072438 CN2008072438W WO2009049519A1 WO 2009049519 A1 WO2009049519 A1 WO 2009049519A1 CN 2008072438 W CN2008072438 W CN 2008072438W WO 2009049519 A1 WO2009049519 A1 WO 2009049519A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
server
signaling
url
unit
Prior art date
Application number
PCT/CN2008/072438
Other languages
French (fr)
Chinese (zh)
Inventor
Dongmo Xie
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009049519A1 publication Critical patent/WO2009049519A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

Content copying method, device and system are disclosed. A first signaling is sent by a user terminal to a first server storing a target document, where the first signaling at least carries a uniform resource locator (URL) corresponding to content to be copied from a source document. The first server obtains the content to be copied from the source document according to URL in the first signaling, and adds the content to the target document. A URL or several URLs, to which the content needs to be copied corresponding, is or are once sent to a target document server. The target document server implements the steps of obtaining and adding the content of source document. The signaling between the user terminal and the server is simplified, network resource is saved, and time spent in processing is reduced.

Description

一种内容的复制方法、 装置与系统 技术领域  Method, device and system for copying content
本发明涉及计算机标识语言领域, 尤其涉及一种内容的复制方 法、 装置与系统。 背景技术  The present invention relates to the field of computer identification languages, and more particularly to a method, apparatus and system for copying content. Background technique
可扩展标识语言配置接入协议 ( XCAP, Extensible Makeup Language Configuration Access Protocol )是一种用于管理可扩展标 i只语言( XML, Extensible Makeup Language )文档的协议,通过 XCAP, 用户端可以创建、 修改、 删除服务器上的各种 XML文档, 还可以添 加、 修改、 删除文档里的元素和属性。  Extensible Makeup Language Configuration Access Protocol (XCAP) is a protocol for managing extensible Makeup Language (XML) documents. Through XCAP, the client can create and modify. Delete various XML documents on the server, and also add, modify, and delete elements and attributes in the document.
当前的 XCAP中定义了三种管理的操作方法(Method ): GET, PUT, DELETE, 分别表示获取、 创建 ί'爹改(添加)、 删除。  The current XCAP defines three methods of management (Method): GET, PUT, DELETE, which respectively means to get, create ί 'tampering (add), delete.
使用 XCAP来管理单个文档时一般是方便的,但是,在管理多个 文档,特别是实现将一个文档中的内容复制添加给另一个文档的功能 时, 现有的 XCAP还是有不方便使用的地方。 下面举一实例说明: 用户有一个个人的地址本( Private Address book ) ,放在服务器上 的 XML文档(DOC, Document, 本发明中特指放在服务器上, 通过 XCAP管理的 XML文档) A中:  It is generally convenient to use XCAP to manage a single document, but existing XCAP is inconvenient to use when managing multiple documents, especially when copying content from one document to another. . The following is an example: The user has a personal address book (Private Address Book), an XML document placed on the server (DOC, Document, specifically in the present invention, placed on the server, XML document managed by XCAP) :
DOC A的统一资源定位标识( URL, Uniform Resource Locator ) 疋:  DOC A's Uniform Resource Locator (URL, Uniform Resource Locator) 疋:
HTTP:〃 example . com/ resource-list/ users/ sip:bill@example . com/ inde x。  HTTP:〃 example . com/ resource-list/users/ sip:bill@example . com/ inde x.
DOC A是 XML格式的文档, 其内容如下:  DOC A is a document in XML format with the following contents:
<?xml version:" 1.0" encoding="UTF-8 " ?>  <?xml version:" 1.0" encoding="UTF-8 " ?>
<resource-lists xmlns= "urn: ietf: arams: xml: ns: resource-lists " xmlns:xsi="http:〃 www.w3.org/2001/XMLSchema-instance"> <list name="privateAddressBook"> <entry uri=" sip:bill@example. com"> <resource-lists xmlns= "urn: ietf: arams: xml: ns: resource-lists "xmlns:xsi="http:〃www.w3.org/2001/XMLSchema-instance"><listname="privateAddressBook"> <entry uri=" sip:bill@example. com">
<display-name> Bill Doe</ display-name>  <display-name> Bill Doe</ display-name>
</entry>  </entry>
</list>  </list>
</resource-lists>  </resource-lists>
该地址本上包含有一个叫 Bill Doe的联系人。  The address book contains a contact called Bill Doe.
此外 , 还有一个该用户受雇的公司的地址本 ( Enterprise Address Book ), 也放在该服务器上的上的文档 B(DOC B)中, 该公司的地址 本中包含有联系人 Joe和 Nancy。  In addition, there is an enterprise address book (Enterprise Address Book) of the company that the user is employed in, also placed in the document B (DOC B) on the server, the company's address book contains contacts Joe and Nancy .
DOC B的 URL是:  The URL of DOC B is:
HTTP:〃 example.com/resource-lists/global/index。 DOC B的内客如 下:  HTTP: 〃 example.com/resource-lists/global/index. The insiders of DOC B are as follows:
<?xml version:" 1.0" encoding="UTF-8 " ?>  <?xml version:" 1.0" encoding="UTF-8 " ?>
<resource-lists xmlns= "urn: ietf: arams: xml: ns: resource-lists " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <list name="enterpriseAddressBook">  <resource-lists xmlns= "urn: ietf: arams: xml: ns: resource-lists " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <list name="enterpriseAddressBook" >
<entry uri="sip:bill@example.com">  <entry uri="sip:bill@example.com">
<display-name>Bill Doe</ display-name>  <display-name>Bill Doe</ display-name>
</entry>  </entry>
<entry uri="sip:joe@example.com">  <entry uri="sip:joe@example.com">
<display-name>Joe Smith</ display-name>  <display-name>Joe Smith</ display-name>
</entry>  </entry>
<entry uri="sip:nancy@example.com">  <entry uri="sip:nancy@example.com">
<display-name>Nancy Gross</display-name>  <display-name>Nancy Gross</display-name>
</entry>  </entry>
</list>  </list>
</resource-lists>  </resource-lists>
如果用户需要通过用户终端将公司地址本中的一个或者多个联系 人,例如将 sip :j oe@example.com和 sip: nancy@example.com的资料添 加到个人地址本中,如图 1所示, 根据当前的 XCAP协议的规范, 可 以通过如下的步骤来实现: If the user needs to use the user terminal to add one or more contacts in the company address book, for example, sip:j oe@example.com and sip: nancy@example.com Add to the personal address book, as shown in Figure 1, according to the current XCAP protocol specification, can be achieved by the following steps:
1 ) 用户终端向服务器发出获取(GET )请求, 从公司地址本获取 联系人 sip :j oe@example.com的信息;  1) The user terminal sends a get (GET) request to the server, and obtains information of the contact sip :j oe@example.com from the company address book;
GET  GET
http ://example . com/ resource-lists/ global/ index/〜 /resource-lists/list[ @name="enterpriseAddressBook"]/entry[@uri="sip:joe@example.c om"] HTTP/1.1  Http ://example . com/ resource-lists/ global/ index/~ /resource-lists/list[ @name="enterpriseAddressBook"]/entry[@uri="sip:joe@example.c om"] HTTP/ 1.1
Accept: application/xcap-el+xml  Accept: application/xcap-el+xml
Host: xca . example . com  Host: xca . example . com
Content-Length: 0  Content-Length: 0
2 ) 服务器正常返回联系人 sip:joe@example.com的信息;  2) The server normally returns the information of the contact sip:joe@example.com;
HTTP/1.1 200 OK  HTTP/1.1 200 OK
Etag: "wwhha"  Etag: "wwhha"
Content- Type: application/xcap-el. xml  Content- Type: application/xcap-el. xml
<entry uri="sip:joe@example.com">  <entry uri="sip:joe@example.com">
<display-name> Joe Smith </display-name>  <display-name> Joe Smith </display-name>
</entry></list>  </entry></list>
3 ) 用户终端再次向服务器发送创建 (PUT ) 请求, 将联系人 sip :j oe@example.com的信息添力口到个人地址本的文档中;  3) The user terminal sends a create (PUT) request to the server again, and adds the information of the contact sip :j oe@example.com to the document of the personal address book;
PUT  PUT
http:〃 example . com/ resource-lists/ users/ sip: bill@example . com/ index I 〜 /resource-lists/list[@name="privateAddressBook"]/entry[@uri="si p:j oe@example.com"] HTTP/ 1.1  Http:〃 example . com/ resource-lists/users/ sip: bill@example . com/ index I ~ /resource-lists/list[@name="privateAddressBook"]/entry[@uri="si p:j oe @example.com"] HTTP/ 1.1
Content- Type: application/xcap-el.xml  Content- Type: application/xcap-el.xml
Host: xca . example . com  Host: xca . example . com
<entry uri="sip:joe@example.com">  <entry uri="sip:joe@example.com">
<display-name> Joe Smith </display-name>  <display-name> Joe Smith </display-name>
</entry></list> 4 )服务器返回添加该联系人成功的消息。 </entry></list> 4) The server returns a message that the contact was successfully added.
HTTP/1.1 201 Created  HTTP/1.1 201 Created
Etag: "wwhhb"  Etag: "wwhhb"
Content- Type: application/xcap-el.xml  Content- Type: application/xcap-el.xml
步骤 5 ) 至步骤 8 ) 重复步骤 1 ) 至步骤 4 ) , 只是将其中的联系 人替换成 sip: nancy@example.com, 完成将该联系人的资料也添力口至 私人地址本的过程。  Step 5) to step 8) Repeat steps 1) to 4), just replace the contact with sip: nancy@example.com, and complete the process of adding the contact's profile to the private address book.
以上实例的方案是按照现有的 XCAP的要求,对公司地址本中两 个联系人资料逐一进行获取、创建的操作, 即先从源文档中复制一个 联系人的资料, 添加至目标文档之后, 再重复复制和添加另一个联系 人资料。 用户终端总是要先从服务器端获取到源文档 (公司地址本) 中要复制的内容(两个联系人的资料), 再根据所需复制内容的统一 资源定位标识(URL, Uniform Resource Location ), 将其添加至服务 器上的目标文档(个人地址本)中, 其过程如图 1所示, 共需要用户 终端和服务器之间交互 8条信令才能完成。  The solution of the above example is to obtain and create two contact materials in the company address book one by one according to the requirements of the existing XCAP, that is, first copy the data of a contact from the source document, and add to the target document. Repeat and copy and add another contact profile. The user terminal always needs to obtain the content to be copied in the source document (company address book) from the server (the data of two contacts), and then according to the Uniform Resource Location of the content to be copied. Add it to the target document (personal address book) on the server. The process is as shown in Figure 1. A total of 8 signalings between the user terminal and the server are required to complete.
在实现本发明过程中, 发明人发现现有技术中至少存在如下问 题: 如果需要复制添加 2个以上甚至更多的联系人, 则会导致用户终 端和目标文档所在服务器之间的信令数成倍增加, 可见, 如果需要对 多个文档之间内容的复制和添加时,按照现有的 XCAP的规范进行会 使用户终端操作步骤烦瑣重复, 占用过多网络资源, 处理时间也相应 会比较长。 发明内容  In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art: If more than two or more contacts are required to be copied, the number of signaling between the user terminal and the server where the target document is located may be If you need to copy and add content between multiple documents, according to the existing XCAP specification, the operation steps of the user terminal will be cumbersome and repeated, occupying too many network resources, and the processing time will be compared accordingly. long. Summary of the invention
本发明实施例公开了一种内容的复制方法、 装置和系统, 减少了 用户终端与目标文档服务器之间的信令交互,实现了可扩展标识语言 文档之间内容的复制。  The embodiment of the invention discloses a method, a device and a system for copying content, which reduces signaling interaction between the user terminal and the target document server, and realizes copying of content between the extensible markup language documents.
本发明实施例公开了一种内容的复制方法,应用于将可扩展标识 语言文档源文档中的内容复制到目标文档中, 包括: 存储目标文档的第一服务器接收用户终端发送第一信令,第一信 令中至少包含需要从所述源文档中复制的复制内容的统一资源定位 标识 URL; The embodiment of the invention discloses a method for copying content, which is applied to copying the content in the source document of the extensible markup language document into the target document, including: The first server storing the target document receives the first signaling sent by the user terminal, where the first signaling includes at least a uniform resource location identifier URL of the copied content that needs to be copied from the source document;
第一服务器根据 URL, 从源文档中获取复制内容添加至目标文 档中。  The first server adds the copied content from the source document to the target document according to the URL.
本发明实施例公开了一种内容的复制系统,应用于可扩展标识语 言源文档中的内容复制到目标文档中,包括:用户终端和第一服务器, 其中:  The embodiment of the invention discloses a copying system for content, which is applied to the target document in the extensible logo language source document, and includes: a user terminal and a first server, wherein:
用户终端,用于生成并发送第一信令给存储所述目标文档的第一 服务器,第一信令至少包含需要从源文档复制的复制内容的统一资源 定位标识 URL;  a user terminal, configured to generate and send the first signaling to the first server that stores the target document, where the first signaling includes at least a uniform resource location identifier URL that needs to be copied from the source document;
第一服务器, 用于接收用户终端发送的第一信令, 根据第一信令 中包含的 URL, 从源文档中获取复制内容添加至本地保存的目标文 档中。  And a first server, configured to receive the first signaling sent by the user terminal, and obtain the copied content from the source document according to the URL included in the first signaling to be added to the locally saved target document.
本发明实施例公开了一种用户终端, 包括: 生成单元、 第一发送 单元;  The embodiment of the invention discloses a user terminal, comprising: a generating unit and a first sending unit;
生成单元, 用于生成第一信令并传送给第一发送单元, 第一信令 至少包含需要从可扩展标识语言源文档中进行复制的对应复制内容 的统一资源定位标识 URL;  a generating unit, configured to generate first signaling and transmit the first signaling to the first sending unit, where the first signaling includes at least a uniform resource positioning identifier URL of the corresponding copy content that needs to be copied from the extensible markup language source document;
第一发送单元,用于将生成单元生成的第一信令发送给第一服务 器, 第一服务器用于存储可扩展标识语言目标文档, 目标文档用于存 储复制的内容。  And a first sending unit, configured to send the first signaling generated by the generating unit to the first server, where the first server is configured to store the extensible markup language target document, and the target document is used to store the copied content.
本发明实施例公开了一种服务器, 包括: 第二发送 /接收单元、 解析单元、 复制单元和存储单元, 其中:  The embodiment of the invention discloses a server, comprising: a second sending/receiving unit, a parsing unit, a copying unit and a storage unit, wherein:
第二发送 /接收单元, 用于接收用户终端发送的第一信令, 并发 送给解析单元;  a second sending/receiving unit, configured to receive the first signaling sent by the user terminal, and send the first signaling to the parsing unit;
解析单元,用于解析出第一信令中包含的需要从可扩展标识语言 源文档中复制的复制内容的统一资源定位标识 URL, 并将解析结果 发送给复制单元; 复制单元, 用于根据接收的 URL, 从源文档中获取复制内容并 添加至存储单元保存的目标文档中; 存储单元, 至少用于保存所述目 标文档。 a parsing unit, configured to parse a uniform resource location identifier URL that is included in the first signaling and needs to be copied from the extensible identifier language source document, and send the parsing result to the copy unit; a copying unit, configured to: obtain, according to the received URL, the copied content from the source document and add the copied content to the target document saved by the storage unit; and the storage unit is configured to save at least the target document.
与现有技术相比, 本发明的实施例具有以下优点:  Embodiments of the present invention have the following advantages over the prior art:
将需要复制添加的一项或多项内容的 URL—次发送给目标文档 服务器, 由目标文档服务器完成对源文档内容的获取和添加的步骤, 简化了用户终端与服务器之间信令, 节约了网络资源, 同时缩短了处 理时间。避免了现有 XCAP协议中实现 XML文档间多项内容的复制 时, 用户终端必须逐项重复获取、 添加的操作所造成的占用网络资源 以及处理效率低下的问题。 附图说明  The URL that needs to copy the added one or more contents is sent to the target document server, and the step of obtaining and adding the content of the source document by the target document server simplifies the signaling between the user terminal and the server, thereby saving Network resources, while reducing processing time. When the existing XCAP protocol is used to copy multiple contents between XML documents, the user terminal must repeatedly acquire and add operations, and occupy network resources and inefficient processing. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面 将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显 而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领 域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据 这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description For some embodiments of the present invention, other drawings may be obtained from those skilled in the art without departing from the drawings.
图 1为现有技术中 XCAP协议中文档间内容复制添加的流程图; 图 2为本发明实施例提供的信令交互流程图;  1 is a flow chart of adding content between documents in the XCAP protocol in the prior art; FIG. 2 is a flowchart of signaling interaction provided by an embodiment of the present invention;
图 3为本发明实施例提供的信令交互又一流程图;  FIG. 3 is still another flowchart of signaling interaction provided by an embodiment of the present invention;
图 4为本发明实施例提供的信令交互再一流程图;  FIG. 4 is a flowchart of signaling interaction according to an embodiment of the present invention;
图 5为本发明实施例提供的内容复制系统的示意图;  FIG. 5 is a schematic diagram of a content replication system according to an embodiment of the present invention;
图 6为本发明实施例提供的用户终端的结构示意图;  FIG. 6 is a schematic structural diagram of a user terminal according to an embodiment of the present disclosure;
图 7为本发明实施例提供的服务器的结构示意图;  FIG. 7 is a schematic structural diagram of a server according to an embodiment of the present disclosure;
图 8为本发明实施例提供的服务器中复制单元的结构示意图。 具体实施方式  FIG. 8 is a schematic structural diagram of a replication unit in a server according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方 案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部 分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普 通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 The technical party in the embodiment of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention. The present invention is clearly and completely described, and it is obvious that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例公开了一种内容的复制方法,应用于将可扩展标识 语言文档源文档中的内容复制到目标文档中, 包括:  The embodiment of the invention discloses a method for copying content, which is applied to copying the content in the source document of the extensible logo language document into the target document, including:
存储目标文档的第一服务器接收用户终端发送第一信令,第一信 令中至少包含需要从源文档中复制的对应复制内容的统一资源定位 标识 URL;  The first server storing the target document receives the first signaling sent by the user terminal, where the first signaling includes at least a uniform resource locating identifier URL of the corresponding copied content that needs to be copied from the source document;
第一服务器根据所述 URL, 从原文件中获取对应复制内容添加 至目标文档中, 并向用户终端返回复制成功结果消息。  The first server obtains the corresponding copy content from the original file and adds it to the target document according to the URL, and returns a copy success result message to the user terminal.
上述第一信令可以是用户终端和第一服务器之间定义的新的信 令,也可以是对现有的 XCAP协议中信令的扩展,为了更清楚简便地 进行说明, 本发明具体实施例将扩展的 XCAP中的 PUT信令作为第 一信令, 并且称存储目标文档的第一服务器为目标文档服务器, 对应 地, 将存储源文档的服务器称为源文档服务器。  The foregoing first signaling may be a new signaling defined between the user terminal and the first server, or may be an extension to the signaling in the existing XCAP protocol. For a clearer and more simple description, the specific embodiment of the present invention The PUT signaling in the extended XCAP is taken as the first signaling, and the first server storing the target document is referred to as the target document server, and correspondingly, the server storing the source document is referred to as the source document server.
下面结合附图, 以几个具体的实施例来进行详细说明, 还是以背 景技术中复制公司地址本中的两个联系人 joe和 nancy的资料至个人地 址本为例, 且公司地址本为源文档, 需要添加公司地址本中联系人资 料的个人地址本为目标文档。  The following is a detailed description of several specific embodiments in conjunction with the accompanying drawings, and the background information of the two contacts joe and nancy in the company address book is copied to the personal address book as an example, and the company address book is the source. For the document, you need to add the personal address book of the contact information in the company address book as the target document.
本发明实施例提供了一种内容复制添加的方法,将同在一个公司 地址本中的两个联系人 sip:joe@example.com>¾ sip:nancy@example. com的资料信息复制并添加到个人地址本中。 本发明实施例的信令交 互流程如图 2所示, 包括:  An embodiment of the present invention provides a method for adding content replication, which copies and adds information of two contacts sip:joe@example.com>3⁄4 sip:nancy@example.com in a company address book to Personal address book. The signaling interaction process in the embodiment of the present invention is as shown in FIG. 2, and includes:
步骤 201、 用户终端创建并发送一个扩展的 XCAP PUT请求 (以 下简称为扩展的 PUT请求)给存储目标文档(个人地址本)服务器(目 标文档服务器), 此扩展的 PUT请求中依次包含了需要从源文档(公 司地址本)中复制到目标文档(个人地址本)中的那部分内容(两个 联系人的资料) 的 URL。 用户终端定义的扩展的 PUT请求的信息体为一个 XML文件,其 格式可以通过如下的 XML模式(XML schema )表示: Step 201: The user terminal creates and sends an extended XCAP PUT request (hereinafter referred to as an extended PUT request) to the storage target document (personal address book) server (target document server), and the extended PUT request sequentially includes the need to The URL of the part of the source document (company address book) copied to the target document (personal address book) (data of two contacts). The information body of the extended PUT request defined by the user terminal is an XML file, and its format can be expressed by the following XML schema:
<?xml version:" 1.0" encoding="UTF-8 " ?>  <?xml version:" 1.0" encoding="UTF-8 " ?>
<xs: schema  <xs: schema
xmlns:hwmp="http://www.huawei om/xcap_mutilput_extention> Xmlns:hwmp="http://www.huawei om/xcap_mutilput_extention>
xmlns:xs=http://www. w3.org/2001/XMLSchema  Xmlns:xs=http://www.w3.org/2001/XMLSchema
targetNamespace=http://www.huawei om/xcap_mutilput_extention elementFormDefault="qualified"  targetNamespace=http://www.huawei om/xcap_mutilput_extention elementFormDefault="qualified"
attributeFormDefault="unqualified"> attributeFormDefault="unqualified">
<xs: complexType name="content_type">  <xs: complexType name="content_type">
<xs:sequence>  <xs:sequence>
<xs: element name="url"/>  <xs: element name="url"/>
<xs: element name="etag" minOccurs="0"/>  <xs: element name="etag" minOccurs="0"/>
</xs:sequence>  </xs:sequence>
</xs:complexType>  </xs:complexType>
<xs: element name="multi_put_content">  <xs: element name="multi_put_content">
<xs: complexType mixed="false">  <xs: complexType mixed="false">
<xs:sequence>  <xs:sequence>
<xs: element name="content" type="hwmp: content type " maxOccurs="unbounded"/>  <xs: element name="content" type="hwmp: content type " maxOccurs="unbounded"/>
</xs:sequence>  </xs:sequence>
</xs:complexType>  </xs:complexType>
</xs:element>  </xs:element>
</xs:schema>  </xs:schema>
用户终端通过上述 XML schema定义了这个扩展的 PUT请求的 消息体的格式, 约定了此种消息体格式元素为" multi_put— content ", 即多项内容的添加, 又定义多项内容的内容类型 "content— type "为 URL。 服务器在收到扩展的 PUT请求后, 能够按照用户终端定义的 上述消息体格式, 根据扩展的 PUT请求中包含的多项内容的对应的 URL来完成复制添加的操作。 The user terminal defines the format of the message body of the extended PUT request through the above XML schema, and stipulates that the message body format element is "multi_put_content", that is, the addition of multiple contents, and defines the content type of multiple contents." Content— type "is the URL. After receiving the extended PUT request, the server can follow the message body format defined by the user terminal according to the corresponding content of the multiple contents included in the extended PUT request. URL to complete the operation of copying and adding.
用户终端通过使用上述扩展的 PUT请求, 将需要复制添加的多 项内容的 URL放在一次信令中发送给目标文档服务器, 由目标文档 服务器来完成对源文档中联系人资料的获取, 并添加到目标文档中, 而不需要用户和目标服务器之间重复交互多次信令。  The user terminal sends the URL of the multiple content that needs to be copied and added to the target document server by using the extended PUT request, and the target document server completes the acquisition of the contact data in the source document, and adds Go to the target document without repeating multiple signaling between the user and the target server.
用户终端发送给目标服务器的扩展的 PUT请求如下:  The extended PUT request sent by the user terminal to the target server is as follows:
PUT  PUT
http:〃 example . com/ resource-lists/ users/ sip: bill@example . com/ index I 〜 /resource-lists/list[@name="privateAddressBook"]/entry[@uri="sip:j oe@example.com"] HTTP/ 1.1  Http:〃 example . com/ resource-lists/users/ sip: bill@example . com/ index I ~ /resource-lists/list[@name="privateAddressBook"]/entry[@uri="sip:j oe@ Example.com"] HTTP/ 1.1
Content- Type: application/x-mutil-put+xml  Content- Type: application/x-mutil-put+xml
Require: x-mutil-put  Require: x-mutil-put
Host: xca . example . com  Host: xca . example . com
<?xml version:" 1.0" encoding="UTF-8 " ?>  <?xml version:" 1.0" encoding="UTF-8 " ?>
<multi_put— content  <multi_put— content
xmlns="http://www.huawei.com/xcap_mutilput_extention">  Xmlns="http://www.huawei.com/xcap_mutilput_extention">
<content>  <content>
<url>htt : //example . com/ resource-lists/ global/ index/― /resource-list s/list[@name="enterpriseAddressBook"]/entry[@uri="sip:joe@example. com"]</url>  <url>htt : //example . com/ resource-lists/ global/ index/― /resource-list s/list[@name="enterpriseAddressBook"]/entry[@uri="sip:joe@example. com" ]</url>
</content>  </content>
<content>  <content>
<url>htt : //example . com/ resource-lists/ global/ index/― /resource-list s/list[@name="enterpriseAddressBook"]/entry[@uri="sip:nancy@examp le.com"]</url>  <url>htt : //example . com/ resource-lists/ global/ index/― /resource-list s/list[@name="enterpriseAddressBook"]/entry[@uri="sip:nancy@examp le.com "]</url>
</content>  </content>
</ multi_put_content>  </ multi_put_content>
对上述扩展的 PUT请求做简单的说明:  A brief description of the above extended PUT request:
第 4 行中的 Content-Type 头域的值是新定义的信息体类型: application/x-multi-put+xml (也可以定义成其他类型, 本发明实施例 对此不做限定),指明了上述扩展的 PUT请求的内容的类型是这种新 定义的媒体类型。 The value of the Content-Type header field in line 4 is the newly defined body type: The application/x-multi-put+xml (which may also be defined as other types, which is not limited by the embodiment of the present invention) indicates that the type of the content of the extended PUT request is the newly defined media type.
在上述扩展的 PUT请求中, 釆用了标准头域" Require"对 PUT请 求进行了扩展, 定义了一个扩展条件 "x-mutil-put", 在第 5 行中将 Require 头 i或值设为 x-mutil-put; 用户终端通过上述" Require"头 i或, 向服务器端发出请求, 请求服务器端支持扩展的 PUT请求, 执行扩 展的 PUT请求定义多项内容添加的功能。 在实际应用过程中, 也可 以釆用 自定义头域来扩展的方式, 例如将 "Require"头域换成 "X-extension"自定义头域, 在对 PUT请求进行扩展时, "X-extension" 头 i或对应的值尤是 x-mutil-put。  In the above extended PUT request, the standard header field "Require" is used to extend the PUT request, an extension condition "x-mutil-put" is defined, and the Require header i or value is set in the fifth line. X-mutil-put; The user terminal sends a request to the server through the above "Require" header i, requests the server side to support the extended PUT request, and performs an extended PUT request to define a plurality of content addition functions. In the actual application process, you can also use the custom header field to expand the way, for example, replace the "Require" header field with the "X-extension" custom header field. When expanding the PUT request, "X-extension "The header i or the corresponding value is especially x-mutil-put.
在上述扩展的 PUT命令中, 包含了需要复制和添加至个人地址 本的两个联系人的 URL:  In the above extended PUT command, the URLs of the two contacts that need to be copied and added to the personal address book are included:
在上述扩展的 PUT 命令中, 顺序包含了第一联系人 sip :j oe@example.com 以及第二联系人 sip: nancy@example.com 的 URL:  In the above extended PUT command, the order includes the URL of the first contact sip :j oe@example.com and the second contact sip: nancy@example.com:
http ://example . com/ resource-lists/ global/ index/〜 /resource-lists/list[ @name="enterpriseAddressBook"]/entry[@uri="sip:joe@example.com"] 是第一联系人 sip :j oe@example.com的 URL;  Http ://example . com/ resource-lists/ global/ index/~ /resource-lists/list[ @name="enterpriseAddressBook"]/entry[@uri="sip:joe@example.com"] is the first The URL of the contact sip :j oe@example.com;
http ://example . com/ resource-lists/ global/ index/〜 /resource-lists/list[ @name= " enterprise AddressBook" ] /entry [ @uri= " sip : nancy @example . co m"]是第二联系人 sip: nancy@example.com的 URL„  Http ://example . com/ resource-lists/ global/ index/~ /resource-lists/list[ @name= " enterprise AddressBook" ] /entry [ @uri= " sip : nancy @example . co m"] is Second contact sip: URL of nancy@example.com„
上述扩展的 PUT请求中包含了需要复制和添加至个人地址本的 两个联系人资料的 URL (当然实际情况也可以包含两个以上甚至更 多,本发明实施例对此不做限定 ),目标文档服务器通过该扩展的 PUT 请求中所需复制内容的 URL, 顺序地获取并添加需要复制的内容。  The above-mentioned extended PUT request includes the URLs of the two contact materials that need to be copied and added to the personal address book (of course, the actual situation may also include more than two or more, which is not limited by the embodiment of the present invention), and the target The document server sequentially acquires and adds the content to be copied through the URL of the desired copy content in the extended PUT request.
目标文档服务器通过该扩展的 PUT请求中的 Require的头域值, 确认用户终端发送的是扩展的 PUT请求,而不是现有 XCAP下的 PUT 请求, 按照该上述扩展 PUT请求定义的方式进行处理, 即根据多项 所需复制内容的 URL, 将其复制并添加至目标文档中; 步骤 202、 目标文档服务器收到并确认为该扩展的 PUT请求后, 通过该扩展的 PUT请求中包含的第一个联系人 sip: j oe @example . com 的 URL, 判断出包含该联系人资料的公司地址本文档也同在目标文 档服务器上, 然后目标文档服务器执行步骤 203; The target document server confirms that the user terminal sends the extended PUT request through the Require header field value in the extended PUT request, instead of the PUT request under the existing XCAP, and processes according to the manner defined by the extended PUT request. That is, according to multiple The URL of the content to be copied is copied and added to the target document; Step 202: After the target document server receives and confirms the PUT request for the extension, the first contact sip included in the extended PUT request is : j oe @example . com URL, determine the company address containing the contact information, this document is also on the target document server, and then the target document server performs step 203;
步骤 203、 目标文档服务器根据第一联系人的 URL, 直接从公司 地址本文档中获取第一个联系人 sip:joe@example.com的资料信息; 步骤 204、 目标文档服务器向个人地址本文档中添加步骤 203中 获取的第一个联系人 sip: j oe @example . com的资料信息;  Step 203: The target document server obtains the material information of the first contact sip:joe@example.com directly from the company address book according to the URL of the first contact; Step 204, the target document server sends the information to the personal address book. Adding the information of the first contact sip: j oe @example . com obtained in step 203;
步骤 205、目标文档服务器根据该扩展的 PUT请求中的第二个联 系人 sip:nancy@example.com的 URL, 判断出第二个联系人的资料也 在第一个联系人所在的公司地址本中, 然后目标文档执行步骤 206; 步骤 206、 目标文档服务器根据第二联系人的 URL, 直接从公司 地址本文档中获取第二个联系人 sip: nancy@example.com 的资料信 息;  Step 205: The target document server determines, according to the URL of the second contact sip:nancy@example.com in the extended PUT request, that the information of the second contact is also in the company address book where the first contact is located. Then, the target document performs step 206; Step 206: The target document server obtains the data information of the second contact sip: nancy@example.com directly from the company address book according to the URL of the second contact;
步骤 207、 目标文档服务器将步骤 206 中获取的该联系人 sip: nancy@example.com的资料添力口至个人地址本文当;  Step 207: The target document server adds the information of the contact sip: nancy@example.com obtained in step 206 to the personal address.
如果还需要将上述公司地址本文档中第三个第四个联系人甚至 更多联系人都添加至上述个人地址本文档的话,只需要重复上述步骤 202至 203即可。  If you need to add the third and fourth contacts or even more contacts in the above company address to the above personal address book, you only need to repeat steps 202 to 203 above.
步骤 208、目标文档服务器返回用户终端已复制成功的结果消息。 如果多个联系人 Joe和 Nancy同在一个公司地址本中,并且该公 司地址本与私人地址本不在同一个服务器上,即公司地址本在另一个 源文档服务器上, 则流程如图 3所示, 包括:  Step 208: The target document server returns a result message that the user terminal has successfully copied. If multiple contacts Joe and Nancy are in the same company address book, and the company address book is not on the same server as the private address book, that is, the company address book is on another source document server, the flow is as shown in FIG. , including:
步骤 301、用户终端创建并发送一个扩展的 PUT请求给目标文档 (个人地址本) 所在的目标文档服务器;  Step 301: The user terminal creates and sends an extended PUT request to the target document server where the target document (personal address book) is located;
步骤 302、 目标文档服务器收到该扩展的 PUT请求后,按照该扩 展的 PUT请求中的需要复制添加的第一联系人资料的 URL, 判断出 其所在的公司地址本在源文档服务器上,即公司地址本与个人地址本 不在一个服务器上; Step 302: After receiving the extended PUT request, the target document server copies the URL of the added first contact data according to the extended PUT request, and determines that the company address book is located on the source document server, that is, Company address book and personal address book Not on a server;
步骤 303、 目标文档服务器发送 GET请求给源文档服务器, 请 求获取公司地址本中第一个联系人 joe的资料;  Step 303: The target document server sends a GET request to the source document server, requesting the information of the first contact joe in the company address book;
步骤 304: 源文档服务器返回第一个联系人 joe的资料信息; 步骤 305、 目标文档服务器将获取到第一个联系人的资料添加至 个人地址本中;  Step 304: The source document server returns the data information of the first contact joe; Step 305: The target document server adds the data of the first contact to the personal address book;
步骤 306、目标文档服务器通过扩展的 PUT请求中第二个联系人 Nancy资料的 URL, 判断出其所在的公司地址本在源文档服务器上; 步骤 307、 目标文档服务器请求获取公司地址本中第二个联系人 的资料;  Step 306: The target document server determines, by using the URL of the second contact Nancy data in the extended PUT request, that the company address book is located on the source document server. Step 307: The target document server requests to obtain the second address of the company address book. Information of contacts;
步骤 308、 源文档服务器返回第二个联系人 nancy的资料信息; 步骤 309、 目标文档服务器将获取的第二个人的资料添加至个人 地址本中;  Step 308: The source document server returns the data information of the second contact nancy; Step 309: The target document server adds the acquired second person's data to the personal address book;
步骤 310、 目标文档服务器向用户终端返回已复制成功的结果消 息。  Step 310: The target document server returns a successfully copied result message to the user terminal.
如图 4所示, 如果需要添加的两个联系人 joe和 nancy的资料分 别属于两个不同的公司地址本 A和公司地址本 B , 且公司地址本 A 与个人地址本(目标文档) 同在目标文档服务器上, 而公司地址本 B 在另一个源文档服务器上。现在需要将两个联系人的资料复制并添加 至个人地址本中, 其具体流程如图 4所示。  As shown in Figure 4, if the two contacts joe and nancy need to be added belong to two different company address book A and company address book B, and the company address book A is the same as the personal address book (target document). On the target document server, the company address book B is on another source document server. Now you need to copy and add the data of the two contacts to the personal address book. The specific process is shown in Figure 4.
当用户终端发送扩展的 PUT请求给目标文档服务器时, 该目标 文档服务器通过扩展的 PUT请求中第一个联系人 joe的 URL获知其 所在的公司地址本 A在本地服务器上, 则直接获取公司地址本 A中 联系人的资料并添加至个人地址本 (具体步骤与实施例 1 中的步骤 202至步骤 203类似;)。  When the user terminal sends the extended PUT request to the target document server, the target document server obtains the address of the company address A on the local server through the URL of the first contact joe in the extended PUT request, and directly obtains the company address. The information of the contact in this A is added to the personal address book (the specific steps are similar to steps 202 to 203 in Embodiment 1;).
目标文档服务器通过扩展的 PUT请求中第二个联系人 nancy的 URL, 向源文档服务器发送 GET请求, 获取该联系人的资料信息后, 添加至本地的个人地址本(目标文档)中(具体步骤与实施例 2中的 步骤 302至步骤 305类似;)。 当需要添加的联系人资料都已经添加完成后,返回用户终端已复 制成功的结果消息。 The target document server sends a GET request to the source document server through the URL of the second contact nancy in the extended PUT request, and obtains the profile information of the contact, and then adds it to the local personal address book (target document) (specific steps) Similar to step 302 to step 305 in Embodiment 2; After the contact data that needs to be added has been added, the result message that the user terminal has successfully copied is returned.
才艮据上述实施例所述的一种 XML文档间内容复制的方法, 本实 施例提供了一种内容复制系统,应用于可扩展标识语言源文档中的内 容复制到目标文档中, 如图 5所示, 包括: 用户终端和第一服务器, 其中:  According to the method for copying content between XML documents according to the above embodiment, the embodiment provides a content copying system, and the content applied to the source file of the extensible markup language is copied into the target document, as shown in FIG. 5. As shown, the method includes: a user terminal and a first server, wherein:
用户终端 51 , 用于生成并发送所述第一信令给存储所述目标文 档的第一服务器 52, 所述第一信令至少包含需要从源文档复制的复 制内容的统一资源定位标识 URL;  The user terminal 51 is configured to generate and send the first signaling to the first server 52 that stores the target document, where the first signaling includes at least a uniform resource location identifier URL of the copied content that needs to be copied from the source document;
第一服务器 52, 用于接收所述用户终端 51发送的第一信令, 并 根据所述第一信令中包含的所述 URL, 从所述源文档中获取复制的 内容添加至本地保存的所述目标文档中。  The first server 52 is configured to receive the first signaling sent by the user terminal 51, and obtain, according to the URL included in the first signaling, the copied content that is obtained from the source document and added to the locally saved In the target document.
上述第一服务器 52从源文档中获取复制的内容添加至本地保存 的目标文档之后,还用于向所述用户终端 51返回复制成功结果消息。  After the first server 52 obtains the copied content from the source document and adds it to the locally saved target document, it also returns a copy success result message to the user terminal 51.
上述内容复制系统还可以包括一个或多个用于存储源文档的第 二服务器 53。  The content replication system described above may also include one or more second servers 53 for storing source documents.
第一服务器 52根据所述第一信令中包含的 URL, 向存储对应源 文档的第二服务器 53发送获取请求, 并将获取到的复制内容添加至 所述目标文档中。  The first server 52 sends an acquisition request to the second server 53 storing the corresponding source document according to the URL included in the first signaling, and adds the acquired copy content to the target document.
本发明实施例提供了一种用户终端, 如图 6所示, 包括生成单元 601和第一发送单元 602;  The embodiment of the present invention provides a user terminal, as shown in FIG. 6, including a generating unit 601 and a first sending unit 602;
生成单元 601 , 用于生成第一信令并传送给所述第一发送单元 602; 所述第一信令中至少包含需要从可扩展标记语言源文档中进行 复制的对应复制内容的统一资源定位标识 URL;  The generating unit 601 is configured to generate first signaling and transmit the first signaling to the first sending unit 602. The first signaling includes at least a unified resource positioning of the corresponding copied content that needs to be copied from the extensible markup language source document. Identification URL;
第一发送单元 602, 用于将所述生成单元生成的所述第一信令发 送给第一服务器, 所述第一服务器用于管理可扩展标记语言目标文 档, 所述目标文档用于存储所述复制内容;  a first sending unit 602, configured to send the first signaling generated by the generating unit to a first server, where the first server is configured to manage an extensible markup language target document, where the target document is used to store Copy the content;
上述用户终端还可以包括: 第一接收单元 602, 用于接收所述第 一服务器返回的复制成功结果消息。 本发明实施例提供了一种服务器, 如图 7所示, 包括: 第二发送 /接收单元 701、 解析单元 702、 复制单元 703和存储单元 704, 其中: 第二发送 /接收单元 701 , 用于接收用户终端发送的第一信令, 并 发送给解析单元 702; 所述第一信令中至少包含需要从可扩展标记语 言源文档中进行复制的对应复制内容的统一资源定位标识 URL; 解析单元 702 , 用于解析出第一信令中包含的需要从可扩展标记 语言源文档中复制的复制内容的统一资源定位标识 URL, 并将解析 结果发送给复制单元 703; The user terminal may further include: a first receiving unit 602, configured to receive a replication success result message returned by the first server. The embodiment of the present invention provides a server. As shown in FIG. 7, the method includes: a second sending/receiving unit 701, a parsing unit 702, a copying unit 703, and a storage unit 704, where: a second sending/receiving unit 701 is configured to: Receiving the first signaling sent by the user terminal, and sending the first signaling to the parsing unit 702; the first signaling includes at least a uniform resource positioning identifier URL of the corresponding copy content that needs to be copied from the extensible markup language source document; 702, configured to parse the unified resource location identifier URL that is included in the first signaling and needs to be copied from the extensible markup language source document, and send the parsing result to the copying unit 703;
复制单元 703 , 用于根据接收的所述 URL, 从源文档中获取复制 内容添加至存储单元 704中保存的目标文档中;  a copying unit 703, configured to obtain, according to the received URL, the copied content from the source document to be added to the target document saved in the storage unit 704;
存储单元 704 , 用于保存所述目标文档;  a storage unit 704, configured to save the target document;
复制单元 703 , 还用于并在全部复制内容添加完毕后, 发送通知 消息给第二发送 /接收单元 701 ;  The copying unit 703 is further configured to send a notification message to the second sending/receiving unit 701 after all the copied content is added;
第二发送 /接收单元 701还用于在接收到复制单元的通知消息后, 发送复制成功结果消息给用户终端。  The second sending/receiving unit 701 is further configured to send a copy success result message to the user terminal after receiving the notification message of the copy unit.
其中, 如图 8所示, 复制单元又具体包括: 判断子单元 801、 第 一获取子单元 802、 第二获取子单元 803和添加子单元 804;  As shown in FIG. 8, the copy unit specifically includes: a determining subunit 801, a first obtaining subunit 802, a second obtaining subunit 803, and an adding subunit 804;
判断子单元 801 , 用于根据接收的所述 URL, 判断所述源文档是 否保存在所述存储单元中, 若是, 则将所述 URL发送给所述第一获 取子单元 802; 否则, 将所述 URL发送给所述第二获取子单元 803 ; 第一获取子单元 802根据所述 URL从所述存储单元保存的对应 源文档中获取对应复制内容, 并发送给所述添加子单元 804;  a determining subunit 801, configured to determine, according to the received URL, whether the source document is saved in the storage unit, and if yes, send the URL to the first obtaining subunit 802; otherwise, The URL is sent to the second obtaining sub-unit 803; the first obtaining sub-unit 802 obtains corresponding copy content from the corresponding source document saved by the storage unit according to the URL, and sends the corresponding copy content to the adding sub-unit 804;
第二获取子单元 803根据所述 URL向存储所述源文档的对应服 务器发送获取请求,并将获取到的对应复制内容发送给所述添加子单 元 804;  The second obtaining sub-unit 803 sends an acquisition request to the corresponding server storing the source document according to the URL, and sends the obtained corresponding copy content to the adding sub-unit 804;
添加子单元 804, 用于将接收的复制内容添加到所述存储单元中 保存的目标文档中, 并在全部内容复制添加完毕后, 发送通知消息所 述第二发送 /接收单元。  The adding sub-unit 804 is configured to add the received copy content to the target document saved in the storage unit, and send the notification message to the second sending/receiving unit after all the content copying is completed.
本发明实施例提供的一种内容的复制方法、 装置及系统, 将需要 复制添加的一项或多项内容的 URL—次发送给目标文档服务器, 不 论源文档和目标文档是否在同一个服务器上,由目标文档服务器来完 成对源文档内容的获取和添加的步骤, 简化了现有技术中 XML文档 间多项内容的复制时,用户终端必须逐项进行重复获取、添加的操作 , 从而减少了用户终端与服务器之间的信令开销, 节约了网络资源, 同 时也缩短了处理时间, 提高了处理效率。 A content copying method, device and system provided by an embodiment of the present invention will be required Copying the URL of one or more added content—sends to the target document server, regardless of whether the source document and the target document are on the same server, and the step of obtaining and adding the source document content by the target document server is simplified. When copying multiple contents between XML documents in the prior art, the user terminal must perform repeated acquisition and addition operations one by one, thereby reducing signaling overhead between the user terminal and the server, saving network resources and shortening at the same time. The processing time increases the processing efficiency.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解 到本发明可以通过硬件实现,也可以可借助软件加必要的通用硬件平 台的方式来实现基于这样的理解,本发明的技术方案可以以软件产品 的形式体现出来, 该软件产品可以存储在一个非易失性存储介质(可 以是 CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一 台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行 本发明各个实施例所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by hardware, or can be implemented by means of software plus necessary general hardware platform, and the technical solution of the present invention. It can be embodied in the form of a software product that can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for making a computer device (may It is a personal computer, a server, or a network device, etc.) that performs the methods described in various embodiments of the present invention.
以上公开的仅为本发明的几个具体实施例, 但是, 本发明并非局 限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护 范围。  The above disclosure is only a few specific embodiments of the present invention, but the present invention is not limited thereto, and any changes that can be made by those skilled in the art should fall within the protection scope of the present invention.

Claims

权利要求 Rights request
1、 一种内容的复制方法, 应用于将可扩展标识语言文档源文档 中的内容复制到目标文档中, 其特征在于, 包括: A method for copying content, which is applied to copying content in a source document of an extensible markup language document into a target document, and is characterized by comprising:
存储所述目标文档的第一服务器接收用户终端发送的第一信令, 所述第一信令中至少包含需要从所述源文档中复制的复制内容的统 一资源定位标识 URL;  The first server that stores the target document receives the first signaling sent by the user terminal, where the first signaling includes at least a unified resource location identifier URL of the copied content that needs to be copied from the source document;
所述第一服务器根据所述 URL, 从所述源文档中获取复制内容 并添加至所述目标文档中。  The first server obtains the copied content from the source document according to the URL and adds it to the target document.
2、 如权利要求 1所述的方法, 其特征在于, 所述第一服务器从 所述源文档中获取复制内容并添加至所述目标文档后, 还包括:  The method of claim 1, wherein the first server, after obtaining the copied content from the source document and adding the target content to the target document, further includes:
向所述用户终端返回复制成功结果消息。  A copy success result message is returned to the user terminal.
3、 如权利要求 1所述的方法, 其特征在于, 所述第一服务器接 收到所述第一信令后, 还包括:  The method according to claim 1, wherein, after the first server receives the first signaling, the method further includes:
根据所述 URL, 判断所述源文档是否存储在第一服务器, 若是, 则从源文档中获取复制内容, 并添加至所述目标文档中; 否则  Determining, according to the URL, whether the source document is stored in the first server, and if so, obtaining the copied content from the source document and adding to the target document; otherwise
所述第一服务器向存储所述源文档的第二服务器发送获取请求 , 并将获取到的复制内容添加至所述目标文档中。  The first server sends an acquisition request to a second server storing the source document, and adds the acquired copy content to the target document.
4、 如权利要求 1所述的方法, 其特征在于, 所述第一信令包含 一个以上的所述 URL, 每一个所述的 URL对应一项复制内容。  4. The method according to claim 1, wherein the first signaling includes more than one of the URLs, and each of the URLs corresponds to a copy of the content.
5、 如权利要求 4所述的方法, 其特征在于, 所述第一服务器根 据所述第一信令中包含的所述各 URL的顺序, 依次获取复制内容并 添加至所述目标文档中。  The method according to claim 4, wherein the first server sequentially acquires the copied content and adds it to the target document according to the order of the URLs included in the first signaling.
6、 如权利要求 1至 5所述的任一方法, 其特征在于, 所述第一 信令通过对可扩展标识语言配置接入协议 XCAP中定义的创建 /修改 PUT信令进行扩展生成。  6. The method according to any one of claims 1 to 5, wherein the first signaling is extended by generating/modifying PUT signaling defined in the Extensible Identity Language Configuration Access Protocol XCAP.
7、 如权利要求 6所述的方法, 其特征在于, 所述对 XCAP中定 义的 PUT信令进行扩展, 具体包括:  The method of claim 6, wherein the extending the PUT signaling defined in the XCAP comprises:
将 PUT信令中的请求 Require头域的值设为一个新的扩展条件; 并定义一个新的媒体类型,使内容类型 Content-Type头域的值设为所 述新的媒体类型; Setting the value of the request Require header field in the PUT signaling to a new extension condition; And defining a new media type, setting the value of the content type Content-Type header field to the new media type;
所述用户终端发送第一信令给存储所述目标文档的第一服务器 , 包括:  The user terminal sends the first signaling to the first server that stores the target document, including:
所述用户终端向所述第一服务器发送扩展后的 PUT信令, 携带 所述 URL;  Transmitting, by the user terminal, the extended PUT signaling to the first server, and carrying the URL;
所述第一服务器根据所述 URL, 从所述源文档中获取复制内容 并添加至所述目标文档, 包括:  And obtaining, by the first server, the copied content from the source document according to the URL, and adding the content to the target document, including:
所述第一服务器接收到所述用户终端发送的信令后,解析出所述 Require头域的值为所述新的扩展条件, 以及解析出 Content-Type头 域的值设为所述新的媒体类型, 确定出当前接收的信令为扩展后的 PUT信令; 并根据该扩展后的 PUT信令中包含的 URL, 从所述源文 档中获取复制内容添加至所述目标文档。  After receiving the signaling sent by the user terminal, the first server parses out the value of the Require header field as the new extension condition, and parses the value of the Content-Type header field to be the new one. The media type determines that the currently received signaling is the extended PUT signaling; and obtains the copied content from the source document to be added to the target document according to the URL included in the extended PUT signaling.
8、 一种内容复制系统, 应用于可扩展标识语言源文档中的内容 复制到目标文档中, 其特征在于, 包括: 用户终端和第一服务器, 其 中:  8. A content replication system, the content applied to the extensible markup language source document is copied to the target document, and is characterized by comprising: a user terminal and a first server, wherein:
所述用户终端,用于生成并发送所述第一信令给存储所述目标文 档的第一服务器,所述第一信令至少包含需要从源文档复制的复制内 容的统一资源定位标识 URL;  The user terminal is configured to generate and send the first signaling to a first server that stores the target document, where the first signaling includes at least a uniform resource location identifier URL of the copied content that needs to be copied from the source document;
所述第一服务器, 用于接收所述用户终端发送的第一信令, 根据 所述第一信令中包含的所述 URL, 从所述源文档中获取复制内容并 添加至本地保存的所述目标文档中。  The first server is configured to receive the first signaling sent by the user terminal, obtain the copied content from the source document according to the URL included in the first signaling, and add the content to the locally saved office. In the target document.
9、 如权利要求 8所述的内容复制系统, 其特征在于, 所述第一 服务器还用于向所述用户终端返回复制成功结果消息。  The content replication system according to claim 8, wherein the first server is further configured to return a copy success result message to the user terminal.
10、 如权利要求 8所述的内容复制系统, 其特征在于, 还包括一 个或多个第二服务器, 存储所述源文档;  10. The content replication system of claim 8, further comprising one or more second servers, storing the source document;
所述第一服务器根据第一信令包含的所述 URL, 向存储所述源 文档的第二服务器发送获取请求,并将获取到的复制内容添加至所述 目标文档中。 The first server sends an acquisition request to the second server storing the source document according to the URL included in the first signaling, and adds the obtained copy content to the target document.
11、 一种用户终端, 其特征在于, 包括: 生成单元、 第一发送单 元; A user terminal, comprising: a generating unit, a first sending unit;
所述生成单元, 用于生成第一信令并传送给所述第一发送单元, 所述第一信令至少包含需要从可扩展标识语言源文档中进行复制的 复制内容的统一资源定位标识 URL;  The generating unit is configured to generate first signaling and transmit the first signaling to the first sending unit, where the first signaling includes at least a uniform resource positioning identifier URL of the copied content that needs to be copied from the extensible identifier language source document ;
所述第一发送单元,用于将所述生成单元生成的所述第一信令发 送给第一服务器, 所述第一服务器用于存储可扩展标识语言目标文 档, 所述目标文档用于存储所述复制的内容。  The first sending unit is configured to send the first signaling generated by the generating unit to a first server, where the first server is configured to store an extensible markup language target document, where the target document is used for storing The copied content.
12、 如权利要求 11所述的用户终端, 其特征在于, 还包括: 第一接收单元,用于接收从所述第一服务器返回的复制成功结果 消息。  The user terminal according to claim 11, further comprising: a first receiving unit, configured to receive a copy success result message returned from the first server.
13、 一种服务器, 其特征在于, 包括: 第二发送 /接收单元、 解 析单元、 复制单元和存储单元, 其中:  13. A server, comprising: a second transmitting/receiving unit, an analyzing unit, a copying unit, and a storage unit, wherein:
所述第二发送 /接收单元, 用于接收用户终端发送的第一信令, 并发送给所述解析单元,所述第一信令至少包含需要从可扩展标识语 言源文档中进行复制的复制内容的统一资源定位标识 URL;  The second sending/receiving unit is configured to receive the first signaling sent by the user terminal, and send the first signaling to the parsing unit, where the first signaling includes at least a copy that needs to be copied from the extensible identifier language source document. Uniform resource location identification URL of the content;
所述解析单元,用于解析出第一信令中包含的需要从可扩展标识 语言源文档中复制的复制内容的统一资源定位标识 URL, 并将解析 结果发送给所述复制单元;  The parsing unit is configured to parse a uniform resource location identifier URL that is included in the first signaling and needs to be copied from the extensible identifier language source document, and send the parsing result to the copy unit;
所述复制单元, 用于根据接收的所述 URL, 从所述源文档中获 取对应复制内容并添加至所述存储单元保存的目标文档中;  The copying unit is configured to obtain corresponding copy content from the source document according to the received URL, and add the content to the target document saved by the storage unit;
所述存储单元, 用于保存所述目标文档。  The storage unit is configured to save the target document.
14、 如权利要求 13所述的服务器, 其特征在于, 所述复制单元 还用于在全部内容复制添加完毕后, 发送通知消息所述第二发送 /接 收单元;  The server according to claim 13, wherein the copying unit is further configured to: after the content copying is completed, send the notification message to the second sending/receiving unit;
所述第二发送 /接收单元还用于根据所述复制单元发送的通知消 息, 发送复制成功结果消息给所述用户终端。  The second sending/receiving unit is further configured to send a copy success result message to the user terminal according to the notification message sent by the copying unit.
15、 如权利要求 14所述的服务器, 其特征在于, 所述复制单元 包括:判断子单元、第一获取子单元、第二获取子单元和添加子单元; 所述判断子单元, 用于根据接收的所述 URL, 判断所述源文档 是否保存在所述存储单元中, 若是, 则将所述 URL发给所述第一获 取子单元; 否则, 将所述 URL发送给所述第二获取子单元; The server according to claim 14, wherein the copying unit comprises: a determining subunit, a first obtaining subunit, a second obtaining subunit, and an adding subunit; The determining subunit, configured to determine, according to the received URL, whether the source document is saved in the storage unit, and if yes, send the URL to the first acquiring subunit; otherwise, Sending the URL to the second obtaining subunit;
所述第一获取子单元根据所述 URL从所述存储单元保存的对应 源文档中获取复制的内容, 并发送给所述添加子单元;  The first obtaining sub-unit obtains the copied content from the corresponding source document saved by the storage unit according to the URL, and sends the copied content to the adding sub-unit;
所述第二获取子单元根据所述 URL向存储所述源文档的对应服 务器发送获取请求, 并将获取到的复制内容发送给所述添加子单元; 所述添加子单元,用于将接收的复制内容添加至所述存储单元中 保存的所述目标文档中, 并在全部内容复制添加完毕后, 发送通知消 息所述第二发送 /接收单元。  The second obtaining sub-unit sends an acquisition request to the corresponding server storing the source document according to the URL, and sends the obtained duplicate content to the adding sub-unit; the adding sub-unit is configured to receive the The copy content is added to the target document saved in the storage unit, and after the entire content copy is added, the notification message is sent to the second transmitting/receiving unit.
PCT/CN2008/072438 2007-10-12 2008-09-19 Content copying method, device and system WO2009049519A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710151429.0 2007-10-12
CN 200710151429 CN101179572B (en) 2007-10-12 2007-10-12 Method, device and system for copying content

Publications (1)

Publication Number Publication Date
WO2009049519A1 true WO2009049519A1 (en) 2009-04-23

Family

ID=39405657

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/072438 WO2009049519A1 (en) 2007-10-12 2008-09-19 Content copying method, device and system

Country Status (2)

Country Link
CN (1) CN101179572B (en)
WO (1) WO2009049519A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179572B (en) * 2007-10-12 2010-10-13 华为技术有限公司 Method, device and system for copying content
US9361395B2 (en) * 2011-01-13 2016-06-07 Google Inc. System and method for providing offline access in a hosted document service
US8700986B1 (en) 2011-03-18 2014-04-15 Google Inc. System and method for displaying a document containing footnotes
US8510266B1 (en) 2011-03-03 2013-08-13 Google Inc. System and method for providing online data management services
CN108696399B (en) * 2017-04-07 2020-12-29 腾讯科技(深圳)有限公司 Business service test method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041522A1 (en) * 2004-08-18 2006-02-23 Xerox Corporation. Abstract document management systems and methods
CN1852486A (en) * 2006-05-30 2006-10-25 北京万网志成科技有限公司 Method for using hand-set message access internet
US20070050320A1 (en) * 2005-08-25 2007-03-01 Carrier Scott R Method and system for mapping context name space binding lookups
CN1946026A (en) * 2006-10-20 2007-04-11 清华大学 Active obtaining method for internet data based on mobile storage device
CN101030931A (en) * 2006-03-03 2007-09-05 华为技术有限公司 Method for transmitting service data and its applied packet terminal
CN101179572A (en) * 2007-10-12 2008-05-14 华为技术有限公司 Method, device and system for copying content

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041522A1 (en) * 2004-08-18 2006-02-23 Xerox Corporation. Abstract document management systems and methods
US20070050320A1 (en) * 2005-08-25 2007-03-01 Carrier Scott R Method and system for mapping context name space binding lookups
CN101030931A (en) * 2006-03-03 2007-09-05 华为技术有限公司 Method for transmitting service data and its applied packet terminal
CN1852486A (en) * 2006-05-30 2006-10-25 北京万网志成科技有限公司 Method for using hand-set message access internet
CN1946026A (en) * 2006-10-20 2007-04-11 清华大学 Active obtaining method for internet data based on mobile storage device
CN101179572A (en) * 2007-10-12 2008-05-14 华为技术有限公司 Method, device and system for copying content

Also Published As

Publication number Publication date
CN101179572B (en) 2010-10-13
CN101179572A (en) 2008-05-14

Similar Documents

Publication Publication Date Title
US9397968B2 (en) Method for processing deferred message
JP4749469B2 (en) XDM service information management system and method
US20080147751A1 (en) Extensible markup language document management method and system
US20090298489A1 (en) System and method for a converged network-based address book
US8230003B2 (en) XDM system and method for implementing XML document management function by using position description of XML document
WO2008040224A1 (en) Data synchronous method, system and apparatus
US20090222525A1 (en) Method of providing quick answer service in sip message service system
WO2009059541A1 (en) A method and a system for address book processing
CN101299829A (en) Method and message system implementing medium content management of unification storage
JP5213858B2 (en) XDM system and method for document forwarding
WO2009076910A1 (en) Document management method, system and correlated device
WO2009049519A1 (en) Content copying method, device and system
EP2045725A1 (en) Method and system, client, server of managing xml document
WO2009115025A1 (en) Xml document operation method and xdms
US9237206B2 (en) Method and apparatus for updating personal information in communication system
TWI357748B (en) System and method for correlating messages within
CA2768805A1 (en) Methods and apparatus to use a network repository as a proxy to exchange converged address book service requests and responses
EP1862932B1 (en) Managing information in XML document management architecture
US20130091287A1 (en) System for contact subscription invitations in a cross-domain converged address book system
WO2010020153A1 (en) Method, device and system for selecting user according to user status
US20020051012A1 (en) Method and apparatus for applying information remotely via a mobile device
US20140019417A1 (en) Method and apparatus for managing personal information in a communication system
WO2010091564A1 (en) Method, server and system for acquiring node information
WO2009024099A1 (en) A method to implement network directory inquiries and a network directory inquiries server
WO2009033389A1 (en) Method and equipment for requesting and managing the xml document

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08800932

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08800932

Country of ref document: EP

Kind code of ref document: A1