CN101795259A - Method for creating entity tag and user data center - Google Patents

Method for creating entity tag and user data center Download PDF

Info

Publication number
CN101795259A
CN101795259A CN200910008481A CN200910008481A CN101795259A CN 101795259 A CN101795259 A CN 101795259A CN 200910008481 A CN200910008481 A CN 200910008481A CN 200910008481 A CN200910008481 A CN 200910008481A CN 101795259 A CN101795259 A CN 101795259A
Authority
CN
China
Prior art keywords
xcap
xml document
data center
server
entity tag
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN200910008481A
Other languages
Chinese (zh)
Other versions
CN101795259B (en
Inventor
周帅锋
荀鹏
曹俊亮
贾军军
王澜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
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
Priority to CN200910008481A priority Critical patent/CN101795259B/en
Publication of CN101795259A publication Critical patent/CN101795259A/en
Application granted granted Critical
Publication of CN101795259B publication Critical patent/CN101795259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method for creating an entity tag as well as a user data center and a system. The method comprises the following steps of: receiving an XCAP (XML Configuration Access Protocol) operation message sent by an application server; resolving an XCAP operation in the XCAP operation message and sending the resolved XCAP operations; receiving an operation response returned from an XCAP server, wherein the operation response carries an entity tag of an XML document; creating an entity tag for the XML document that accords with an application view, and creating an associated relation between the entity tag and the entity tag created by the XCAP server for the XML document; and returning an operation response message to the application server, wherein the operation response message carries the entity tag created for the XML document which accords with the application view. The embodiment manages the entity tag through the user data center and ensures that the application server can obtain the entity tag finally.

Description

Create the method and the subscriber data center of entity tag
Technical field
The present invention relates to the communications field, particularly a kind of method and subscriber data center of creating entity tag.
Background technology
Extensible markup language configuration access protocol (XCAP, eXtensible markup languageConfiguration Access Protocol) technology can realize that client is to the extend markup language on the server (eXtensible Markup Language, XML) visit of document.By the XCAP agreement, client can establishment on server, replacement, deletion and Query XML document, can also operate element or attribute in the XML document simultaneously.XCAP is by entity tag (Entry tag, Etag) version information of sign XML document.Server automatically distributes an Etag respectively for each XML document wherein, and all elements and attribute in XML document are shared an Etag, the Etag that different XML document is corresponding different.After an XML document had been modified, server changed the value of the Etag of the document correspondence automatically.The XCAP regulation in the response of all operations success that server returns, must be carried the Etag of XML document.
Subscriber data center is a kind of storage and access means, and it provides storage platform, provides unified storage and data access to heterogeneous networks, different network elements.Subscriber data center can be integrated data in the several data storage network element, form unified view, offer client by access protocal.
In the prior art, an XCAP message of client may have access to a plurality of XML document that are distributed on the same or different XCAP servers, when the XCAP server when subscriber data center return responds, carry separately the Etag of the XML document of storage.
In realizing process of the present invention, the inventor finds:
In the prior art, subscriber data center can't obtain returning to the Etag of client from the operation response of XCAP server; Simultaneously, because can't obtain to return to the Etag of client, so can't support the conditional operation that comprises Etag of client.
Summary of the invention
In order application server can be obtained meet the entity tag of the XML document of application view, the embodiment of the invention provides a kind of method and subscriber data center of creating entity tag.Described technical scheme is as follows:
On the one hand, the embodiment of the invention provides a kind of method of creating entity tag, comprising:
The extensible markup language configuration access protocol XCAP operation information that reception is sent by application server to the expandable mark language XML document that meets application view;
The XCAP that XCAP in described XCAP operation information operation is resolved at least two XML document operates, and the XCAP operation information after the XCAP at described at least two XML document places server sends decomposition;
Receive the XCAP operation response that described XCAP server returns, carry the entity tag of the XML document of being operated by the XCAP operation information after the described decomposition in the described XCAP server in the described operation response at least two XML document;
Be that the described XML document that meets application view creates entity tag, and the entity tag that carries during the operation that described entity tag and described XCAP server return responded is set up incidence relation;
To described application server return response message, carry the entity tag of creating for the described XML document that meets application view in the described operation response message.
On the other hand, the embodiment of the invention provides a kind of subscriber data center, comprising:
First receiver module is used to receive the extensible markup language configuration access protocol XCAP operation information to the expandable mark language XML document that meets application view that is sent by application server;
Decomposing module is used for the XCAP that the XCAP operation of described XCAP operation information is resolved at least two XML document is operated, and the XCAP operation information after the XCAP at described at least two XML document places server sends decomposition;
Second receiver module, be used to receive the XCAP operation response that described XCAP server returns, carry the entity tag of the XML document of being operated by the XCAP operation information after the described decomposition in the described XCAP server in the described operation response at least two XML document;
Processing module is used to the described XML document that meets application view to create entity tag, and the entity tag that carries during the operation that described entity tag and described XCAP server return responded is set up incidence relation;
Sending module is used for to described application server return response message, carries the entity tag of creating for the described XML document that meets application view in the described operation response message.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
Subscriber data center is in the process that the XCAP visit is provided to application server, subscriber data center is that each XML document under the application view is created an Etag, and the Etag of the XML document on this Etag and the XCAP server associated, therefore application server can obtain the Etag that subscriber data center is created, and then can carry out the conditional operation of XCAP.
Description of drawings
Fig. 1 is the method flow diagram of the establishment entity tag that provides of the embodiment of the invention one;
Fig. 2 is the method flow diagram that obtains entity tag that the embodiment of the invention two provides;
Fig. 3 is the method flow diagram that obtains entity tag that the embodiment of the invention three provides;
Fig. 4 is the another method flow diagram that obtains entity tag that the embodiment of the invention three provides;
Fig. 5 is the method flow diagram that obtains entity tag that the embodiment of the invention four provides;
Fig. 6 is the another method flow diagram that obtains entity tag that the embodiment of the invention four provides;
Fig. 7 is the method flow diagram that obtains entity tag that the embodiment of the invention five provides;
Fig. 8 is the method flow diagram that obtains entity tag that the embodiment of the invention six provides;
Fig. 9 is the structural representation of the subscriber data center that provides of the embodiment of the invention seven.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment one
As shown in Figure 1, the method flow diagram of the establishment entity tag that provides for present embodiment, this method specifically comprises:
S101: subscriber data center receives the extensible markup language configuration access protocol XCAP operation information to the expandable mark language XML document that meets application view that is sent by application server;
S102: the XCAP that subscriber data center resolves into the operation of the XCAP in the XCAP operation information at least two XML document operates, and the XCAP operation information after the XCAP at least two XML document places server sends decomposition;
S103: subscriber data center receives the XCAP operation response at least two XML document that the XCAP server returns, and carries the entity tag of the XML document that the XCAP operation information after being decomposed in the XCAP server operated during this operation responds;
S104: subscriber data center is that the XML document that meets application view is created entity tag, and the entity tag that carries during the operation that entity tag and XCAP server return responded is set up incidence relation;
S105: subscriber data center carries the entity tag of creating for the XML document that meets application view to application server return response message in the operation response message.
The method of the establishment entity tag that provides by present embodiment, during the operation that subscriber data center returns to application server responds, carried the Etag of the XML document under the application view, and prior art can't obtain the Etag that need return to application server from the response message of a plurality of XCAP servers.
Further, because application server has obtained the Etag of the XML document under the application view, so application server can carry out the conditional operation of XCAP by Etag.
In the embodiment of the invention, use XCAP protocol access XCAP server, the entity of the XML document in the operation XCAP server can be called the XCAP client, this client can be application server (Application Server, AS), also can be terminal, for example mobile phone, PC etc.When AS adopted XCAP protocol access XCAP server, AS just can become the XCAP client.The data of subscriber data center in can integrated a plurality of XCAP servers (Server), and form unified view and offer AS, this unified view can react the data among each XCAP Server, can also react the entire combination that the data among a plurality of XCAP Server form.AS passes through the XCAP agreement, calling party data center, and subscriber data center is according to configuration information, and the data source at decision data place (comprising XCAP Server) is changed the visit of AS the visit in paired data source.Therefore, the XCAP access message of AS may have access to a plurality of XML document that are distributed on the different XCAP Server.
AS can pass through the XCAP agreement, realizes establishment, replacement, deletion (Delete) and inquiry (Get) operation to the XML document on the XCAP Server.Wherein, establishment, replacement operation are all realized by PUT.
AS can also be by the conditional operation of Etag realization to XML document.When AS carries out the condition read operation to an XML document, the XCAP GET message that AS sends is carried condition IF-NON-MATCH:Etag, when the Etag of Etag in the GET message and XML document is unmatched, XML document on the expression XCAP Server was updated, XCAP Server just returns the XML document data, otherwise, return 304 (304 respond styles for the http protocol definition, and XCAP is based on the agreement of HTTP) errored response, this 304 response expression document does not upgrade.When AS carries out the condition write operation to XML document, the XCAPPUT/DELETE message that AS sends is carried condition IF-MATCH:Etag, in the time of Etag in the message and the coupling of the Etag in the document, the expression document was not revised by other AS, carry out write operation again, otherwise errored response that XCAP Server returns 412 (412 respond styles for the http protocol definition, and XCAP is based on the agreement of HTTP), this 412 response expression document was upgraded by other AS.
In the embodiment of the invention, XCAP Server provides XCAP visit by subscriber data center to AS, when the XML document that meets application view of AS visit corresponds to a plurality of XML document on the XCAP server, subscriber data center need be created corresponding Etag respectively for this XML document that meets application view, and this Etag is related with the XML document on the XCAP Server, the Etag that AS can use subscriber data center to create carries out conditional operation.
Below each embodiment be elaborated to the method for obtaining Etag and to the management of Etag by concrete XCAP message.
Embodiment two
In the present embodiment, when AS met the XML document of application view in the establishment of request subscriber data center, subscriber data center was that this XML document is created an Etag, and the Etag of several corresponding on this Etag and XCAP Server XML document is associated.
As shown in Figure 2, the method flow diagram of the establishment entity tag that provides for present embodiment, this method specifically comprises:
S201: subscriber data center receives the establishment message that AS sends, and subscriber data center is created an operation that meets the XML document example.xml of application view according to this establishment message.
Wherein, create message and be specially XCAP PUT message, expression AS request subscriber data center is created XML document.
S202: subscriber data center will be created message and decompose according to configuration information.
Wherein, configuration information can comprise the combination condition of XML document, also can comprise the transformation rule of view; This configuration information can be generated automatically by system, also can be by acquisition is set.
Subscriber data center learns that according to above-mentioned configuration information example.xml should be divided into example1.xml and example2.xml two parts, be stored in accordingly respectively on XCAP Server1 and the XCAP Server2, therefore, will create message and resolve into two XCAP PUT message.
Need to prove, according to configuration information, example.xml may be broken down into several XML document, these documents may be distributed on the XCAP Server, also can be distributed on several XCAP Server, therefore, the operation of AS may be decomposed into several operations to XCAP Server, corresponding relation wherein is: the number of XCAP Server is less than or equal to the number of the XML document after the decomposition, and the number of the XML document of the operation number after decomposing after equaling to decompose.I.e. XCAP operation can only be operated an XML document among the XCAPServer.For convenience, the embodiment of the invention is the example explanation with two all, but does not therefore cause the logarithm purpose to limit.
S203: subscriber data center sends XCAP PUT message respectively for XCAP Server1 and XCAP Server2.
S204: subscriber data center receives the operation response message that XCAP Server1 and XCAP Server2 return, and carries the Etag1 and the Etag2 of two documents that two XCAP Server create respectively in the response message.
Wherein, XCAP Server1 is a subscriber data center return response message, carries the Etag1 that XCAP Server1 creates in this operation response message, the documentation release of this Etag1 sign example1.xml; XCAP Server2 also is a subscriber data center return response message, carries the Etag2 that XCAP Server2 creates in this operation response message, the documentation release of this Etag2 sign example2.xml.
S205: subscriber data center is that example.xml creates an Etag, and the documentation release of sign example.xml is related with Etag1, Etag2 with this Etag simultaneously.
Wherein, operation associated can the realization by the corresponding relation of xml document.Particularly, illustrate by present embodiment: can have memory module in the subscriber data center, stored the corresponding relation between example.xml and example1.xml, the example2.xml document in this memory module, simultaneously because Etag and Etag1, Etag2 belong to pairing separately document respectively, therefore, subscriber data center just can carry out related with Etag1, Etag2 Etag by the corresponding relation of xml document and the affiliated relation of Etag.
Be understandable that, with the related aforesaid way that is not limited to of Etag with Etag1, Etag2.
S206: when all successes of the operation of decomposing, subscriber data center carries the Etag that subscriber data center is created to example.xml to AS return success response message in this response message.
Wherein, all responses of return success of two XCAP Server are all successfully represented in the operation of decomposition.Also comprise among the S206 when not all successes of the operation of decomposing, return failure response then, and carry the reason of failure.
In the present embodiment, AS request subscriber data center is created the example.xml document that meets application view, subscriber data center is that the document is created an Etag, and with this Etag and Etag1, Etag2 associates, then AS can obtain the Etag of corresponding example.xml document by subscriber data center, solved in the operation response message that subscriber data center in the prior art returns to AS, the Etag of the XML document example.xml that meets application view need be carried, and the present situation of the Etag that need return to AS can't be from the response message of XCAP Server1 and XCAP Server2, obtained.
Embodiment three
Subscriber data center has been created the Et ag of exampl e.xml document for AS, and it is this Etag is related with Etag1, Etag2, wherein, the Etag of example.xml document correspondence generates when creating example.xml among the embodiment two, also may generate according to configuration information, also may be that the keeper is configured, but be not limited to these methods.When AS operated the XML document on the XCAP Server by subscriber data center, subscriber data center can upgrade the Etag of the XML document under the application view relevant with this XML document synchronously.Present embodiment does not carry operating condition and carries two kinds of situations of operating condition with AS in the message that subscriber data center sends be that example describes.
As shown in Figure 3, be the method flow diagram that obtains entity tag that present embodiment provides, this method specifically comprises:
S301: subscriber data center receives the operation information that AS sends, and according to this operation information the XML document example.xml that meets application view is operated.
Particularly, AS sends the XCAP message of not carrying operating condition to subscriber data center, and the request subscriber data center is operated XML document, and this message can be the PUT/GET/DELETE operation information; Subscriber data center receives this XCAP message of not carrying operating condition, and XML document (XML document that promptly the meets application view) example.xml that uses under the view is operated.
S302: subscriber data center resolves into two XCAP operation informations according to configuration information with operation information.
Wherein, subscriber data center receives after the operation information of AS, according to configuration information, learn that example.xml is made of the example2.xml among example1.xml among the XCAP Server1 and the XCAP Server2, two XCAP operation informations at example1.xml and example2.xml are resolved in operation.
S303: subscriber data center will decompose back XCAP operation and issue corresponding XCAP Server.
Being specially subscriber data center sends the XCAP operation information respectively for XCAP Server1 and XCAP Server2.
S304: subscriber data center receives the operation response message that XCAP Server1 and XCAP Server2 return, and carries the Etag1 and the Etag2 of two documents that two XCAP Server create respectively in the response message.
Wherein, S304 is similar to the principle of S204, repeats no more herein.
S305: when the Etag of example1.xml and/or example2.xml has renewal, then subscriber data center correspondingly upgrades the example1.xml that stored or the Etag of example2.xml, upgrades the Etag of example.xml simultaneously.
Wherein, also comprise a kind of situation among the S305: for example example3.xml is also relevant with example1.xml or example2.xml if XML document under other the application view beyond the example.xml is arranged, and then subscriber data center need upgrade the Etag of example3.xml simultaneously.
S306: the result that subscriber data center will be operated is synthetic, returns to AS, carries the Etag of the example.xml that upgraded.
Wherein, document example1.xml and example2.xml are synthesized in synthetic expression, promptly the XML document that XCAPServer is returned is synthesized, be not simply two documents to be stitched together in the building-up process, but synthesize by the reverse rule of decomposition rule, this process is a prior art, does not describe in detail herein.Be understandable that the follow-up synthetic identical meaning of synthetic expression with herein.
Sending the XCAP message of not carrying operating condition with AS to subscriber data center in the foregoing is that example describes, sending the XCAP message of carrying operating condition with AS to subscriber data center below is that example describes, as shown in Figure 4, be the another method flow diagram that obtains entity tag that present embodiment provides, this method specifically comprises:
S401: subscriber data center receives the XCAP message of carrying operating condition that AS sends, and carries the Etag of the XML document example.xml that meets application view in this message.
Wherein, operating condition can comprise: XCAP GET message is carried condition IF-NON-MATCH:Etag, and XCAP PUT/DELETE message is carried condition IF-MATCH:Etag, and these carry in the XCAP message of operating condition and all carry Etag.
S402: whether the condition of subscriber data center decision operation satisfies, and is then to carry out S403, otherwise, return errored response to AS.
Wherein, because this method is equally based on embodiment two but be not limited to the method that embodiment two proposes, subscriber data center has been created the Etag of example.xml document for AS, and it is this Etag is related with Etag1, Etag2, simultaneously, subscriber data center can guarantee can upgrade Etag synchronously after XML is modified, therefore, the Etag of the example.xml that stores of subscriber data center is exactly up-to-date; Whether the Etag of the example.xml that carries in the XCAP message that subscriber data center sends according to the Etag of example.xml and the AS of storage carries out Rule of judgment satisfies, if do not satisfy, then for GET operation, the errored response that subscriber data center returns to document and is not updated to AS; For PUT/DELETE operation, the errored response that then returns to document and be updated; If satisfy, then carry out S403.
S403: subscriber data center is according to configuration information, and operation information is resolved into operation to example1.xml and example2.xml.
Wherein, subscriber data center is according to configuration information, learn that example.xml is made of the example2.xml among example1.xml among the XCAP Server1 and the XCAP Server2, two unconditional operation informations at example1.xml and example2.xml are resolved in operation.Herein, subscriber data center resolves into two unconditional operation informations with operation represents that subscriber data center need not the judgement of the condition of carrying out again to XCAP Server, and subscriber data center only need carry out unconditional operation to the XML document among the XCAP Server and get final product.
S404: subscriber data center will decompose back XCAP operation and issue corresponding XCAP Server.
S405: subscriber data center receives the operation response message that XCAP Server1 and XCAP Server2 return, and carries the Etag1 and the Etag2 of two documents that two XCAP Server create respectively in the response message.
S406: subscriber data center synthetic operation result, upgrade Etag simultaneously.
Particularly, subscriber data center will synthesize the operating result to example.xml to the result of example1.xml, example2.xml operation, upgrade the Etag of example.xml, example1.xml and example2.xml simultaneously.
If have the XML document under other the application view beyond the example.xml also relevant, then need to upgrade simultaneously its Etag with example1.xml or example2.xml.
S407: subscriber data center is back to AS with synthetic operating result, and carries the Etag of the example.xml that upgraded.
In the present embodiment, because subscriber data center has created the Etag of example.xml document, and this Etag is related with Etag1, Etag2; Under this prerequisite, subscriber data center can know which XML document among the XCAPServer has renewal, upgrades the Etag of the XML document under the application view relevant with this XML document simultaneously.When AS operates using XML document under the view, be converted into by subscriber data center the XML document among the XCAP Server is operated accordingly.
During the operation that subscriber data center returns to AS responds, need carry the Etag of the XML document example.xml under the application view, yet according to prior art, can't from the response message of XCAP Server1 and XCAP Server2, obtain the Etag that need return to application server, by the method for present embodiment, subscriber data center is that example.xml creates Etag, and this Etag is upgraded, make AS finally obtain Etag, and can support the conditional operation that carries Etag that AS initiates.
Embodiment four
The scene of present embodiment is after the XML document among the XCAP Server is updated, and subscriber data center can upgrade the Etag of relevant documentation synchronously by the method for subscribing to and notify, but is not restricted to the method for subscribing to and notifying.
As shown in Figure 5, the method flow diagram of the XML document version information that the subscriber data center subscription that provides for present embodiment is relevant with application view, this method comprises XML document relevant with application view among the subscriber data center subscription XCAP Server or subscribes to the Etag of XML document relevant with application view among the XCAP Server, and is specific as follows:
S501: subscriber data center knows that by analysed for relevance an XML document example.xml of application view is made of the example2.xml among example1.xml among the XCAP Server1 and the XCAP Server2.
Wherein, subscriber data center can write down the XML document relevant with AS (being the XML document that AS is concerned about); Correlation comprises configuration information, can also comprise the related information between the XML document, subscriber data center passes through analysed for relevance, can know that certain XML document relevant with AS be made up of XML document different among which XCAP Server, can also know the related information between these XML document.Multiple situation is forgiven in association between the XML document, and for example, two or more XML document are shared an XML document, or shares the part in the XML document.
S502: subscriber data center is subscribed to the Etag of Etag, example2.xml of example1.xml or example1.xml, example2.xml document to corresponding XCAP Server.
Subscribe to the expression subscriber data center and can know by this function whether the pairing Etag of XML document among the XCAP Server has renewal.
S503: the subscription result that subscriber data center reception XCAP Server1 and XCAP Server2 return.
Wherein, the subscription result who returns comprises the response to subscribe message, and whether this response message can tell subscriber data center to subscribe to successful.
In the present embodiment, in order to keep in the subscriber data center upgrading in time corresponding to the Etag of the XML document of data source (being XCAP Server), subscriber data center is subscribed to the Etag of XML document relevant with AS among XML document relevant with AS among the XCAP Server or the subscription XCAP Server.After subscribing to successfully, subscriber data center can know that by the informing function of XCAP Server when the XML document among the XCAP Server changed, the Etag of corresponding XML document also had renewal.
Based on method shown in Figure 5, after subscriber data center is subscribed to the XML document version information relevant with application view, present embodiment provides the method flow diagram of the XCAP server notification subscriber data center XML document version information relevant with application view, this method comprises that working as other XCAP clients has revised the XML document that subscriber data center was subscribed among the XCAP Server, the Etag that XCAP Server notifies subscriber data center to upgrade this XML document correspondence in time, as shown in Figure 6, specific as follows:
S601: other XCAP client has been upgraded the XML document among the XCAP Server.
Wherein, the implication of other XCAP client is: for XCAP Server, any use XCAP agreement all is the XCAP client to its entity that conducts interviews.Therefore subscriber data center also is a kind of XCAP client for XCAP Server.Subscriber data center has dual identity in embodiments of the present invention: for AS, it is equivalent to the acting server of an enhancement mode, AS can be transformed the visit of the XML document in the paired data source to the visit of the XML document that meets application view; For XCAP Server, it is an XCAP client.Therefore, for XCAP Server, except this XCAP client of subscriber data center, other XCAP client is arranged, these other client may be revised the XML document (as example1.xml) that subscriber data center was subscribed to without the permission of subscriber data center.
S602: subscriber data center receives the notification message that XCAP Server sends, and this notification message carries the Etag information of the XML document that is updated.
Wherein, because the XML document that is updated is subscribed to by subscriber data center, XCAP Server sends a notification message to subscriber data center, carries the Etag of the document that is updated.
S603: subscriber data center upgrades the Etag of the XML document under all application views relevant with this XML document.
Wherein, because the XML document meeting under the more than AS application view is relevant with this XML document, therefore, after this XML document is modified, subscriber data center need upgrade the Etag of the XML document under all application views relevant with this XML document, when guaranteeing that AS when each shared this XML document is in calling party data center, all obtain up-to-date Etag information.
S604: subscriber data center returns push-notification-answer message to XCAP Server.
In the present embodiment, subscriber data center is by subscribing to, informing function obtains after the Etag of the XML document of subscribed mistake in the XCAP server, can also create Etag for the XML document that meets application view, and the Etag of the XML document of subscribed mistake in the Etag that creates and the XCAP server associated, when other XCAP clients have been revised the XML document that subscriber data center among the XCAP Server subscribed to, XCAP Server sends a notification message to subscriber data center, carry the value of the new Etag of document, make can upgrade in time the Etag of the XML document under all application views relevant of subscriber data center with this XML document.
In the scene of the foregoing description two~embodiment four, subscriber data center is when having created the XML document that meets application view, for this XML document is created an Etag, and the Etag of several corresponding on this Etag and XCAP Server XML document associated, make AS can obtain the Etag of the XML document under the application view by customer center; By subscribing to and informing function, the XCAP client that makes subscriber data center all have the ability to guarantee at other is upgraded in the XML document among the XCAP, upgrades the Etag of the XML document under the relevant application view synchronously.
The following examples are when AS carries out the XCAP conditional operation, and subscriber data center determines by the XML document among the relevant XCAP Server of inquiry whether Etag upgrades.
Embodiment five
Present embodiment is that XCAP condition query (GET) is operating as example and describes with the XCAP conditional operation.As shown in Figure 7, this method of obtaining entity tag specifically comprises:
S701: subscriber data center receives the condition query operation information that AS sends, and carries the IF-NON-Match:Etag condition in this message, and example.xml is operated.
S702: subscriber data center is decomposed into unconditional query manipulation to example1.xml, example2.xml according to configuration information with operation.
Wherein, different with the above embodiments is that the prerequisite of present embodiment is that subscriber data center can not guarantee can upgrade Etag synchronously after XML is modified, so the Etag that subscriber data center is preserved is not necessarily up-to-date; Simultaneously, because query manipulation finally needs subscriber data center to be the content of the response of AS return and inquiry, so whether subscriber data center stripes not match spare satisfy and judge, and directly operation is converted into the query manipulation to XML document among the XCAP Server.
Therefore, subscriber data center directly learns that according to configuration information example.xml is made of the example2.xml among example1.xml among the XCAP Server1 and the XCAP Server2, and operation is decomposed into unconditional query manipulation to example1.xml, example2.xml.
Wherein, operation is decomposed into unconditional query manipulation former because: if subscriber data center is decomposed into the query manipulation of having ready conditions with the condition query operation, XCAP Server only returns qualified partial XML document according to condition, ineligible XML document is returned errored response, and then cause subscriber data center imperfect to the XML document that AS returns, therefore the condition query operation is decomposed into unconditional query manipulation, XCAPServer does not judge, directly returns unconditional XML query document.
S703: subscriber data center initiates the unconditional GET of example1.xml, example2.xml is operated to XCAP Server1 and XCAP Server2 respectively.
S704: the query response message that subscriber data center reception XCAP Server1 and XCAP Server2 return, carry the Etag1 of example1.xml, the Etag2 of example2.xml respectively in this response message.
S705: the Etag that returns is worked as in the subscriber data center inspection renewal, then upgrades the Etag of example.xml.
Particularly, subscriber data center checks that whether the Etag1 of example1.xml and/or the Etag2 of example2.xml have renewal, if renewal is arranged, then upgrade the Etag of example.xml.
S706: the synthetic result to the example.xml inquiry of the result that subscriber data center will be inquired about returns to AS.
Wherein, the synthetic result to the example.xml inquiry of the result that subscriber data center will be inquired about carries the Etag of the example.xml after the renewal, is back to AS.
In addition, if there is beyond the application view of example.xml correspondence the XML document under other the application view also relevant with example1.xml or example2.xml, then subscriber data center need upgrade their Etag simultaneously.
In the said process, if the Etag of example1.xml and example2.xml does not have to upgrade, directly returning to document does not have the errored response of renewal.
Compare with the conditional operation of embodiment three, in the present embodiment, the Etag that subscriber data center is preserved is not necessarily up-to-date, and in the conditional operation of embodiment three, subscriber data center can guarantee synchronously Etag to be upgraded with XCAP Server by subscribing to function or other modes, i.e. the Etag of subscriber data center preservation must be up-to-date.
Under the prerequisite of present embodiment, when AS carries out the XCAP conditional operation, subscriber data center is by the XML document in the relevant XCAP server of inquiry, check whether corresponding Etag has renewal, determine whether again the Etag that self preserves is upgraded, make AS finally can obtain up-to-date Etag, and finish the conditional operation that comprises Etag.
Embodiment six
Present embodiment is that the PUT that the XCAP condition is write in (comprising PUT/DELETE) operation is operating as example and describes with the XCAP conditional operation, and in the present embodiment, the Etag that preserves in the subscriber data center is not necessarily up-to-date.As shown in Figure 8, this method of obtaining entity tag specifically comprises:
S801: subscriber data center receives the condition write operation message to example.xml that AS sends, and carries the IF-Match:Etag operating condition in this message.
S802: whether the subscriber data center Rule of judgment satisfies, and is then to return errored response to AS, otherwise carries out S803.
Wherein, because the Etag that preserves in the subscriber data center is not necessarily up-to-date, simultaneously, because write operation finally only returns the state of whether writing success and gets final product, therefore whether subscriber data center satisfies condition earlier and judges, judge that promptly whether the Etag that Etag and subscriber data center in the IF-Match:Etag operating condition that AS sends are preserved mates, if mate, then proceeds write operation; If do not match, the XML among the expression XCAPServer is modified, therefore no longer proceeds write operation, returns errored response.
Specifically in S802, subscriber data center judges whether the Etag that Etag and the subscriber data center in the IF-Match:Etag operating condition that AS sends preserved mates, if do not match, and the errored response that directly returns to document and be updated, otherwise, execution S803.
S803: subscriber data center generates the condition query operation to example1.xml, example2.xml according to configuration information.
Wherein, subscriber data center learns that according to configuration information example.xml is made of the example2.xml among example1.xml among the XCAP Server1 and the XCAP Server 2, then generate condition query operation, carry the Etag of example1.xml, example2.xml in the operation respectively example1.xml, example2.xml.Herein, condition query operation expression subscriber data center only is concerned about whether example1.xml, example2.xml have the XML document of upgrading and renewal being arranged.When XML document has renewal, XCAP Server returns the content of the XML document of GET action queries, and carries the Etag of corresponding XML document.Wherein, the GET operation part (element or an attribute) in can the Query XML document, when XML document is not upgraded, then XCAP Server returns to document not have the errored response of renewal.
S804: subscriber data center sends condition query operation information to example1.xml, example2.xml to XCAP Serve r1 and XCAP Server2 respectively, operating condition is IF-NON-Match:etag, carries the Etag corresponding to these two documents in this message.
S805: subscriber data center receives two operating results that XCAP Server returns.
Particularly, if example1.xml and/or example2.xml have renewal, then corresponding XCAPServer will return the 200OK response, and (200OK is the message in the http protocol, expression is operated successfully, XCAP is based on the agreement of HTTP), and carry Etag corresponding to XML document, otherwise will return does not have the errored response upgraded.
S806: the Etag of example.xml is upgraded in the response that subscriber data center returns according to XCAP Server.
Particularly, comprise two kinds of situations:
(1) if the success response of XCAP Server return is arranged, represent that the XML document among the corresponding XCAP Server has renewal, then subscriber data center upgrades the Etag of respective document, and the Etag of renewal example.xml, and directly return 412 errored responses (this errored response represents that document has renewal) for AS; If the XML document under other the application view is also relevant with this article retaining (referring to that document of 200OK message correspondence) in addition, then upgrade their Etag synchronously.
(2) if two XCAP servers have all returned 304 errored responses, the expression document was not updated, and then the operation of AS was decomposed into the unconditional write operation to example1.xml, example2.xml.
S807: subscriber data center sends unconditional write operation to example1.xml, example2.xml to XCAP Server1 and XCAP Server2 respectively.
Wherein, through the judgement of S802~S806 to condition, the result who obtains is, the data among the XCAP Server all were not updated, and then subscriber data center directly sends unconditional write operation to example1.xml, example2.xml to XCAP Server1 and XCAP Server2.
S808: subscriber data center receives two write operation response messages that XCAP Server returns, and carries the Etag of example1.xml, example2.xml in this response message respectively.
S809: subscriber data center upgrades the Etag of example.xml, example1.xml, example2.xml, and the result that will operate synthesizes the operating result to example.xml simultaneously.
In addition, if also have the XML document under other the application view also relevant with example1.xml and/or example2.xml, then subscriber data center upgrades their Etag synchronously.
S810: subscriber data center returns operating result to example.xml to AS, carries the Etag of example.xml.
Need to prove that the PUT operation of AS comprises increase, replaces content, may transform the PUT or the Delete operation in paired data source, for example when the PUT operation replaces with 2 elements with 3 elements in the XML document, transform the Delete operation in paired data source.Be operating as example and describe to be converted into PUT in the present embodiment.
In the present embodiment, when AS carries out XCAP condition write operation, subscriber data center is at first by the XML document among the relevant XCAP Server of condition query, check whether corresponding Etag has renewal, determine whether again the Etag that self preserves is upgraded, make AS finally can obtain up-to-date Etag, and finish the condition write operation that comprises Etag.
By the technical scheme of the embodiment of the invention, solved that subscriber data center runs into when the XML document of integrated XCAP Server obtain Etag and to the problem of management of Etag, thereby supported the conditional operation that comprises Etag of XCAP effectively.
Embodiment seven
As shown in Figure 9, the structural representation of the subscriber data center that provides for present embodiment, this subscriber data center specifically comprises:
First receiver module 91 is used to receive the extensible markup language configuration access protocol XCAP operation information to the expandable mark language XML document that meets application view that is sent by application server;
Decomposing module 92 is used for the XCAP that the XCAP operation of XCAP operation information is resolved at least two XML document is operated, and the XCAP operation information after the XCAP at least two XML document places server sends decomposition;
Second receiver module 93, be used to receive the XCAP operation response that described XCAP server returns, carry the entity tag of the XML document of being operated by the XCAP operation information after the described decomposition in the described XCAP server in the described operation response at least two XML document;
Processing module 94 is used to the XML document that meets application view to create entity tag, and the entity tag that carries during the operation that entity tag and XCAP server return responded is set up incidence relation;
Sending module 95 is used for to application server return response message, carries the entity tag of creating for the XML document that meets application view in the operation response message.
Further, this subscriber data center also comprises:
First update module is used for when the entity tag that receives has renewal, the entity tag of the XML document that meets application view of the relevant relation of entity tag of renewal and reception.
Further, subscriber data center can also comprise:
Subscribing module is used for subscribing to the entity tag of at least two XML document wherein or the content of at least two XML document of subscription respectively to the XCAP server;
The 3rd receiver module is used to receive the notification message that the XCAP server returns, and obtains the entity tag of the XML document in the XCAP server according to notification message.
Further, subscriber data center also comprises:
Second update module, when the entity tag that is used for the XML document of subscribing to when the subscribed module of XCAP server that the 3rd receiver module receives had renewal, renewal and relevant all of XML document in the XCAP server met the entity tag of the XML document of application view.
Further, subscriber data center can also comprise:
Judge module is used for the XCAP operation information that carries the entity tag operating condition that receives is judged, judges whether this operating condition satisfies;
Correspondingly, subscriber data center also comprises:
Operational module is used for operating according to the result of judge module, is then, according to operating condition the XML document that meets application view is operated; Otherwise, return errored response to application server.
The subscriber data center that present embodiment provides is in the process that the XCAP visit is provided to application server, subscriber data center is that each XML document under the application view is created an Etag, and the Etag of the XML document on this Etag and the XCAP server associated, therefore application server can obtain the Etag that subscriber data center is created, and then the Etag that application server can use subscriber data center to create carries out conditional operation.
The subscriber data center that present embodiment provides, can be when other XCAP client have been upgraded XML document in the XCAP server, upgrade synchronously the Etag of relevant documentation, can subscribe to by subscriber data center, the method for XCAP server notification guarantees synchronous renewal.
Embodiment nine
Present embodiment provides a kind of system, and this system comprises: subscriber data center, application server and XCAP server;
Subscriber data center receives the extensible markup language configuration access protocol XCAP operation information to the expandable mark language XML document that meets application view that is sent by application server;
The XCAP that XCAP in XCAP operation information operation is resolved at least two XML document operates, and the XCAP operation information after the XCAP at least two XML document places server sends decomposition;
Receive at least two XCAP operation responses that the XCAP server returns, carry the entity tag of the XML document that the XCAP operation information after being decomposed in the XCAP server operated in the operation response at least two XML document in the XCAP server;
For the XML document that meets application view is created entity tag, and the entity tag that carries during the operation that entity tag and XCAP server return responded is set up incidence relation;
To application server return response message, carry the entity tag of creating for the XML document that meets application view in the operation response message;
Application server also is used for the operation response message that returns at the receiving subscriber data center, carries the entity tag of creating for the XML document that meets application view in the operation response message.
Further, the subscriber data center in this system also is used for can upgrading the Etag that this meets the XML document of application view when knowing that the relevant XML document of XML document that XCAP server neutralization meets application view has renewal.
In the system that present embodiment provides, subscriber data center is in the process that the XCAP visit is provided to application server, subscriber data center is that each XML document under the application view is created an Etag, and the Etag of the XML document on this Etag and the XCAP server associated, therefore application server can obtain the Etag that subscriber data center is created.
The embodiment of the invention it is to be noted; the agreement that AS calling party data center adopts and the agreement of subscriber data center access data sources are not limited to XCAP; as long as there is similar following content; all should be included in protection scope of the present invention: use counterpart information as operating condition; the version of a data module of version information sign; as long as data module has change, version information changes automatically.Application is decomposed into operation to a plurality of data modules in the data source (may be distributed on the different data sources) to the action need of a data module, adopts similar version information securing mechanism.
" reception " speech in the embodiment of the invention can be understood as and initiatively obtains from other modules also can be to receive the information that other modules are sent.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
The embodiment of the invention can realize that corresponding software can be stored in the storage medium that can read, for example in the hard disk of computer, CD or the floppy disk by software.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method of creating entity tag is characterized in that, described method comprises:
The extensible markup language configuration access protocol XCAP operation information that reception is sent by application server to the expandable mark language XML document that meets application view;
The XCAP that XCAP in described XCAP operation information operation is resolved at least two XML document operates, and the XCAP operation information after the XCAP at described at least two XML document places server sends decomposition;
Receive the XCAP operation response that described XCAP server returns, carry the entity tag of the XML document of being operated by the XCAP operation information after the described decomposition in the described XCAP server in the described operation response at least two XML document;
Be that the described XML document that meets application view creates entity tag, and the entity tag that carries during the operation that described entity tag and described XCAP server return responded is set up incidence relation;
To described application server return response message, carry the entity tag of creating for the described XML document that meets application view in the described operation response message.
2. method according to claim 1 is characterized in that, described method further comprises:
When the entity tag that receives has renewal, the entity tag of the XML document that meets application view of the relevant relation of entity tag of renewal and described reception.
3. method according to claim 1 is characterized in that, described method further comprises:
Subscribe to the entity tag of at least two XML document wherein or the content of at least two XML document of subscription respectively to described XCAP server;
Receive the notification message that described XCAP server returns, obtain the entity tag of the XML document in the described XCAP server according to described notification message.
4. method according to claim 3 is characterized in that, described method also comprises:
When the entity tag of the XML document of subscribed mistake in the described XCAP server has renewal, upgrade the entity tag of the XML document that meet application view relevant with XML document in the described XCAP server.
5. according to the described method of arbitrary claim among the claim 1-4, it is characterized in that described method further comprises:
The XCAP operation information that carries the entity tag operating condition that reception is sent by application server;
Judge whether described operating condition satisfies, and is then, according to described operating condition the XML document that meets application view is operated; Otherwise, return errored response to described application server.
6. a subscriber data center is characterized in that, described subscriber data center comprises:
First receiver module is used to receive the extensible markup language configuration access protocol XCAP operation information to the expandable mark language XML document that meets application view that is sent by application server;
Decomposing module is used for the XCAP that the XCAP operation of described XCAP operation information is resolved at least two XML document is operated, and the XCAP operation information after the XCAP at described at least two XML document places server sends decomposition;
Second receiver module, be used to receive the XCAP operation response that described XCAP server returns, carry the entity tag of the XML document of being operated by the XCAP operation information after the described decomposition in the described XCAP server in the described operation response at least two XML document;
Processing module is used to the described XML document that meets application view to create entity tag, and the entity tag that carries during the operation that described entity tag and described XCAP server return responded is set up incidence relation;
Sending module is used for to described application server return response message, carries the entity tag of creating for the described XML document that meets application view in the described operation response message.
7. subscriber data center according to claim 6 is characterized in that, described subscriber data center further comprises:
First update module is used for when the entity tag that receives has renewal the entity tag of the XML document that meets application view of the relevant relation of entity tag of renewal and described reception.
8. subscriber data center according to claim 6 is characterized in that, described subscriber data center further comprises:
Subscribing module is used for subscribing to the entity tag of at least two XML document wherein or the content of at least two XML document of subscription respectively to described XCAP server;
The 3rd receiver module is used to receive the notification message that described XCAP server returns, and obtains the entity tag of the XML document in the described XCAP server according to described notification message.
9. subscriber data center according to claim 8 is characterized in that, described subscriber data center also comprises:
Second update module, when the entity tag that is used for the XML document of the subscribed mistake of described XCAP server that receives when described the 3rd receiver module has renewal, upgrade the entity tag of the XML document that meet application view relevant with XML document in the described XCAP server.
10. according to the described subscriber data center of arbitrary claim among the claim 6-9, it is characterized in that described subscriber data center further comprises:
Judge module is used for the XCAP operation information that carries the entity tag operating condition that receives is judged, judges whether described operating condition satisfies;
Correspondingly, subscriber data center also comprises:
Operational module is used for operating according to the result of described judge module, is then, according to described operating condition the XML document that meets application view is operated; Otherwise, return errored response to described application server.
CN200910008481A 2009-02-03 2009-02-03 Method for creating entity tag and user data center Active CN101795259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910008481A CN101795259B (en) 2009-02-03 2009-02-03 Method for creating entity tag and user data center

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910008481A CN101795259B (en) 2009-02-03 2009-02-03 Method for creating entity tag and user data center

Publications (2)

Publication Number Publication Date
CN101795259A true CN101795259A (en) 2010-08-04
CN101795259B CN101795259B (en) 2012-10-17

Family

ID=42587684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910008481A Active CN101795259B (en) 2009-02-03 2009-02-03 Method for creating entity tag and user data center

Country Status (1)

Country Link
CN (1) CN101795259B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174386A (en) * 2022-06-30 2022-10-11 中国联合网络通信集团有限公司 Configuration access policy application method, UICC, terminal and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859379B (en) * 2005-12-07 2011-02-09 华为技术有限公司 Method and system for managing expandable mark language file
CN1859402B (en) * 2006-02-10 2010-05-12 华为技术有限公司 XML file manging system and its method, and control method for XML file access

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174386A (en) * 2022-06-30 2022-10-11 中国联合网络通信集团有限公司 Configuration access policy application method, UICC, terminal and system

Also Published As

Publication number Publication date
CN101795259B (en) 2012-10-17

Similar Documents

Publication Publication Date Title
US7680910B2 (en) System and method for efficient transfer of applications and data during device swap
CN101689164B (en) Server-assisted and peer-to-peer synchronization
US8139509B2 (en) Installation and management of mobile device [{S]} configuration
US7831734B2 (en) Method and system for remote configuration of network devices
RU2467386C2 (en) Method and apparatus for updating address books
JP5065285B2 (en) Method and apparatus for realizing presence service, presence information processing apparatus and presence client
CN100421070C (en) Method and system for managing dynamic configuration data
CN103403742B (en) The method and system of concentration subscription context management in multiserver reservation system
US8095495B2 (en) Exchange of syncronization data and metadata
CN201886473U (en) Configuration file-updating system, configuration server and application servers
KR20110110223A (en) Selective database replication
JP2010009380A (en) Bus system
EP1875357A1 (en) System and method of synchronization of internal data cache with wireless device application data repositories
CN110192190B (en) Partitioning storage
CN113868295A (en) Data query method and device and multi-party security database
CN114978936A (en) Method, system and storage medium for upgrading shared service platform
EP2847931B1 (en) Method and apparatus for updating personal information in communication system
CN110199277B (en) Including metadata in a data resource
WO2006111001A1 (en) System and method of waste management
CN112069180B (en) User data asset management and copy acquisition method and operator network system
CN101795259B (en) Method for creating entity tag and user data center
D'silva et al. Real-time processing of IoT events using a Software as a Service (SaaS) architecture with graph database
EP2360894A1 (en) Methods and systems for network based address book based on personal cards
CN116233253A (en) Service processing method, device, computer equipment and storage medium
CN107306290B (en) Session sharing method and application server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant