CN101038644B - CPA draft synthesizing method based ebXML standard - Google Patents

CPA draft synthesizing method based ebXML standard Download PDF

Info

Publication number
CN101038644B
CN101038644B CN200610049927XA CN200610049927A CN101038644B CN 101038644 B CN101038644 B CN 101038644B CN 200610049927X A CN200610049927X A CN 200610049927XA CN 200610049927 A CN200610049927 A CN 200610049927A CN 101038644 B CN101038644 B CN 101038644B
Authority
CN
China
Prior art keywords
cpa
node
value
draft
document
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.)
Expired - Fee Related
Application number
CN200610049927XA
Other languages
Chinese (zh)
Other versions
CN101038644A (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.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
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 Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN200610049927XA priority Critical patent/CN101038644B/en
Publication of CN101038644A publication Critical patent/CN101038644A/en
Application granted granted Critical
Publication of CN101038644B publication Critical patent/CN101038644B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A CPA draft synthesis method based on ebXML standard comprising the steps of: (1) reading the nodes of the element to be matched in the module and the element name and prefix of the nodes by using a traverse manner; (2) reading the value of the element text node and from the matching template library and matches a expression; (3) analyzing the matched expression, searching the correspondent value of the transaction side in the correspondent template exemplary embodiment, conducting matching according to the category and recording the matched result, if the matching works, storing the intact element nodes into the CPA file draft, if the matching fails, then representing the correspondent value of the element node by a placeholder and storing it to the CPA file draft, moreover recording the distance by a distance listing file, repeating step (1) to (3), matching the element. The invention can be adaptable to the changing of the CPPA criterion and generates CPA file according to a self-defining template flexibly.

Description

A kind of CPA draft synthetic method based on the ebXML standard
(1) technical field
The present invention relates to a kind of CPA draft synthetic method based on the ebXML standard.
(2) background technology
Collaboration protocols summary/collaboration protocols agreement standard (Collaboration Protocol Profile andAgreement Specification, CPPA) be a important component part in the whole ebXML standard, be mainly used in the implementation process of describing the e-commerce capability that enterprise had, the trade agreement between the Business Partner and qualification and the about beam electrons commercial affairs of carrying out the ebXML ecommerce.
The CPPA standard is exactly to be responsible to define and to be safeguarded by the summary of the collaboration protocols in the ebXML normal structure/collaboration protocols agreement standard council.The CPPA standard has directly defined two class document: CPP (CollaborationProtocol Profile, collaboration protocols summary) document and CPA (Collaboration Protocol Agreement, collaboration protocols agreement) document.The carrying out of each ecommerce all be unable to do without the participation of CPP and CPA document.The CPP document is the description of wishing the e-commerce capability that enterprise supports of participation ebXML ecommerce.It has utilized the XML language description business workflow of enterprise and the commerce services interface of support is as business workflow document that this enterprise adopted, transaction flow, institute's role (buyer or the seller), the digital certificate that adopts, the host-host protocol that is used for the transmission electronic business document, data encapsulation form or the like.
All must there be a CPP document of describing the e-commerce capability that our company supported in the enterprise that any hope participates in the ebXML ecommerce.This be because, on Internet, exist various types of systems, also there is different transaction flows in each enterprise.Before transaction beginning, both sides often do not know each other each other, some characteristics of more not knowing the parties e-commerce system with and the flow process of concluding the business, both sides obviously can't carry out ecommerce under these circumstances.Therefore need be before both sides begin ecommerce, the e-commerce capability that this enterprise supported is told method, system by a kind of approach, also have only after both sides understand the other side's e-commerce capability, just might on Internet, connect, and carry out ecommerce according to the transaction flow that both sides agree.Here, the CPP document has just played this effect.
Along with the rise of ebXML standard, the research of each standard in the ebXML standard has been become a focus.The CPPA standard is the important component part in the ebXML standard, wherein the CPP document generate and the CPA document to synthesize be research emphasis in this standard.
The different institutions of home and overseas been has all has been researched and developed CPA generation method, and more representational is following two kinds of methods.(1) South China Science ﹠ Engineering University utilizes the MSXML of VB and Microsoft to realize the synthetics of the CPA document of a band expansion.Its method is: in original CPP document, add the relation each other when the synthetic CPA document of each element and attribute in the CPP document with the mode of note.Like this when synthetic CPA document draft, only need simply read and this element or the corresponding note of attribute, from note, parse the relation between the respective element and attribute in itself and the parties CPP document then, and compare and mate, can generate a qualified CPA document draft.(2) computing machine institute of Curtin University of Science and Technology utilizes the Ruby language to realize the synthetic method of a CPA document draft.Its synthetic method is carried out in strict accordance with the CPPA standard of particular version, one by one element in the CPP document and attribute is mated, and finally generates the gap tabulation that forms in CPA document draft and the matching process.
In the method for South China Science ﹠ Engineering University,,, sacrificed its versatility though do the validity that does not influence the CPP document like this because the method that it adopted is to have added some specific comments fields that are used for concerning between marker element in the CPP document; Obviously carry out two CPP documents that the synthetic requirement of CPA document draft is used to synthesize with this synthetics, all have these specific fields, and for the CPP document (not having above-mentioned specific fields) of two standards, this instrument that is to say that with powerless this instrument at most only is suitable for the application among a small circle so.Simultaneously, add the way of specific fields, obviously run counter to the aim that the ebXML normal structure is proposed when this standard of formulation, the privatization that it becomes a public standard of the world.
The method of Curtin University of Science and Technology is changed the CPPA standard, and then has influence on the structure and the Matching Algorithm of CPP document, and whole algorithm all must be made amendment so, to adapt to the requirement of new criteria.Because the CPP standard is constantly being revised and improved, and makes corresponding CPA draft generation method also need continuous renewal, therefore do being difficult to adapt to the application of ebXML in actual ecommerce like this.Very tediously long of CPP document simultaneously, the method for handling reason CPA draft also needs a large amount of program codes to finish, and all needs a large amount of programing works when making each practical application.
(3) summary of the invention
CPA document draft generation method is custom-designed according to each different CPPA standard in the prior art in order to overcome, relevant with the specific electron business application, if increase new E-business applications, then need to redesign the deficiency of CPA generation method, the invention provides a kind of expansion, flexibly, configurable CPA document draft generation method.
Technical scheme of the present invention is:
A kind of CPA draft synthetic method based on the ebXML standard may further comprise the steps:
(1) adopts the traversal mode, need the node element of coupling element in the read module example, read the masurium and the prefix of this node element;
(2), from the matching template storehouse, read the value and the coupling expression formula of this element text node according to masurium and prefix;
(3) resolve the coupling expression formula, and search in the parties respective modules example corresponding value according to the coupling expression formula, again according to the match-type in the coupling expression formula, it is mated and writes down matching result, described matching result is that the match is successful, then this node element former state is saved in the CPA document draft; As mate unsuccessfully, and then the value of this node element correspondence is accounted for to symbol with one and represent, and be saved in the CPA document draft, use a gap listing file simultaneously, write down this gap;
(4) repeating step (1)-(3), the element in element in the spider module example and the respective modules example mates, and the result is saved in the CPA document draft.
According to following matched rule record:
1. the value of element or attribute requires to equate, unequal then synthetic failure, as: ProcessSpecification;
2. the value of element or attribute requires to equate, the unequal gap that then writes is tabulated, the synthetic continuation;
3. the value of element or attribute requires difference, identical then synthetic failure, as: Role;
4. the value of element or attribute requires difference, and the identical gap that then writes is tabulated, the synthetic continuation;
The value of element or attribute can be identical also can be different, as PartyName;
6. to quoting the coupling of part, mate whether success all continues to synthesize, as: the value of the ChannelId element in the CanSend element;
7. to the coupling of version number, adopt backward compatible principle, as: the version number of TransportProtocol.
Described step (3) is:
(3.1) the coupling path that obtains this node in the parties respective modules by the obtained coupling expression parsing of step (2) match-type extremely;
(3.2) obtain matched node in the respective modules according to its coupling path searching, obtain the value of this node correspondence;
(3.3), the value of above-mentioned two matched node correspondences is mated according to match-type;
(3.4), then this node former state is saved in the CPA document draft if the match is successful; If coupling is unsuccessful, then the value of this node correspondence is accounted for to symbol with one and represent, and be saved in the CPA document draft, use a gap listing file simultaneously, write down this gap;
(3.5) repeating step (3.1)-(3.4) travel through the node of this element, and the result is saved in the CPA document draft.
Principle of the present invention is: with matched rule etc. and separate; Introduce the coupling expression formula and represent a coupling path; Utilize special mark to represent the rule of element and attributes match; Utilize in the system special construction of file to represent a module; Utilize recursive fashion to travel through the element and the attribute of whole module instance.Thereby improved the formation speed of CPA document, and can mate fast according to different business applications.Here by introducing a gap listing file, between each module owing to the different differential shadings that cause with attribute of element fall, that is to say sameization of matching process between each disparate modules.Making the program that not only makes a module coupling like this can be without on the coupling of being transplanted to the other module instance that changes, simultaneously, also some matched rules in the module matching process have been transferred to a program place in addition from the program the inside, after doing like this, when just can work as the CPPA standard and change, do not need reprogramming, describe these regular external files and only change some, can be so that it adapts to the demand of new criteria.
The information of node element is located with set membership (section-key-value) among the present invention.The title of the section name corresponding element of gap listing file, the title and the text node of corresponding each attribute of key name are used for representing which element or the property value of CPP document of element that this key name is represented or attribute and parties is corresponding with the corresponding key assignments of key name.In the expression of key assignments, introduced the notion of coupling expression formula here.The coupling expression formula is similar to the Xpath expression formula, is used for representing the element of the corresponding module of parties or the relative position of attribute.The relative position here is meant the relative path that is called root node with this module name.
The beneficial effect of a kind of CPA draft synthetic method based on the ebXML standard of the present invention mainly shows: can adapt to the change of CPPA standard, generate the CPA document according to self-defined template flexibly.
(4) description of drawings
Fig. 1 is the process flow diagram of a kind of CPA draft synthetic method based on the ebXML standard of the present invention.
Fig. 2 is the structural drawing of a kind of CPA draft synthetic method based on the ebXML standard of the present invention.
(5) embodiment
Below in conjunction with accompanying drawing the present invention is further described.
Referring to Fig. 1: a kind of CPA draft synthetic method based on the ebXML standard may further comprise the steps:
The first step: adopt the traversal mode, need the node element of coupling element in the read module example, read the masurium and the prefix of this node element;
Second step:, from the matching template storehouse, read the value and the coupling expression formula of this element text node according to masurium and prefix;
The 3rd step: the coupling path that obtains this node in the parties respective modules by obtained coupling expression parsing of second step is match-type extremely;
The 4th step: obtain matched node in the respective modules according to its coupling path searching, obtain the value of this node correspondence;
The 5th step:, the value of above-mentioned two matched node correspondences is mated according to match-type;
The 6th step:, then this node former state is saved in the CPA document draft if the match is successful; If coupling is unsuccessful, then the value of this node correspondence is represented with a placeholder, and be saved in the CPA document draft, use a gap listing file simultaneously, write down this gap;
The 7th step: the result is saved in the CPA document draft, jumped to for the 3rd step.
Referring to Fig. 2: referring to Fig. 2: a kind of software of the CPA draft synthetic method based on the ebXML standard, main modular and function are as follows:
The CPPA document management mainly is to be responsible for CPP or the CPA document that has existed managed.Comprise the CPP document that this locality is preserved import in the system analyze, generation or handle later CPP document storing in local system, CPP or the CPA document perhaps managed existing in the local system back up and delete, print current CPP or CPA document or the like.
The CPP document generates guide and is used to help the user to generate effective CPP document in the mode of efficient quick; Document information extracts the selection that is used for according to the user, purpose is arranged targetedly from extract the information that the user is concerned about when the CPP document of front opening, browses for the user; The document validation verification then is used to the current CPP document of verifying that the user opens and input validation result and error message; The registration current document is used for the ebXML registration table of current C PP document registration to user's setting; Downloading the CPP document is used for the user and downloads it from the registration table of appointment and think the CPP document of the parties of coupling; Document template extracts and is used for extracting the CPP document template that can supply parties to fill in from current CPP document.
The synthetic guide of CPA is used for the user two CPP documents is generated CPA document draft automatically, and the gap list document that produces two CPP document gaps of record; Function that the CPA document information extracts and CPP document class seemingly are used for extracting according to user's requirement some important informations of current C PA document; CPA document validation verification be used to verify effective CPA document that whether this CPA document finally form with and the checking result of digital signature; The tabulation of demonstration gap is mainly used in the mode of the gap information that forms in two CPA document draft building-up processes with a kind of readability is shown; Consult the CPA document and be used for CPA document draft is carried out automatic or manual negotiation, to eliminate unmatched information, form final effectively CPA document, what adopt at present is artificial negotiation mode; Signature CPA document is used for the CPA document that has generated is carried out digital signature.
Parameter is provided with and mainly is provided with some operational factors of doing total system.The view display font is used for revising the font that document views shows; CPP document parameter is provided for being provided with some some constant information in CPP document generative process, as host-host protocol, access registrar mode, digital envelope and cryptographic algorithm or the like; The information that the information extraction setting then is used for being provided with is that the user is concerned about, need extract from CPP or CPA document, the information extraction function in CPP or the CPA document function is according to the information that the user is concerned about of extracting that is provided with here; The CPP document registration is provided for being provided with the parameter that some are used to register the CPP document, as address of registration interface etc.; The scope that can consult when the NDD document setup is used to CPA document draft gap is set and the producing method of NDD document.

Claims (3)

1. CPA draft synthetic method based on the ebXML standard is characterized in that: may further comprise the steps:
(1) adopts the traversal mode, need the node element of coupling element in the read module example, read the masurium and the prefix of this node element;
(2), from the matching template storehouse, read the value and the coupling expression formula of this node element according to masurium and prefix;
(3) resolve the coupling expression formula, and search in the parties respective modules example corresponding value according to the coupling expression formula, again according to the match-type in the coupling expression formula, it is mated and writes down matching result, described matching result is that the match is successful, then this node element former state is saved in the CPA document draft; As mate unsuccessfully, and then the value of this node element correspondence is represented with a placeholder, and be saved in the CPA document draft, use a gap listing file simultaneously, write down this gap;
(4) repeating step (1)-(3), the element in element in the spider module example and the respective modules example mates, and the result is saved in the CPA document draft.
2. a kind of CPA draft synthetic method based on the ebXML standard as claimed in claim 1 is characterized in that: according to following matched rule record:
(1). the value of element or attribute requires to equate, unequal then synthetic failure;
(2). the value of element or attribute requires to equate, the unequal gap listing file that then writes, the synthetic continuation;
(3). the value of element or attribute requires different, identical then synthetic failure;
(4). the value of element or attribute requires different, the identical gap listing file that then writes, the synthetic continuation;
(5). the value of element or attribute can be identical also can be different, the synthetic continuation;
(6). to quoting the coupling of part, mate whether success all continues synthetic;
(7). to the coupling of version number, adopt backward compatible principle.
3. a kind of CPA draft synthetic method as claimed in claim 1 or 2 based on the ebXML standard, it is characterized in that: described step (3) is:
(3.1) obtain the coupling path and the match-type thereof of this node in the parties respective modules by the obtained coupling expression parsing of step (2);
(3.2) obtain matched node in the respective modules according to its coupling path searching, obtain the value of this node correspondence;
(3.3), the value of above-mentioned two matched node correspondences is mated according to match-type;
(3.4), then this node former state is saved in the CPA document draft if the match is successful; If coupling is unsuccessful, then the value of this node correspondence is represented with a placeholder, and be saved in the CPA document draft, use a gap listing file simultaneously, write down this gap;
(3.5) repeating step (3.1)-(3.4) travel through the node of this element, and the result is saved in the CPA document draft.
CN200610049927XA 2006-03-17 2006-03-17 CPA draft synthesizing method based ebXML standard Expired - Fee Related CN101038644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610049927XA CN101038644B (en) 2006-03-17 2006-03-17 CPA draft synthesizing method based ebXML standard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610049927XA CN101038644B (en) 2006-03-17 2006-03-17 CPA draft synthesizing method based ebXML standard

Publications (2)

Publication Number Publication Date
CN101038644A CN101038644A (en) 2007-09-19
CN101038644B true CN101038644B (en) 2010-12-22

Family

ID=38889530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610049927XA Expired - Fee Related CN101038644B (en) 2006-03-17 2006-03-17 CPA draft synthesizing method based ebXML standard

Country Status (1)

Country Link
CN (1) CN101038644B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6654734B1 (en) * 2000-08-30 2003-11-25 International Business Machines Corporation System and method for query processing and optimization for XML repositories
CN1487450A (en) * 2002-05-08 2004-04-07 ά Use of expandable marked language in data bank searching system and method
CN1581170A (en) * 2003-08-15 2005-02-16 国际商业机器公司 Method and system for comparing files of two computers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6654734B1 (en) * 2000-08-30 2003-11-25 International Business Machines Corporation System and method for query processing and optimization for XML repositories
CN1487450A (en) * 2002-05-08 2004-04-07 ά Use of expandable marked language in data bank searching system and method
CN1581170A (en) * 2003-08-15 2005-02-16 国际商业机器公司 Method and system for comparing files of two computers

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙天昊 等.一种基于ebXML的CPA自动生成模型与算法.计算机工程31 8.2005,31(8),全文.
孙天昊等.一种基于ebXML的CPA自动生成模型与算法.计算机工程31 8.2005,31(8),全文. *

Also Published As

Publication number Publication date
CN101038644A (en) 2007-09-19

Similar Documents

Publication Publication Date Title
US11210456B2 (en) Method relating to preparation of a report
US20170351647A1 (en) Method and Apparatus for Declarative Updating of Self-Describing, Structured Documents
CN102591654B (en) A kind of code generator based on SSH framework and method
CN101504672B (en) Method and system for dynamically configuring physical data table
CN100388292C (en) Documents for commerce in trading partner networks and interface definitions based on the documents
CN103428080B (en) A kind of data unpack and organize bag method
CN109739915B (en) Cross-domain shared data model construction method
CN102541829B (en) Multiuser concurrent electronic document generation device and method
CN103019874A (en) Method and device for realizing exception handling based on data synchronization
CN112417178B (en) Document template definition-based on-chain contract processing method and device and electronic equipment
CN114338855B (en) Method for realizing parsing and generating HL7, FHIR standard and custom XML message
CN105225066A (en) The verification method of workflow legitimacy and demo plant
Marienfeld et al. Metadata aggregation at govdata. de: An experience report
CN112671734A (en) Message processing method facing multiple data sources and related equipment thereof
CN112464279A (en) Method and system for realizing form design based on service drive
CN106126224A (en) Tool, system and method for generating program object
CN109597603B (en) Demand document automatic generation method based on document component
CN101944017A (en) Method and device for producing Widget
Foxvog et al. Ontologizing EDI: first steps and initial experience
CN101038644B (en) CPA draft synthesizing method based ebXML standard
CN107528839A (en) The collocation method and device of a kind of interface packets
CN113810340A (en) Data reporting method, device, equipment and computer readable storage medium
KR100863121B1 (en) Ontology search system
JP2002541558A (en) Intellectual property protocols that define data exchange rules and formats for generic intellectual property data objects, and systems, methods, and program products related thereto
CN109739504A (en) A method of the H5 business handling page is automatically generated according to backstage configuration

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101222

Termination date: 20180317

CF01 Termination of patent right due to non-payment of annual fee