TW444176B - System and method for automatic XML/EDI data transformation - Google Patents

System and method for automatic XML/EDI data transformation Download PDF

Info

Publication number
TW444176B
TW444176B TW88110431A TW88110431A TW444176B TW 444176 B TW444176 B TW 444176B TW 88110431 A TW88110431 A TW 88110431A TW 88110431 A TW88110431 A TW 88110431A TW 444176 B TW444176 B TW 444176B
Authority
TW
Taiwan
Prior art keywords
xml
edi
data
database
patent application
Prior art date
Application number
TW88110431A
Other languages
Chinese (zh)
Inventor
Jia-Bo Lin
Jen-Ya Jang
Tian-Ye Ju
Original Assignee
Inst Information Industry
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 Inst Information Industry filed Critical Inst Information Industry
Priority to TW88110431A priority Critical patent/TW444176B/en
Application granted granted Critical
Publication of TW444176B publication Critical patent/TW444176B/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a system and method for automatic XML/EDI data transformation. The system includes at least two exchange servers having XML/EDI objects transmitted therebetween. Each exchange server includes: a receiving module for receiving XML/EDI objects, a document type defined module having DTD data, and a parsing module. The parsing module parses the XML/EDI objects according to the DTD data to store them into a repository after tablization.

Description

444 7 76 五、發明說明(1) 本發明係有關於XML/EDI架構,特別是有關於一種XML /EDI資料自動轉換系統及其方法。 「可延伸性標示語言」(Extensible Markup Language,簡以xml稱之)是新一代的標示語言,係源於一 九八六年由國際標準組織(International Standards Organization, ISO)所訂定之「標準通用標示語言」 (Standard Generalized Markup Language ,簡以SGML 稱 之)。在一九九六年底由全球資訊網協會(World Wide Web Consortium),為建立全球資訊網路標準而提出,主要是 針對如何在資訊網路上傳送或處理量大而複雜的電子文件 所發展出來。 XML保有SGML之文件自我描述系統與文件結構化功能 ’卻也摒除SGML過於龐大複雜、不易普及化的缺點。雖然 HTML的輕便以及簡單易懂,助長了全球資訊網的迅速普及 ,但是HTML標籤的應用十分有限,僅適用小量文件的處理 ,對於全球資訊網平台多媒體與編排多樣化、以及電子商 務的殷切需求,HTML語法已漸不敷使用。因此,XML的特 色,即便是具有SGML的強大功能和彈性外,又能符合全球 資訊網的使用環境。透過XML的互通性與可延伸性,儼然 已成為新一代的標不語言。 而電子資料交換(Electronic Data Interchange,下 文以ED I稱之)自一九六0年代萌芽、一九八0年代中期廣泛 應用於汽車業、零售業、運輸業及國際貿易等領域以來, 其目的即在改善貿易夥伴、供應商與顧客之間的資訊交換444 7 76 V. Description of the invention (1) The present invention relates to an XML / EDI architecture, and more particularly to an XML / EDI data automatic conversion system and method. "Extensible Markup Language" (referred to as xml for short) is a new generation of markup language. It originates from the "Standard Generalization" set by the International Standards Organization (ISO) in 1986. Markup Language "(Standard Generalized Markup Language, SGML for short). At the end of 1996, it was proposed by the World Wide Web Consortium to establish a global information network standard, which was mainly developed for how to transmit or process large and complex electronic documents on the information network. XML retains SGML's document self-describing system and document structure function, but it also eliminates the shortcomings of SGML which is too large and complex and difficult to popularize. Although the lightweight and easy-to-understand HTML promotes the rapid popularization of the World Wide Web, the application of HTML tags is very limited and only applies to the processing of a small amount of documents. It is diversified in the multimedia and layout of the World Wide Web platform and the eagerness of e-commerce Requirements, the HTML syntax is no longer sufficient. Therefore, the characteristics of XML, even with the powerful functions and flexibility of SGML, can also meet the use environment of the World Wide Web. Through the interoperability and extensibility of XML, it has become a new generation of standard languages. Electronic Data Interchange (hereinafter referred to as ED I) has been in use since the beginning of the 1960s and was widely used in the automotive, retail, transportation, and international trade fields in the mid-1980s. Improving information exchange between trading partners, suppliers and customers

444 ? 76 五、發明說明(2) ,降低其間互動與業務往來的障礙。簡言之,EDI即是以 標準電子格式表示商業資訊之技術,而使商業資訊得以迅 速流通交換。ED I為達到資料交換的目的,係根據資料性 質之別’自資料庫中製作出相關的EDI訊息,並將資料的 屬性清楚的列示,以提供業者在資料交換時,能夠正. 對應不同的訊息。 $ & 由於XML與EDI的特性不謀而合,因此,有提出 XML/EDI架構者,讓各行各業利用XML語言工具,進行文件 撰寫、傳送與處理EDI訊息。XML/EDI架構通常會包括五個 主要元件’符合XML格式之以網路資料交換、傳統之ED 1業 務权式與§孔息結構、基於專業知識的處理法則之範本 (template)、執行特殊功能的資料處理之代理程式、以及 儲存文件及法則範本的網路儲存資料庫(rep〇sit〇ry) ^其 中,XML與EDI是既有的標準,代理程式與儲存資料庫是、 XML文件應用在電子交易中所需的溝通機制,據以將廣泛 應用於各行各業的EDI訊息標準,轉換為XML的標示結構。 而本發明之一目的,即便是提供一種XML/edi資料自 動轉換系統及其方法,係根據傳統EDi屬性定義所 換 資料輸時並以自動且彈性的方式轉為胤之資 枓模式,以即省成本並有效率地處理交換資 資料交換之選擇彈性。 為獲致本發明之上述目的,可藉由提 資料自動轉換系統來完成。此系統,種 /FnT ^ ^ . 此糸統包括至少二交換伺服器 ,有XML/EDI物件傳遞於其間。每一 J ^ 交換伺服器包括:接444? 76 5. Description of the invention (2), reducing the obstacles to interaction and business exchanges. In short, EDI is a technology for expressing business information in a standard electronic format, which enables rapid circulation and exchange of business information. In order to achieve the purpose of data exchange, ED I creates relevant EDI messages from the database according to the nature of the data, and clearly lists the attributes of the data, so that the provider can be positive when the data is exchanged. Corresponding to different Message. $ & Because the characteristics of XML and EDI coincide, some XML / EDI architects have been proposed to allow industries to use XML language tools to write documents, transmit and process EDI messages. The XML / EDI architecture usually includes five main components: 'Internet data exchange conforming to XML format, traditional ED 1 business rights and § interest structure, template based on professional knowledge processing rules, and performing special functions Agent for data processing, and a network storage database (rep0sit〇ry) for storing documents and rule templates ^ XML and EDI are existing standards, and agents and storage databases are XML files used in The communication mechanism required in electronic transactions is based on the conversion of EDI message standards widely used in various industries into XML markup structures. One object of the present invention is to provide an XML / edi data automatic conversion system and method, which is based on the traditional EDi attribute definition when the data to be exchanged is converted and converted into an asset management mode in an automatic and flexible manner. The cost-effectiveness and the flexibility to deal with the exchange of data and information efficiently. In order to achieve the above object of the present invention, it can be accomplished by an automatic data conversion system. This system, / FnT ^ ^. This system includes at least two exchange servers with XML / EDI objects passed between them. Each J ^ exchange server includes:

4 / 76 五、發明說明(3) --- 收XML/EDI 物件之 一 i* ji. — 接收槟組、具有一 DTD資料之一文件型 式疋義模組、以及一 Α丨丨此此y ,, /Ρητ ,λ. 析槟組。剖析模組係根據DTD資料 對XML/EDI物件谁并八4ii — . 料庫中。 仃刀析’予以表格化處理後儲存至一資 ,本發明提供—種XML/EDI資料自動轉換方法, 適用由至少二交換伺服器間傳遞XML/EDI物件。首先, 以交換伺服器中之一者接收XML/EDI物件。然後,根據一 DTD資料,對XML/EDI物件進行剖析。接著,將經過剖析之 XML/EDI物件予以表格化,再儲存至一資料庫内。 為讓本發明之上述和其他目的、特徵、和優點能更明 顯易懂,下文特舉一較佳實施例,並配合所附圖式,作詳 細說明如下: 圖示之簡單說明: 第1圖係顯示根據本發明之XML/EDI資料自動轉換系統 第一較佳實施例的方塊示意圖; 第2圖係顯示第1圖之EDI交換伺服器的模組架構圖; 第3圖係顯示根據本發明之XML/EDI資料自動轉換系統 第二較佳實施例的方塊示意圖;以及 第4圖係顯示根據本發明之XML/EDI資料自動轉換系統 第三較佳實施例的方塊示意圖。 符號說明: 1、2〜EDI交換伺服器;3~XML/EDI物件;4、5〜關聯性 資料庫;7、8~MIS系統;20〜接收模組;2卜傳送模組;4/76 V. Description of the invention (3) --- Receive one of the XML / EDI objects i * ji. — Receive Bin group, a document type semantic module with a DTD data, and a ,, / Ρητ, λ. Analysis of Bin group. The parsing module is based on the DTD data for XML / EDI objects and is not in the 4ii —. Repository. The analysis is performed on a table and stored in a database. The present invention provides a method for automatic conversion of XML / EDI data, which is suitable for passing XML / EDI objects between at least two exchange servers. First, the XML / EDI object is received by one of the exchange servers. Then, based on a DTD data, the XML / EDI object is parsed. The parsed XML / EDI objects are then tabulated and stored in a database. In order to make the above and other objects, features, and advantages of the present invention more comprehensible, a preferred embodiment is given below in conjunction with the accompanying drawings to make a detailed description as follows: Brief description of the drawings: FIG. 1 It is a block diagram showing the first preferred embodiment of the XML / EDI data automatic conversion system according to the present invention; FIG. 2 is a block diagram showing the module architecture of the EDI exchange server of FIG. 1; A block diagram of the second preferred embodiment of the XML / EDI data automatic conversion system; and FIG. 4 is a block diagram showing the third preferred embodiment of the XML / EDI data automatic conversion system according to the present invention. Explanation of symbols: 1, 2 ~ EDI exchange server; 3 ~ XML / EDI objects; 4,5 ~ relationship database; 7,8 ~ MIS system; 20 ~ receiving module; 2bu transmission module;

444 f 76444 f 76

22〜剖析模組;23〜XML產生模組;24〜文件型式定義模組; 25〜資料庫介面模組;以及,26〜EDI介面模組。 實施例: 第一實施例 請參照第1圖,所示為根據本發明之XML/ED I資料自動 轉換系統第一較佳實施例的方塊示意圖。第1圖中,標號j 和2代表EDI交換伺服器,而有XML/EDI物件3於其間進行傳 送交換’ E DI交換飼服器1和2間,可以是透過企業内部網 路(intranet)、區域網路(LAN)、廣域網路(WAN)網際網路 (Internet)傳輸XML/EDI物件3。此處XML/EDI物件3之意, 代表具有XML語言格式之EDI資料物件。 第1圖中,EDI交換伺服器1與A公司之管理資訊系統 (management information system,下以MIS 系統稱之)g 間的關係,可以呈主從式(server-client)網路架構為之 ,亦即EDI交換伺服器1為伺服端,A公司之MIS系統6即為 客戶端。同樣地,ED I交換伺服器2與B公司之ΜI S系統7間 ,亦呈主從式網路架構,即ED I交換伺服器2為伺服端,Β 公司之MIS系統7即為客戶端。 根據本發明,A公司之Μ I S系統6所需接收的ED I資料, 係先經過EDI交換伺服器1轉換處理後,再儲存至關連性資 料庫4内,以供A公司之Μ IS系統6讀取,做進一步處理。A 公司之MIS系統6所需傳出的EDI資料,亦經過EDI交換伺服 器1處理,轉換成具有XML語言格式之XML/EDI物件3後,再22 ~ analysis module; 23 ~ XML generation module; 24 ~ document type definition module; 25 ~ database interface module; and 26 ~ EDI interface module. Embodiment: First Embodiment Please refer to FIG. 1, which shows a block diagram of a first preferred embodiment of an XML / ED I data automatic conversion system according to the present invention. In Figure 1, the symbols j and 2 represent EDI exchange servers, and XML / EDI objects 3 exchange between them. 'E DI exchange feeders 1 and 2 can be through an intranet, Local area network (LAN), wide area network (WAN), Internet (Internet) transmits XML / EDI objects3. The meaning of XML / EDI object 3 here means the EDI data object with XML language format. In Figure 1, the relationship between the EDI exchange server 1 and the management information system (hereinafter referred to as the MIS system) of company A can be a server-client network architecture. That is, the EDI exchange server 1 is a server, and the MIS system 6 of company A is a client. Similarly, the EDI exchange server 2 and the MIS system 7 of company B also have a master-slave network structure, that is, the EDI exchange server 2 is the server, and the MIS system 7 of company B is the client. According to the present invention, the EDI data required to be received by the company's M IS system 6 is first processed by the EDI exchange server 1 and then stored in the related database 4 for the company A's M IS system 6 Read it for further processing. The EDI data required by the MIS system 6 of company A is also processed by the EDI exchange server 1 and converted into XML / EDI objects 3 with XML language format.

第7頁 4 44 f 76 五、發明說明(5) 傳送出去。同理,B公司之M IS系統7所需接收的EDI資料, 係先經過ED I交換伺服器2轉換處理後,再儲存至關連性資 料庫5内,以供B公司之M IS系統7讀取,做進一步處理。B 公司之MIS系統7所需傳出的EDI資料,係亦經過EDI交換伺 服器1處理後’轉換成具有XML語言格式之XML/EDI物件3後 ,再傳送出去。 請參照第2圖,所示為ED I交換伺服器1或2之模組架構 圖。圖示中’模組架構包括:接收模組2 0、傳送模組2 1、 剖析模組(parser) 22、XML產生模組23、文件型式定義模 組(Document Type Definition,以 DTD 簡稱之)24、資料Page 7 4 44 f 76 5. Description of the invention (5) Send it out. Similarly, the EDI data required by the M IS system 7 of company B is first converted and processed by the EDI exchange server 2 and then stored in the related database 5 for reading by the M IS system 7 of company B. Take it for further processing. The EDI data required by the MIS system 7 of company B is also processed by the EDI exchange server 1 and converted into an XML / EDI object 3 with an XML language format, and then transmitted. Please refer to Figure 2, which shows the module architecture diagram of EDI exchange server 1 or 2. In the figure, the module structure includes: receiving module 20, transmitting module 21, parser 22, XML generating module 23, document type definition module (DTD for short) 24.Information

庫介面模組25、以及EDI介面模組26等等。下文就XML/EDI 物件3之接收與傳送流程,將各模組20~26之功能做一描述 〇 當EDI交換伺服器1或2接收到XML/EDI物件3時,係由 接收模組20接收處理,此接收模組2〇係做為EDI交換伺服 器1或2與傳輸網路間之介面。然後,由剖析模組2 2對 XML/EDI物件3進行分析,由於xML/edI物件3係屬XML語言 格式’故剖析模組22便會根據文件型式定義模組24,對於 具有XML語言格式之XML/EDI物件3内各標籤之定義進行分 析。假若XML/EDI物件3是一張訂單(quotation),其XML語丨 言格式如下: k &lt;?xm1 version=&quot;1.〇&quot;?&gt; iiMi mm 第8頁 4 44 彳 7 ( 五、發明說明(6) &lt;!DOCTYPE quotation SYSTEM &quot;quotation.dtd&quot;&gt; 〈quotation SenderName:&quot; III'丨〉 &lt;appno&gt;000001&lt;/appno&gt; &lt;s2&gt; s2&lt;/s 2&gt; &lt;c2&gt;c2&lt;/c2&gt; &lt;ex2 &gt;ex2 &lt;/ex 2 &gt; &lt; sender&gt; &lt;sendername&gt;xx&lt;/sendername&gt; &lt;senderaddr&gt;bb&lt;/senderaddr&gt; &lt;/sender&gt; &lt;rec e i ver &gt; &lt;receivernarae&gt;xx&lt;/receivernaine&gt; &lt;receiveraddr&gt;bb&lt;/receiveraddr&gt; &lt;/rece iver&gt; 〈detail〉 &lt;appnol&gt;000001&lt;/appnol&gt; &lt;i temno&gt;00001&lt;/itemno&gt; &lt;productid&gt;ASIK01&lt;/productid&gt; &lt;spec&gt;ASIK01&lt;/spec&gt; &lt;a_qty&gt;10&lt;/a_qty&gt; 〈/detail〉 &lt;/quot at i on&gt;The library interface module 25, the EDI interface module 26, and the like. The following describes the receiving and transmitting process of the XML / EDI object 3, and describes the functions of each module 20-26. When the EDI exchange server 1 or 2 receives the XML / EDI object 3, it is received by the receiving module 20. Processing, this receiving module 20 is used as the interface between the EDI exchange server 1 or 2 and the transmission network. Then, the parsing module 22 analyzes the XML / EDI object 3. Since the xML / edI object 3 is in the XML language format, the parsing module 22 will define the module 24 according to the file type. The definition of each tag in XML / EDI object 3 is analyzed. If the XML / EDI object 3 is an order, its XML language format is as follows: k &lt;? Xm1 version = &quot; 1.〇 &quot;? &Gt; iiMi mm page 8 4 44 彳 7 (5 Description of the invention (6) &lt;! DOCTYPE quotation SYSTEM &quot; quotation.dtd &quot; &gt; 〈quotation SenderName: &quot; III '丨〉 &lt; appno &gt; 000001 &lt; / appno &gt; &lt; s2 &gt; s2 &lt; / s 2 &gt; &lt; c2 &gt; c2 &lt; / c2 &gt; &lt; ex2 &gt; ex2 &lt; / ex 2 &gt; &lt; sender &gt; &lt; sendername &gt; xx &lt; / sendername &gt; &lt; senderaddr &gt; bb &lt; / senderaddr &gt; &lt; / sender &gt; &lt; rec ei ver &gt; &lt; receivernarae &gt; xx &lt; / receivernaine &gt; &lt; receiveraddr &gt; bb &lt; / receiveraddr &gt; &lt; / rece iver &gt; <detail> &lt; appnol &gt; &lt; 0000 + 1 ; &lt; productid &gt; ASIK01 &lt; / productid &gt; &lt; spec &gt; ASIK01 &lt; / spec &gt; &lt; a_qty &gt; 10 &lt; / a_qty &gt; 〈/ detail〉 &lt; / quot at i on &gt;

第9頁 4 4417 五、發明說明(7) 而文件型式定義模組24之於此訂單之DTD即如下: &lt;?xml encoding=&quot;US-ASCII&quot;?&gt; &lt;!ELEMENT quotationPage 9 4 4417 5. Description of the invention (7) The DTD of this order for the document type definition module 24 is as follows: &lt;? Xml encoding = &quot; US-ASCII &quot;? &Gt; &lt;! ELEMENT quotation

Cappno|s2|c2|ex2Isenderlreceiver I detail)木&gt; &lt;!ATTLIST quotation DB CDATA #FIXED &quot;IIIBUYER&quot;Cappno | s2 | c2 | ex2Isenderlreceiver I detail) wood &gt; &lt;! ATTLIST quotation DB CDATA #FIXED &quot; IIIBUYER &quot;

Table CDATA #FIXED &quot;BAPUR07M&quot; SenderName CDATA #REQUIRED&gt; &lt;!ELEMENT appno (#PCDATA)&gt; &lt;!ATTLI ST appnoTable CDATA #FIXED &quot; BAPUR07M &quot; SenderName CDATA # REQUIRED &gt; &lt;! ELEMENT appno (#PCDATA) &gt; &lt;! ATTLI ST appno

Field CDATA #FIXED &quot;APP_NOn&gt; &lt;!ELEMENT s2 (#PCDATA)&gt; &lt;!ATTLIST s2Field CDATA #FIXED &quot; APP_NOn &gt; &lt;! ELEMENT s2 (#PCDATA) &gt; &lt;! ATTLIST s2

Field CDATA #FIXED &quot;S2n&gt; &lt;!ELEMENT c2 (#PCDATA)&gt; &lt;iATTLIST c2Field CDATA #FIXED &quot; S2n &gt; &lt;! ELEMENT c2 (#PCDATA) &gt; &lt; iATTLIST c2

Field CDATA #FIXED &quot;C2&quot;&gt; &lt;!ELEMENT ex2 (#PCDATA)&gt; &lt;!ATTLIST ex2Field CDATA #FIXED &quot; C2 &quot; &gt; &lt;! ELEMENT ex2 (#PCDATA) &gt; &lt;! ATTLIST ex2

Field CDATA #FIXED &quot;EX2&quot;&gt; &lt;!ELEMENT sender (sendernameIsenderaddr)*&gt; &lt;!ATTLIST senderField CDATA #FIXED &quot; EX2 &quot; &gt; &lt;! ELEMENT sender (sendernameIsenderaddr) * &gt; &lt;! ATTLIST sender

第10頁 444 t 7 6 五、發明說明(8)Page 10 444 t 7 6 V. Description of the invention (8)

Table CDATA #FIXED &quot;BAPDROl&quot;Table CDATA #FIXED &quot; BAPDROl &quot;

Sender CDATA «FIXED &quot;SUP_NO&quot;&gt; &lt;!ELEMENT sendername (#PCDATA)&gt; &lt;!ATTLIST sendernameSender CDATA «FIXED &quot; SUP_NO &quot; &gt; &lt;! ELEMENT sendername (#PCDATA) &gt; &lt;! ATTLIST sendername

Field CDATA #FIXED &quot;SUP_NAMEH&gt; &lt;!ELEMENT senderaddr (#PCDATA)&gt; &lt;!ATTLIST senderaddrField CDATA #FIXED &quot; SUP_NAMEH &gt; &lt;! ELEMENT senderaddr (#PCDATA) &gt; &lt;! ATTLIST senderaddr

Field CDATA #FIXED &quot;SUP_ADDR&quot;&gt; &lt;!ELEMENT receiver (receivername|receiveraddr)^&gt; &lt;!ATTLIST receiverField CDATA #FIXED &quot; SUP_ADDR &quot; &gt; &lt;! ELEMENT receiver (receivername | receiveraddr) ^ &gt; &lt;! ATTLIST receiver

Table CDATA #FIXED &quot;BAPUROl&quot;Table CDATA #FIXED &quot; BAPUROl &quot;

Receiver CDATA #FIXED &quot;SUP_NO&quot;&gt; &lt;!ELEMENT receivername (#PCDATA)&gt; &lt;!ATTL I ST receivernameReceiver CDATA #FIXED &quot; SUP_NO &quot; &gt; &lt;! ELEMENT receivername (#PCDATA) &gt; &lt;! ATTL I ST receivername

Field CDATA #FIXED &quot;SUP_NAME&quot;&gt; &lt;!ELEMENT receiveraddr (#PCDATA)&gt; &lt;!ATTLIST receiveraddrField CDATA #FIXED &quot; SUP_NAME &quot; &gt; &lt;! ELEMENT receiveraddr (#PCDATA) &gt; &lt;! ATTLIST receiveraddr

Field CDATA #FIXED &quot;SUP_ADDR&quot;&gt; &lt;!ELEMENT detail (appnol | iteinno|productid|spec|a_qty)*&gt; 〈’·ATTLIST detailField CDATA #FIXED &quot; SUP_ADDR &quot; &gt; &lt;! ELEMENT detail (appnol | iteinno | productid | spec | a_qty) * &gt; 〈’· ATTLIST detail

Table CDATA #FIXED &quot;BAPUR07D&quot;Table CDATA #FIXED &quot; BAPUR07D &quot;

Foreign CDATA #FIXED Mappno&quot;&gt; &lt;!ELEMENT appnol (#PCDATA)&gt;Foreign CDATA #FIXED Mappno &quot; &gt; &lt;! ELEMENT appnol (#PCDATA) &gt;

第11頁 444176 五、發明說明(9) &lt;!ATTLIST appnolPage 11 444176 V. Description of the invention (9) &lt;! ATTLIST appnol

Field CDATA #FIXED &quot;APP_N0&quot;&gt; &lt;!ELEMENT itemno (#PCDATA)&gt; &lt; ! ATTL1ST i temnoField CDATA #FIXED &quot; APP_N0 &quot; &gt; &lt;! ELEMENT itemno (#PCDATA) &gt; &lt;! ATTL1ST itemno

Field CDATA #FIXED MITEM_N0&quot;&gt; &lt;!ELEMENT productid (#PCDATA)&gt; &lt;!ATTLIST productidField CDATA #FIXED MITEM_N0 &quot; &gt; &lt;! ELEMENT productid (#PCDATA) &gt; &lt;! ATTLIST productid

Field CDATA #FIXED nPRODUCT_IDH&gt; &lt;!ELEMENT spec (#PCDATA)&gt; &lt;!ATTLIST specField CDATA #FIXED nPRODUCT_IDH &gt; &lt;! ELEMENT spec (#PCDATA) &gt; &lt;! ATTLIST spec

Field CDATA #FIXED &quot;SPEC&quot;&gt; &lt;!ELEMENT a^qty (#PCDATA)&gt; &lt;!ATTLIST a一qtyField CDATA #FIXED &quot; SPEC &quot; &gt; &lt;! ELEMENT a ^ qty (#PCDATA) &gt; &lt;! ATTLIST a-qty

Field CDATA #FIXED &quot;A_QTY&quot;&gt; 據此,剖析模組22便可以將XML/EDI物件3内各標籤 (諸如:appno、s2、c2、ex2、sendername、senderaddr ' r ece i vername、receiveraddr 'appnol 'itemno ' productid、spec、aqty等等),根據文件型式定義模組24 之DTD分析出來。Field CDATA #FIXED &quot; A_QTY &quot; &gt; According to this, the parsing module 22 can add tags in XML / EDI object 3 (such as: appno, s2, c2, ex2, sendname, senderaddr 'r ece i vername, receiveraddr' appnol 'itemno' productid, spec, aqty, etc.), based on the DTD analysis of the module type definition module 24.

由於,本發明之XML/EDI資料自動轉換系統,期能在 不更動原有MIS系統6或7的前提之下,獲致EDI資料交換 目的。故EDI介面模組26内會先行定義出MIS系統6或7 、之 處理之ED I資料格式、屬性等等。因此,經過資料介面 444 1 7 6 五、發明說明(10) 組25便會根據ED I介面模組2 6之資料’將剖析模組2 2分析 後之物件,轉換成表格型式所屬之各欄位’例如:將訂單 物件轉換為訂單主項表格之語言結構即如下:Since the XML / EDI data automatic conversion system of the present invention can achieve the purpose of EDI data exchange without changing the original MIS system 6 or 7. Therefore, the EDI interface module 26 will first define the EDI data format, attributes, etc. processed by the MIS system 6 or 7. Therefore, after the data interface 444 1 7 6 V. Invention description (10) Group 25 will convert the objects analyzed by the analysis module 2 2 according to the data of the ED I interface module 2 6 into the columns of the table type. Bit 'For example: The language structure for converting an order object into an order master table is as follows:

Drop Table BAPUR07MDrop Table BAPUR07M

Create Table BAPUR07M ( /* 請購紀錄主檔木 / APP_N0 CHAR(8) NOT NULL,/木中請單編號 APP_DATE CHAR(IO) NULL, /*請購日期*/ REQ_DATE CHAR(IO) NULL, /* 需求日*/ 51 CHAR(12) NULL, /* 課長簽核 */Create Table BAPUR07M (/ * Requisition record master file / APP_N0 CHAR (8) NOT NULL, / Requisition order number APP_DATE CHAR (IO) NULL, / * Purchase date * / REQ_DATE CHAR (IO) NULL, / * Demand day * / 51 CHAR (12) NULL, / * Signed by the class leader * /

Cl CHAR(6) NULL, /*課長批示情況木/ EX1 CHAR(40) NULL, /*課長核准批示木/ 52 CHARC12) NULL, /* 經理簽核 */ C2 CHAR(6) NULL, /*經理批示情況木/ EX2 CHAR(40) NULL, /*經理核准批示木/ ASTATUS CHAR(IO) NULL,/* 請購狀態木/ SECT0R_ID CHAR(3) NULL,/*部 η 代碼*/ PERSON CHAR(5) NULL, /* 經辦人員木/ ADDR CHAR(50) NULL, /* 地址*/Cl CHAR (6) NULL, / * Lecturer's instructions / EX1 CHAR (40) NULL, / * Lecturer's approval instructions / 52 CHARC12) NULL, / * Manager's approval * / C2 CHAR (6) NULL, / * Manager Approval status wood / EX2 CHAR (40) NULL, / * Manager approves approval wood / ASTATUS CHAR (IO) NULL, / * Requisition status wood / SECT0R_ID CHAR (3) NULL, / * Department η code * / PERSON CHAR (5 ) NULL, / * clerk / ADDR CHAR (50) NULL, / * address * /

Primary Key Clustered ( APP_N0Primary Key Clustered (APP_N0

第13頁 ^ 44 ί 7 6Page 13 ^ 44 ί 7 6

將訂單物件轉換為訂單細項表格之語言結構即如下 五、發明說明(π)The language structure for converting an order item into an order detail table is as follows: 5. Description of the invention (π)

Drop Table BAPUR07DDrop Table BAPUR07D

Create Table BAPUR07D ( /* 請購紀錄明細樓 APP_N0 CHAR(8) NOT NULL,/* 申培| 迫妹 ITEM JO INT NOT NULL, /氺項次^ ) PRODUCT_ID CHAR(6) NULL,/* 物品代號木 / SPEC CHAR(8) NULL, 規格' A一QTY FLOAT NULL,/*請購數量木/ ODR CHAR(l) NULL defaiilt(’F,),/木訂構否&quot; CONTENT CHAR(60) NULL, /木内容木/Create Table BAPUR07D (/ * Purchase record details APP_N0 CHAR (8) NOT NULL, / * Shen Pei | Force Girl ITEM JO INT NOT NULL, / 氺 Item times ^) PRODUCT_ID CHAR (6) NULL, / * Item code wood / SPEC CHAR (8) NULL, specification 'A one QTY FLOAT NULL, / * repurchase quantity wood / ODR CHAR (l) NULL defaiilt (' F,), / wood order structure &quot; CONTENT CHAR (60) NULL, / Wood content wood /

Primary Key Clustered ( APP_N0,Primary Key Clustered (APP_N0,

ITEM—NO 然後’再將訂單主項表格與訂單細項表格儲存至關連 性資料庫5或4内。因此MIS系統6或7便可以至相 料庫5或4擷取EDI資料。 T應I貝 當EDI交換伺服器!或2欲送出XML/EDI物件3時崾 料庫介面模組25,自關連性資料庫5或4讀取相關之資料後ITEM—NO Then ’stores the order master form and order detail form in the relational database 5 or 4. Therefore, the MIS system 6 or 7 can go to the photo library 5 or 4 to retrieve EDI data. T should be used as an EDI exchange server! Or 2 when you want to send XML / EDI object 3 崾 library interface module 25, after reading related data from the relational database 5 or 4

444? 五、發明說明(12) 由XML產生模組23根據文件型式定義模組24之])td,產生 相對應具有XML語言格式之物件《然後,由傳送模組21將 XML/EDI物件3傳送出去。 因此,本發明之XML/EDI資料自動轉換系統,當EM交 換伺服器接收到X M L / E DI物件時,會自動將其轉換為£ d I資 料’而能在不更換原有MIS系統的前提之下,獲致傳送ed I 資料的目的。再者’傳送於ED I交換伺服器之間的xMl/EDI 物件’係自動且彈性的方式轉為XML之資料模式,可以有 效率地處理交換資訊,同時具備資料交換之選擇彈性。 第二實施例 請參照第3圖,所示為根據本發明之xrjl/EDI資料自動 轉換系統第二較佳實施例的方塊示意圖,本實施例與第一 實施例差異之處,在於:關連性資料庫5和4分別具有一 XML資料區塊40和50。本例中’若EDI交換伺服器1和2接收 或傳送XML/EDI物件3時’亦將所接收或傳送之XML/EDI物 件3亦儲存至XML資料區塊40和50内。 第三實施例 請參照第3圖,所示為根據本發明之XML/EDI資料自動 轉換系統第三較佳實施例的方塊示意圖。本實施例與第一 實施例差異之處,在於:關連性資料庫5和4分別具有一 XML資料區塊40和50、以及獨立資料區塊42和52。其中, 若EDI交換伺服器1和2接收或傳送XML/EDI物件3時,亦將 所接收或傳送之XML/EDI物件3儲存至XML資料區塊40和50 内。另外,經過剖析模組22處理後之表格物件,係儲存於444? V. Description of the invention (12) The XML generation module 23 defines the module 24 according to the file type]) td to generate the corresponding object with the XML language format. Then, the transmission module 21 converts the XML / EDI object 3 Send it out. Therefore, the XML / EDI data automatic conversion system of the present invention, when the EM exchange server receives the XML / EDI object, it will automatically convert it into £ d I data ', which can be used without replacing the original MIS system. The purpose of the transmission of ed I data was obtained. In addition, the “xMl / EDI objects transmitted between the EDI exchange servers” is automatically and flexibly converted to XML data mode, which can efficiently process the exchange information and has the flexibility of data exchange. The second embodiment, please refer to FIG. 3, which is a block diagram of a second preferred embodiment of an automatic conversion system of xrjl / EDI data according to the present invention. The difference between this embodiment and the first embodiment lies in the relationship The databases 5 and 4 have XML data blocks 40 and 50, respectively. In this example, 'if EDI exchange servers 1 and 2 receive or transmit XML / EDI object 3', the received / transmitted XML / EDI object 3 is also stored in XML data blocks 40 and 50. Third Embodiment Please refer to FIG. 3, which is a block diagram showing a third preferred embodiment of an XML / EDI data automatic conversion system according to the present invention. The difference between this embodiment and the first embodiment is that the relational databases 5 and 4 have an XML data block 40 and 50 and an independent data block 42 and 52, respectively. Among them, if the EDI exchange servers 1 and 2 receive or transmit the XML / EDI object 3, the received / transmitted XML / EDI object 3 is also stored in the XML data blocks 40 and 50. In addition, the form objects processed by the analysis module 22 are stored in

0213-4499TWF.ptd 第15頁 1 7 fi 五、發明說明(13) 獨立資料區塊42和52内,以與其他未經剖析模組22處理者 做一區別。 綜合上述’本發明之XML/ED I資料自動轉換系統之建 置與應用’可以在不更動原有MIS系統之前提下,藉由XML 物件傳遞獲致資料交換的目的。因此,可以採用資訊代理 來自動處理XML文件,並產生EDI資料交換訊息。如此一來 ’不但解決以往傳輸資料的複雜處理程序、高成本及受限 的資料交換標準等缺點,將EDI在網路上的應用向資料即 時更新及資料獨立的領域邁進了一大步。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明’任何熟習此技藝者,在不脫離本發明之精神 和範圍内’當可作更動與潤飾,因此本發明之保護範圍當 視後附之申請專利範圍所界定者為準。0213-4499TWF.ptd Page 15 1 7 fi 5. Description of the Invention (13) The independent data blocks 42 and 52 are distinguished from those of other unparsed module 22 processors. According to the above-mentioned "the construction and application of the XML / ED I data automatic conversion system of the present invention", the purpose of data exchange can be obtained by passing XML objects without changing the original MIS system. Therefore, information agents can be used to automatically process XML documents and generate EDI data exchange messages. As a result, it not only solves the shortcomings of complex processing procedures, high costs, and limited data exchange standards in the past, but also takes the application of EDI on the Internet into a real-time data update and data independence field. Although the present invention has been disclosed in the preferred embodiment as above, it is not intended to limit the present invention. 'Any person skilled in the art can make changes and retouches without departing from the spirit and scope of the present invention. The scope shall be determined by the scope of the attached patent application.

第16頁Page 16

Claims (1)

444176 六、申請專利範圍 1. 一種XML/EDI資料自動轉換系統,包括: 至少二交換伺服器,有XML/EDI物件傳遞於其間,每 一該EDI交換伺服器包括: 一接收模組,接收該XML/EDI物件; 一文件型式定義模組,具有一DTD資料;以及 一剖析模組,係根據該DTD資料對該XML/EDI物件進行 分析後,予以表格化處理後儲存至一資料庫中。 2 ·如申請專利範圍第}項所述之該系統,尚包括—資 料庫介面模組,負責該表格化處理。 3_如申請專利範圍第1項所述之該系統,其中,該資 料庫是一關聯性資料庫。 4.如申請專利範圍第3項所述之該系統,其中,該關 聯性資料庫具有一XML資料區塊,用以儲存該XML/EM物件 〇 5_如申請專利範圍第3項所述之該系統,其中,該關 聯性資料庫具有一獨立資料區塊,用以儲存該表格化資料 Q 6·如申請專利範圍第1項所述之該系統,尚包括: 一XML產生模組’自該資料庫擷取所所需iED][資料後 ’根據該DTD資料產生相對應之xml/EDI物件;以及 一傳送模组,將該相對應XML/EDI物件傳送出。 7_ —種XML/ED I資料自動轉換方法,適用於由至少二 交換伺服器間傳遞XML/EDI物件;該方法包括下列步驟: 該等交換伺服器中之一者接收該XML/EDI物件;444176 6. Scope of patent application 1. An XML / EDI data automatic conversion system, including: at least two exchange servers, with XML / EDI objects passed between them, each of the EDI exchange servers includes: a receiving module, which receives the XML / EDI object; a document type definition module with DTD data; and an analysis module that analyzes the XML / EDI object based on the DTD data, forms it into a database, and stores it in a database. 2 · The system as described in item} of the patent application scope, which still includes—a database interface module, responsible for the tabular processing. 3_ The system described in item 1 of the scope of patent application, wherein the database is a related database. 4. The system according to item 3 of the scope of patent application, wherein the correlation database has an XML data block for storing the XML / EM object. 05_As described in item 3 of the scope of patent application The system, wherein the relational database has an independent data block for storing the tabular data Q 6 · The system as described in item 1 of the scope of patent application, further comprising: an XML generation module 'from The database retrieves the required iED] [After the data ', the corresponding xml / EDI object is generated according to the DTD data; and a transmitting module transmits the corresponding XML / EDI object. 7_ — An XML / EDI data automatic conversion method suitable for passing XML / EDI objects between at least two exchange servers; the method includes the following steps: one of the exchange servers receives the XML / EDI objects; 44417S44417S 根據一DTD資料,對該xML/EDI物件進行剖析; 將該經剖析之XML/EDI物件予以表格化;°以及 儲存至一資料庫内。 8_如申請專利範圍第7項所述之該方法,其中,該資 料庫是一關聯性資料庫。 9·如申請專利範圍第8項所述之該方法,其中,該關 聯性資料庫具有一XML資料區塊,用以儲存該XML/EDI物件 10.如申請專利範圍第8項所述之該方法,其中,該關 聯性資料庫具有一獨立資料區塊,用以儲存該表格化資料 〇 11·如申請專利範圍第7項所述之該方法’尚包括: 自該資料庫擷取所所需之EDI資料後’根據該DTD資料 產生相對應之XML/EDI物件;以及 將該相對應XML/EDI物件傳送出°Analyze the xML / EDI object according to a DTD data; form the parsed XML / EDI object into a table; and store it in a database. 8_ The method as described in item 7 of the scope of patent application, wherein the database is a correlation database. 9. The method described in item 8 of the scope of patent application, wherein the correlation database has an XML data block for storing the XML / EDI object 10. The method described in item 8 of scope of patent application Method, wherein the relational database has an independent data block for storing the tabular data 〇11. The method described in item 7 of the scope of patent application 'still includes: retrieving from the database After the required EDI data ', generate a corresponding XML / EDI object based on the DTD data; and send the corresponding XML / EDI object out ° 第18頁Page 18
TW88110431A 1999-06-22 1999-06-22 System and method for automatic XML/EDI data transformation TW444176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW88110431A TW444176B (en) 1999-06-22 1999-06-22 System and method for automatic XML/EDI data transformation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW88110431A TW444176B (en) 1999-06-22 1999-06-22 System and method for automatic XML/EDI data transformation

Publications (1)

Publication Number Publication Date
TW444176B true TW444176B (en) 2001-07-01

Family

ID=21641219

Family Applications (1)

Application Number Title Priority Date Filing Date
TW88110431A TW444176B (en) 1999-06-22 1999-06-22 System and method for automatic XML/EDI data transformation

Country Status (1)

Country Link
TW (1) TW444176B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI513237B (en) * 2009-06-19 2015-12-11 Chunghwa Telecom Co Ltd Off - site network information exchange and multiple communication protocol transmission system and its method
CN111723141A (en) * 2020-06-23 2020-09-29 深圳新贝奥科技有限公司 EDI and XML data conversion method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI513237B (en) * 2009-06-19 2015-12-11 Chunghwa Telecom Co Ltd Off - site network information exchange and multiple communication protocol transmission system and its method
CN111723141A (en) * 2020-06-23 2020-09-29 深圳新贝奥科技有限公司 EDI and XML data conversion method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US7047488B2 (en) Registry driven interoperability and exchange of documents
US7840934B2 (en) Method and system for integrating workflow management systems with business-to-business interaction standards
US7587667B2 (en) Techniques for streaming validation-based XML processing directions
US7437471B2 (en) Intellectual asset protocol for defining data exchange rules and formats for universal intellectual asset documents, and systems, methods, and computer program products related to same
US8959196B2 (en) Registry for trading partners using documents for commerce in trading partner networks
Carlson Designing XML vocabularies with UML
US20080059577A1 (en) Scalable logical model for edi and system and method for creating, mapping and parsing edi messages
TW444176B (en) System and method for automatic XML/EDI data transformation
Huang et al. Developing an XML gateway for business-to-business commerce
Buxmann et al. XML-based supply chain management-as SIMPLEX as it is
Ghimire et al. Framework for inter-operative e-Procurement marketplace
Omelayenko et al. Mapping Technology for Enterprise Integration.
Zarli et al. A survey of internet-oriented technologies for document-driven applications in construction open dynamic virtual environments
Chun et al. Design and Implementation of an ebXML CPP/CPA Editor
Fuller Using XML in Conjunction with EDI
Nickull The ebXML Technical Architecture
Censoni et al. MODA-ML, a vertical framework for the Textile-Clothing sector based on XML and SOAP
Steger-Jensen et al. Review of B2B integration
Oberholzera et al. Applications for XML in the Automotive Supply Chain
Tompa et al. Introduction to XML. Presentation of a one-day course. Institute for Computer Research, University of Waterloo, July 11, 2001
Lim et al. Integrating XML schema language with databases for B2B collaborations
Karakostas et al. Standards for Web Services
Means Strategic XML
Lu et al. A ReScUE XML/EDI model
Harvey et al. The Role of XML in E-Business

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MM4A Annulment or lapse of patent due to non-payment of fees