TWI513237B - Off - site network information exchange and multiple communication protocol transmission system and its method - Google Patents

Off - site network information exchange and multiple communication protocol transmission system and its method Download PDF

Info

Publication number
TWI513237B
TWI513237B TW098120542A TW98120542A TWI513237B TW I513237 B TWI513237 B TW I513237B TW 098120542 A TW098120542 A TW 098120542A TW 98120542 A TW98120542 A TW 98120542A TW I513237 B TWI513237 B TW I513237B
Authority
TW
Taiwan
Prior art keywords
message
service
xml
value
key
Prior art date
Application number
TW098120542A
Other languages
Chinese (zh)
Other versions
TW201101753A (en
Original Assignee
Chunghwa Telecom 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 Chunghwa Telecom Co Ltd filed Critical Chunghwa Telecom Co Ltd
Priority to TW098120542A priority Critical patent/TWI513237B/en
Publication of TW201101753A publication Critical patent/TW201101753A/en
Application granted granted Critical
Publication of TWI513237B publication Critical patent/TWI513237B/en

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Description

異地網路資訊交換與多重通訊協定傳輸系統及其方法Off-site network information exchange and multiple communication protocol transmission system and method thereof

本發明係關於一種異地網路資訊交換與多重通訊協定傳輸系統及其方法,特別是關於一種採用客制通用XML訊息與訊息中介平台(Message Oriented Middleware),所建構之可交換異地網路訊息與傳輸不同通訊協定的方法。The present invention relates to an off-site network information exchange and multiple communication protocol transmission system and method thereof, and more particularly to a message exchanged off-site network message constructed by using a custom-purpose XML message and message mediation platform (Message Oriented Middleware). A method of transmitting different communication protocols.

目前習用之系統間功能介接,仍採用一對一接口的方式,所使用之協定均不盡相同,不同功能有著不同的介面規格,系統間的連接方式亦不相同。這種連結方法需耗費許多人力與時間來開發各系統之間的界接介面,且無法有效管理系統間的網路連接。N個系統便有著N個網路連線、M個功能便有著M個功能介接規格,整個複雜度是N*M。一旦系統越多時,複雜性越高,導致後續服務提供上的困難度,如圖一所示之傳統介接方式示意圖。此種方式,若要進行廣播,作一對多的傳輸,進行跨系統資訊整合服務,其困難度是相當高。At present, the functions of the systems used in the system are still connected by one-to-one interface. The protocols used are different. Different functions have different interface specifications, and the connection modes between systems are also different. This method of connection requires a lot of manpower and time to develop the interface between the systems, and can not effectively manage the network connection between systems. N systems have N network connections, M functions have M function interface specifications, and the whole complexity is N*M. Once the system is more, the higher the complexity, the difficulty in providing subsequent service provision, as shown in the traditional interface mode shown in Figure 1. In this way, if you want to broadcast, make one-to-many transmission, and carry out cross-system information integration services, the difficulty is quite high.

另習用系統間其介接介面,都為特定訊息,解譯與處理有一定的難度,新系統加入介接,需額外瞭解特定介面訊息。In addition, the interface between the different systems is a specific message, and the interpretation and processing are difficult. The new system is added to the interface, and additional interface information needs to be understood.

由此可見,上述習用方式仍有諸多缺失,實非一良善之方法,而亟待加以改善。It can be seen that there are still many shortcomings in the above-mentioned methods of use, which is not a good method, but needs to be improved.

本案發明人鑑於上述習用方式所衍生的各項缺點,乃亟思加以改良創新,並經多年苦心孤詣潛心研究後,終於成功研發完成本件異地網路資訊交換與多重通訊協定傳輸系統及其方法,將可改善上述相關缺點。In view of the shortcomings derived from the above-mentioned conventional methods, the inventors of the present invention have improved and innovated, and after years of painstaking research, they have successfully developed and completed this remote network information exchange and multiple communication protocol transmission system and its method. The above related disadvantages can be improved.

本發明之目的即在於提供一種異地網路資訊交換與多重通訊協定傳輸系統及其方法,係可解決系統間複雜的資訊交換,用來傳遞網路資訊與進行通訊協定溝通之用;其中XML訊息可任意客制化與擴充,在利用本傳輸系統,可用於系統間進行訊息交換、亦可利用各種XML設定參數,重起服務(如:Apache、FTP Server)、也可執行遠端指令(如:設定遠端系統時間),簡化了以往欲取得遠端系統資訊,或是控制遠端系統的複雜度。The object of the present invention is to provide an off-site network information exchange and multiple communication protocol transmission system and method thereof, which can solve complex information exchange between systems, and is used for transmitting network information and communication protocol communication; Can be customized and expanded. In this transmission system, it can be used for message exchange between systems. It can also use various XML to set parameters, restart services (such as Apache, FTP Server), and can also execute remote commands (such as : Set the remote system time), which simplifies the complexity of obtaining remote system information or controlling the remote system.

本發明之次一目的係在於提供一種異地網路資訊交換與多重通訊協定傳輸系統及其方法,係可透過訊息中介平台所提供的Bus特性,將N個系統網路連線簡化成只需一個網路連線至訊息中介平台;而透過通用XML訊息,將M個功能介面規格,簡化成一個客制通用XML訊息,其傳輸溝通可以是一對一與一對多(廣播)的方式,簡化以往實做的複雜度。The second object of the present invention is to provide an off-site network information exchange and multiple communication protocol transmission system and method thereof, which can simplify the N system network connections into only one by using the Bus feature provided by the message mediation platform. The network is connected to the message mediation platform; and through the common XML message, the M functional interface specifications are simplified into a custom general XML message, and the transmission communication can be one-to-one and one-to-many (broadcast), simplifying The complexity of doing it in the past.

本發明之另一目的係在於提供一種異地網路資訊交換與多重通訊協定傳輸系統及其方法,係藉由設計出之XML Schema,可方便擴充與解譯,介接系統只要取得XSD檔,即可進行處理,簡化了以往系統介面的解譯時間與複雜度。Another object of the present invention is to provide an off-site network information exchange and multiple communication protocol transmission system and method thereof, which can be easily expanded and interpreted by designing an XML Schema, and the interface system only needs to obtain an XSD file, that is, It can be processed to simplify the interpretation time and complexity of the previous system interface.

本發明之再一目的係在於提供一種異地網路資訊交換與多重通訊協定傳輸系統及其方法,主要是利用了XML的可擴充性與訊息中介平台的Bus特性等兩種技術,使用獨特之演算法與流程處理,設計出系統間溝通的一種傳輸方法。A further object of the present invention is to provide a remote network information exchange and multiple communication protocol transmission system and method thereof, which mainly utilizes two technologies of XML scalability and Bus characteristics of a message mediation platform, and uses a unique calculation algorithm. Law and process processing, design a transmission method for communication between systems.

可達成上述發明目的之異地網路資訊交換與多重通訊協定傳輸系統及其方法,係於兩異地網路資訊系統(如:服務需求端及服務提供端)間透過制訂了一個通用的XML交換訊息,與利用訊息中介平台(Message Oriented Middleware)、服務元件、訊息傳送元件及訊息接收元件等元件,建構一個可提供一對一、一對多的訊息的傳輸方法,其方法是將相關服務轉換成Message,進而透過訊息中介平台來進行底層XML訊息交換,以達到本傳輸方法之關鍵性功能。The remote network information exchange and multiple communication protocol transmission system and method thereof for achieving the above object are developed by using a common XML exchange message between two remote network information systems (eg, service demand side and service provider). And using a message mediation platform (Message Oriented Middleware), service components, messaging components, and message receiving components to construct a transmission method that provides one-to-one, one-to-many messages by converting related services into Message, and then through the message mediation platform for the underlying XML message exchange, to achieve the key functions of this transmission method.

請參閱圖二,為本發明異地網路資訊交換與多重通訊協定傳輸系統及其方法之應用架構示意圖,由圖中可知,係利用訊息中介平台(Message Oriented Middleware)2將兩異地網路資訊系統(例如:服務需求端及服務提供端)透過制訂了一個通用的XML交換訊息,以進行多重通訊協定之傳輸。Please refer to FIG. 2 , which is a schematic diagram of an application architecture of the remote network information exchange and multiple communication protocol transmission system and method thereof. The figure shows that the two different network information systems are used by Message Oriented Middleware 2 . (for example, the service demand side and the service provider) through the development of a common XML exchange message for the transmission of multiple communication protocols.

請參閱圖三,為本發明異地網路資訊交換與多重通訊協定傳輸系統及其方法之系統架構圖,由圖中可知,其中該異地網路資訊系統(例如:服務需求端及服務提供端)與訊息中介平台(Message Oriented Middleware)2間係透過服務元件201、訊息傳送元件202、訊息接收元件203等三個元件,來進行訊息之傳收;該服務元件201主要功能為進行各項服務需求的處理;訊息傳送元件202將服務元件201處理之各項服務需求,設定一對一或是廣播之訊息標籤,並利用訊息中介平台2所提供之發佈功能,將訊息傳送出去;訊息接收元件203利用訊息中介平台2所提供之訂閱功能,接收訊息,並依目的地判斷繼續處理,或是丟棄此訊息。Please refer to FIG. 3 , which is a system architecture diagram of the remote network information exchange and multiple communication protocol transmission system and method thereof according to the present invention. The remote network information system (eg, service demand terminal and service provider) is known from the figure. The message orientation platform (Message Oriented Middleware) 2 transmits and receives information through three components, such as the service component 201, the message transmission component 202, and the message receiving component 203. The service component 201 is mainly used for performing various service requirements. The message transmitting component 202 sets the service requirements processed by the service component 201, sets a one-to-one or broadcast message tag, and transmits the message by using the publishing function provided by the message mediation platform 2; the message receiving component 203 Use the subscription function provided by the message mediation platform 2 to receive the message and continue processing according to the destination, or discard the message.

請參閱圖四,為本發明之服務元件之功能模組示意圖,係由系統服務狀態功能模組301、讀取設定檔功能模組302、系統異地重起服務功能模組303、遠端執行SQL指令功能模組304、設定遠端系統時間功能模組305等五個功能模組組成,每個功能模組分為呼叫端與被呼叫端,主要由XML訊息屬性值來判斷,當是呼叫端時,其XML屬性是設定為MesaageType=”request”,若為被呼叫端回傳訊息時,則XML設定值為MessageType=”response”。各功能模組皆有其功能代碼,以作為其執行之判斷。其中系統服務狀態功能模組301,係利用所接收XML訊息之內容資訊來判斷服務埠是否正常,並將結果包成XML訊息,回傳至訊息中介平台。其實作部份可舉例如下:當呼叫端以XML傳來訊息,其屬性值為<CommandOverMQ FunctionType=”1”MessageType=”request”>,其中Please refer to FIG. 4 , which is a schematic diagram of a functional module of the service component of the present invention, which is a system service state function module 301 , a read profile function module 302 , a system remote restart service function module 303 , and a remote execution SQL. The function module 304 and the remote system time function module 305 are composed of five functional modules, and each functional module is divided into a calling terminal and a called terminal, which are mainly judged by the XML message attribute value, and are the calling end. When the XML attribute is set to MesaageType=”request”, if the message is returned by the called end, the XML setting value is MessageType=”response”. Each function module has its function code as its execution judgment. The system service status function module 301 determines whether the service is normal by using the content information of the received XML message, and packages the result into an XML message, and transmits the result to the message mediation platform. In fact, the example can be as follows: When the caller sends a message in XML, its attribute value is <CommandOverMQ FunctionType=”1” MessageType=”request”>, where

(a).FunctionType=”1”,表示執行系統服務狀態功能模組;(a).FunctionType=”1”, indicating the execution of the system service status function module;

(b).MessageType=”request”,表示這是一個請求訊息。(b).MessageType=”request”, indicating that this is a request message.

以下的訊息:The following message:

<valuelist><key>MSSQL</key><value>1433</value></valuelist>,表示需取得MSSQL的埠1433是否正常。在被呼叫端程式透過Socket連線至埠1433來進行判斷,若正常則回傳1,不正常則回傳0。回傳XML訊息時,因是執行結果,故XML屬性將設定MessageType=”response”。<valuelist><key>MSSQL</key><value>1433</value></valuelist>, indicating whether the 埠1433 of MSSQL is required to be normal. The called terminal program connects to the 埠1433 through the Socket to judge. If it is normal, it will return 1, and if it is not normal, it will return 0. When the XML message is returned, the XML attribute will set MessageType=”response” because of the execution result.

完整回傳訊息如下:The complete return message is as follows:

該讀取設定檔功能模組302,係主要將設定資訊統一存放於Global Server上,以簡化維運時的設定工作,並利用所接收XML訊息之內容資訊,至資料庫查詢設定內容,將結果包成XML訊息,回傳至訊息中介平台。其實作部份可舉例如下:當呼叫端以XML傳來訊息,其屬性值為<CommandOverMQ FunctionType=”2”MessageType=”request”>,其中The read profile function module 302 mainly stores the setting information on the Global Server, so as to simplify the setting work during the maintenance, and use the content information of the received XML message to query the data in the database to set the content. Packaged into an XML message and passed back to the message mediation platform. The actual part can be exemplified as follows: When the caller sends a message in XML, its attribute value is <CommandOverMQ FunctionType=”2”MessageType=”request”>, where

(a).FunctionType=”2”,表示執行讀取設定檔功能模組;(a).FunctionType=”2”, indicating that the function module for reading the profile is executed;

(b).MessageType=”request”,表示這是一個請求訊息。(b).MessageType=”request”, indicating that this is a request message.

當被需求端收到一個MessageType=”request”訊息,程式將利用<ID>TEST.C1.R.105.LAB</ID>,來查詢資料庫所存放的資訊,並並將結果key-value回傳,如system-Region=TL。When the request side receives a MessageType="request" message, the program will use <ID>TEST.C1.R.105.LAB</ID> to query the information stored in the database and the result key-value Return, such as system-Region=TL.

回傳訊息如下:The reply message is as follows:

該系統異地重起服務功能模組303,係將遠端系統的服務,進行重新啟動動作。其係利用所接收XML訊息之內容資訊,透過指令把所指定的服務進行重新啟動的動作,並將結果包成XML訊息,回傳至訊息中介平台。其實作部份可舉例如下:The system restarts the service function module 303 in an off-site manner, and restarts the service of the remote system. It uses the content information of the received XML message to restart the specified service through the instruction, and the result is packaged into an XML message and transmitted back to the message mediation platform. In fact, the examples can be as follows:

當呼叫端以XML傳來訊息,其屬性值為<CommandOverMQ FunctionType=”3”MessageType=”request”>,其中When the caller sends a message in XML, its attribute value is <CommandOverMQ FunctionType=”3”MessageType=”request”>, where

(a).FunctionType=”3”,表示執行系統服務狀態功能模組;(a).FunctionType=”3”, indicating the execution of the system service status function module;

(b).MessageType=”request”,表示這是一個請求訊息。(b).MessageType=”request”, indicating that this is a request message.

以下的訊息:The following message:

<ValueList><Key>restartWinApache</Key><Value>net stop apache;netstart apache</Value></ValueList>,表示需將Apache Server重起。而被呼叫端將透過程式,執行net stop apache與net start apache將Apache服務重起,並將結果回傳,若正常則回傳1,不正常則回傳0。回傳XML訊息時,因是執行結果,故XML屬性將設定MessageType=”response”。<ValueList><Key>restartWinApache</Key><Value>net stop apache;netstart apache</Value></ValueList>, indicating that Apache Server needs to be restarted. The called end will execute the net stop apache and net start apache to restart the Apache service through the program, and return the result. If it is normal, it will return 1 and if it is not normal, it will return 0. When the XML message is returned, the XML attribute will set MessageType=”response” because of the execution result.

回傳訊息如下:The reply message is as follows:

<CommandOverMQ FunctionType=”3”MessageType=”response”><valuelist><key>restartWinApache</key><value>1</value></valuelist>。<CommandOverMQ FunctionType=”3”MessageType=”response”><valuelist><key>restartWinApache</key><value>1</value></valuelist>.

該遠端執行SQL指令功能模組304,能將所想要執行的SQL指令送至遠端伺服器執行,並回傳結果。其係利用所接收XML訊息之內容資訊,透過資料庫執行SQL指令,並將結果包成XML訊息,回傳至訊息中介平台。其實作部份可舉例如下:The remote execution SQL command function module 304 can send the SQL command to be executed to the remote server for execution, and return the result. It uses the content information of the received XML message, executes the SQL command through the database, and packages the result into an XML message, which is transmitted back to the message mediation platform. In fact, the examples can be as follows:

當呼叫端以XML傳來訊息,其屬性值為<CommandOverMQ FunctionType=”4”MessageType=”request”>。When the caller sends a message in XML, its attribute value is <CommandOverMQ FunctionType=”4”MessageType=”request”>.

其中among them

(a).FunctionType=”4”,表示執行遠端執行SQL指令功能模組;(a).FunctionType=”4”, indicating that the remote execution of the SQL command function module is executed;

(b).MessageType=”request”表示這是一個請求訊息。(b).MessageType=”request” indicates that this is a request message.

以下的訊息:The following message:

<ValueList><Key>sqlScript</Key><Value>select f1,f2,f3 from tableName</Value></ValueList><ValueList><Key>sqlExecuteQueryID</Key><Value>12345612</Value></ValueList>,表示將”select f1,f2,f3 from tableName”的SQL資料庫查詢指令送至遠端資料庫查詢。sqlExecuteQueryID=12345612表示這次查詢的識別碼,以資識別用。而被呼叫端將透過程式連線至資料庫,執行select f1,f2,f3 from table查詢語法,並將查詢結果回傳。回傳XML訊息時,因是執行結果,故XML屬性將設定MessageType=”response”。<ValueList><Key>sqlScript</Key><Value>select f1,f2,f3 from tableName</Value></ValueList><ValueList><Key>sqlExecuteQueryID</Key><Value>12345612</Value>< /ValueList>, which means that the SQL database query command of "select f1, f2, f3 from tableName" is sent to the remote database query. sqlExecuteQueryID=12345612 indicates the identification code of this query for identification. The called end will connect to the database through the program, execute select f1, f2, f3 from table query syntax, and return the query result. When the XML message is returned, the XML attribute will set MessageType=”response” because of the execution result.

回傳訊息如下:The reply message is as follows:

該設定遠端系統時間功能模組305,係在某些應用領域時,利用此功能,可統一進行系統時間調整。其係利用所接收XML訊息之內容資訊,透過系統指令進行日期、時間設定工作,並將結果包成XML訊息,回傳至訊息中介平台。其實作部份可舉例如下:The remote system time function module 305 is set to use this function to perform system time adjustment in a unified manner in some application fields. It uses the content information of the received XML message, performs date and time setting work through system instructions, and packages the result into an XML message and transmits it back to the message mediation platform. In fact, the examples can be as follows:

當呼叫端以XML傳來訊息,其屬性值為<CommandOverMQ FunctionType=”5”MessageType=”request”>,其中When the caller sends a message in XML, its attribute value is <CommandOverMQ FunctionType=”5”MessageType=”request”>, where

(a).FunctionType=”5”,表示執行系統服務狀態功能模組;(a).FunctionType=”5”, indicating the execution of the system service status function module;

(b).MessageType=”request”,表示這是一個請求訊息。(b).MessageType=”request”, indicating that this is a request message.

而以下訊息:And the following message:

,表示將時間2008/10/17 08:30:32送至遠端系統進行設定。當被呼叫端收到此請求訊息,將透過程式執行時間設定,並將結果回傳,若正常則回傳1,不正常則回傳0。回傳XML訊息時,因是執行結果,故XML屬性將設定MessageType=”response”。, indicating that the time 2008/10/17 08:30:32 is sent to the remote system for setting. When the called party receives the request message, it will execute the time setting through the program and return the result. If it is normal, it will return 1 and if it is not, it will return 0. When the XML message is returned, the XML attribute will set MessageType=”response” because of the execution result.

回傳訊息如下:The reply message is as follows:

請參閱圖五,為本發明之訊息傳送/接收元件之訊息傳送/接收元件之訊息傳送/接收流程示意圖,其中訊息傳送元件202進行訊息傳輸作業,其步驟包含:Referring to FIG. 5, a schematic diagram of a message transmission/reception process of a message transmitting/receiving component of a message transmitting/receiving component according to the present invention, wherein the message transmitting component 202 performs a message transmission operation, and the steps thereof include:

(A) 將服務元件201處理後的訊息,設定Target來源與目的地,並決定是否廣播,若是單一訊息傳輸,設定目的地areaID,若是進行廣播傳送,設定目地areaID=*;(A) Set the target source and destination of the message processed by the service element 201, and decide whether to broadcast, if it is a single message transmission, set the destination area ID, and if it is for broadcast transmission, set the destination area ID=*;

(B) 再透過程式將物件轉換成XML訊息402;(B) converting the object into an XML message 402 through the program;

(C) 接下來傳送程式透過訊息中介平台所提供之發佈方式,將訊息傳送至訊息中介平台上403。而訊息接收元件203進行訊息接收作業,其步驟包含:(C) The delivery program then transmits the message to the message mediation platform 403 via the publishing method provided by the message mediation platform. The message receiving component 203 performs a message receiving operation, and the steps thereof include:

(a)透過訊息中介平台(MoM)訂閱功能404,將訊息接收下來;(a) receiving the message via the Message Intermediary Platform (MoM) subscription feature 404;

(b)再透過程式將XML訊息轉換成物件405;(b) converting the XML message into object 405 through the program;

(c)接下來判斷其Target目的地ID參數是否為*(廣播)或是等於本身的識別碼406(一對一)(c) Next, determine whether its Target destination ID parameter is * (broadcast) or its own identification code 406 (one to one)

(d)若是本身的識別碼,便將此訊息轉給服務元件201進行處理。若不是則忽略此訊息。藉由判斷Target ID便可達成廣播、一對一傳輸等功能之實現。(d) If it is its own identification code, the message is forwarded to the service element 201 for processing. If not, ignore this message. By determining the Target ID, it is possible to achieve the functions of broadcasting, one-to-one transmission and the like.

請參閱圖六,為本發明之通用型客制化XML之定義規格,藉以規範底層傳輸訊息。其定義之參數包含:Please refer to FIG. 6 , which is a definition specification of the general-purpose customized XML of the present invention, so as to standardize the underlying transmission message. The parameters defined by it include:

1.FunctionType 501,用來決定服務模組種類,例如:FunctionType=1,表示要使用系統服務狀態查詢301;FunctionType=2,表示是要使用讀取設定檔功能302;FunctionType=3,表示是要使用系統異地重起服務303;FunctionType=4,表示要遠端執行SQL指令功能304;FunctionType=5,表示是要使用設定原端系統時間服務305;1. FunctionType 501, used to determine the type of service module, for example: FunctionType=1, indicating that the system service status query 301 is to be used; FunctionType=2, indicating that the read profile function 302 is to be used; FunctionType=3, indicating that it is Use the system to restart the service 303; FunctionType=4, indicating that the SQL command function 304 is to be executed remotely; FunctionType=5, indicating that the set system time service 305 is to be used;

2.MessageType 502,決定訊息是請求或是結果,目前定義有request、response等兩種;2. MessageType 502, the decision message is a request or a result, currently defined by request, response, etc.;

3.Target 503,分成To 505與From 506,每個裡面有個ID 509與IP 510資訊。若是要廣播時,ID 509只需要填入”*”,若是一對一,只需填入特定系統ID 509,且ID 509需唯一;3. Target 503, divided into To 505 and From 506, each with an ID 509 and IP 510 information. If you want to broadcast, ID 509 only needs to fill in "*". If it is one-to-one, you only need to fill in the specific system ID 509, and ID 509 needs to be unique;

4.ValueList 504,分成Key 507與Value 508,填入想要傳遞的訊息,以Key-value這種方式存入,可進行不同的應用,包含請求訊息與回覆訊息。4. ValueList 504, divided into Key 507 and Value 508, fill in the message to be delivered, and store it in the form of Key-value, which can be used for different applications, including request message and reply message.

根據上述XML定義,本發明客制了5種傳輸XML訊息,分別為系統服務狀態XML訊息、讀取設定檔XML訊息、系統異地重起服務XML訊息、遠端執行SQL指令XML訊息及設定遠端系統時間XML等,其實作分別舉例如下:According to the above XML definition, the present invention customizes five kinds of transmission XML messages, namely, system service state XML message, read profile XML message, system remotely restart service XML message, remote execution SQL instruction XML message, and set remote end. The system time XML, etc., are actually as follows:

(1)系統服務狀態XML訊息實施例:設定FunctionType="1",表示使用系統服務狀態,然後設定呼叫端與被呼叫端資訊<Target><To><ID>TEST.C1.R.105.LAB</ID></To><From><ID>global</ID></From>,接下來設定<ValueList>屬性,將需要取的系統服務的名稱填入Key與埠(Port)填入value中,服務名稱與埠(Port)可任意擴充,其實施例訊息如下:(1) System Service Status XML Message Example: Set FunctionType="1" to indicate the use of system service status, and then set the caller and called information <Target><To><ID>TEST.C1.R.105. LAB</ID></To><From><ID>global</ID></From>, then set the <ValueList> attribute, fill in the name of the system service you need to fill in Key and Port. In the value, the service name and port can be expanded arbitrarily. The embodiment information is as follows:

回傳結果時,設定<ValueList/>屬性,將系統服務的名稱填入key,服務狀態以1表示正常,0表示異常,填入value中,設定如下:When returning the result, set the <ValueList/> attribute, fill in the name of the system service, the service status is normal with 1, 0 means abnormal, fill in the value, set as follows:

完整訊息如下:The complete message is as follows:

a.呼叫端訊息:a. Caller message:

b.回傳訊息:b. Return message:

(2)讀取設定檔XML訊息實施例:(2) Read the configuration file XML message embodiment:

設定FunctionType="2",表示使用讀取設定檔資訊,然後設定呼叫端與被呼叫端資訊<Target><To><ID>global</ID></To><From><ID>TEST.C1.R.105.LAB</ID></From></Target>,呼叫端無須設定<ValueList/>屬性,功能模組會從資料庫中找出<ID>TEST.C1.R.105.LAB</ID>所有相關設定資訊回傳,其回傳則需設定<ValueList/>屬性,這裡需將設定檔的Key填入Key中與設定檔的Value填入value中,數量可任意擴充,其設定如下:Set FunctionType="2" to use the read profile information, then set the caller and called information <Target><To><ID>global</ID></To><From><ID>TEST. C1.R.105.LAB</ID></From></Target>, the caller does not need to set the <ValueList/> attribute, the function module will find <ID>TEST.C1.R.105 from the database. .LAB</ID> All relevant setting information is returned. For the return, the <ValueList/> attribute needs to be set. Here, the Key of the configuration file needs to be filled in the Key and the Value of the configuration file is filled in the value, and the number can be expanded arbitrarily. , its settings are as follows:

完整訊息如下:The complete message is as follows:

a.呼叫端訊息:a. Caller message:

b.回傳訊息:b. Return message:

(3)系統異地重起服務XML訊息實施例:(3) The system restarts the service XML message in different places:

設定FunctionType="3",表示使用系統異地重起服務,然後設定呼叫端與被呼叫端資訊<Target><To><ID>TEST.C1.R.105.LAB</ID></To><From><ID>global</ID></From>,接下來設定ValueList>屬性,將需要執行指令的名稱填入Key與執行指令的內容填入value中,指令名稱與內容可任意擴充,其設定如下:<ValueList><Key>restartWinApache</Key><Value>net stop apache t;net start apache</Value></ValueList><ValueList><Key>restartLinApache</Key><Value>/etc/init.d/httpd restart</Value></ValueList>,回傳結果時,設定<ValueList/>屬性,將指令名稱填入key,執行結果以1表示正常,0表示異常,填入Value中,設定如下:<ValueList><Key>restartWinApache</Key><Value>1</Value></ValueLiSt><ValueList><Key>restartLinApac he</Key><Value>0</Value></ValueList>Set FunctionType="3" to use the system to restart the service offsite, and then set the caller and called information <Target><To><ID>TEST.C1.R.105.LAB</ID></To> <From><ID>global</ID></From>, then set the ValueList> attribute, fill in the name of the instruction and the content of the execution instruction into the value, and the name and content of the instruction can be expanded arbitrarily. Its settings are as follows: <ValueList><Key>restartWinApache</Key><Value>net stop apache t;net start apache</Value></ValueList><ValueList><Key>restartLinApache</Key><Value>/etc /init.d/httpd restart</Value></ValueList>, when returning the result, set the <ValueList/> attribute, fill in the instruction name with key, the execution result is normal with 1, 0 means abnormal, fill in Value , set as follows: <ValueList><Key>restartWinApache</Key><Value>1</Value></ValueLiSt><ValueList><Key>restartLinApac he</Key><Value>0</Value></ValueList >

完整訊息如下:The complete message is as follows:

a.呼叫端訊息:a. Caller message:

b.回傳訊息:b. Return message:

(4)遠端執行SQL指令XML訊息實施例:設定FunctionType="4",表示使用遠端執行SQL指令,首先設定呼叫端與被呼叫端資訊<Target><To><ID>TEST.C1.R.105.LAB</ID></To><From><ID>global</ID></From>,接下來ValueList>屬性,其設定如下:<ValueList><Key>sqlScript</Key><Value>select f1,f2,f3 from tableName</Value></ValueList><ValueList><Key>sqlExecuteQueryID</Key><Value>12345612</Value></ValueList>,表示將select f1,f2,f3 from tableName SQL指令送至遠端資料庫查詢。sqlExecuteQueryID=12345612表示這次查詢的識別碼,以資識別用。當被呼叫端執行,select f1,f2,f3 from tableName查詢語法,並將查詢結果回傳,如:<ValueList><Key>SqlExecuteQueryID</Key><Value>12345612</Value></ValueList><ValueList><Key>rowAmount</Key><Value>12</Value></ValueList><ValueList><Key>colName</Key><Value>f1^ f2^ f3</Value></ValueList><ValueList><Key>rowNum:1</Key><Value>r1^ r2^ r3</Value></ValueList><ValueList><Key>rowNum:2</Key><Value>r1^ r2^ r3</Value></ValueList>。其中sqlExecuteQueryID表示查詢識別碼,以資識別、rowAmount表示資料筆數、colName表示欄位名稱,以^ 區隔,方便解析用、rowNum:1表示第一筆資料、r1^ r2^ r3表示第一筆資料中的欄位值,以^ 區隔,方便解析用。(4) Remote execution of the SQL instruction XML message. Example: Setting FunctionType="4" means using the remote execution SQL command, first setting the caller and the called party information <Target><To><ID>TEST.C1. R.105.LAB</ID></To><From><ID>global</ID></From>, then the ValueList> property, which is set as follows: <ValueList><Key>sqlScript</Key><Value>select f1,f2,f3 from tableName</Value></ValueList><ValueList><Key>sqlExecuteQueryID</Key><Value>12345612</Value></ValueList>, indicating select f1,f2, F3 from tableName The SQL command is sent to the remote database for query. sqlExecuteQueryID=12345612 indicates the identification code of this query for identification. When executed by the calling end, select f1, f2, f3 from tableName query syntax, and return the query result, such as: <ValueList><Key>SqlExecuteQueryID</Key><Value>12345612</Value></ValueList><ValueList><Key>rowAmount</Key><Value>12</Value></ValueList><ValueList><Key>colName</Key><Value>f1 ^ f2 ^ f3</Value></ValueList><ValueList><Key>rowNum:1</Key><Value>r1 ^ r2 ^ r3</Value></ValueList><ValueList><Key>rowNum:2</Key><Value>r1 ^ r2 ^ r3</Value></ValueList>. SqlExecuteQueryID represents the query identification code, for identification, rowAmount represents the number of data, colName represents the field name, separated by ^ , convenient for parsing, rowNum: 1 indicates the first data, r1 ^ r2 ^ r3 indicates the first pen The field value in the data is separated by ^ , which is convenient for analysis.

完整訊息如下:The complete message is as follows:

a.呼叫端訊息:a. Caller message:

b.回傳訊息:b. Return message:

(5)設定遠端系統時間XML實施例:(5) Setting the remote system time XML embodiment:

設定FunctionType="5",表示使用設定遠端系統時間功能,首先設定呼叫端與被呼叫端資訊:Setting FunctionType="5" means using the set remote system time function, first setting the information of the calling end and the called end:

<Target><To><ID>TEST.C1.R.105.LAB</ID></To><From><ID>global</ID></From>,接下來設定<ValueList>屬性,這裡需填入需要校正時間的參數值,實施例:<ValueList><Key>date</Key><Value>2008/10/17</Value></ValueList><ValueList><Key>time</Key><Value>08:30:32</Value></ValueList>,表示將日期與時間2008/10/17 08:30:32送至遠端系統進行設定。回傳結果時,設定<ValueList/>屬性,將指令名稱填入key,執行結果以1表示正常,0表示異常,填入Value中,設定如下:<Target><To><ID>TEST.C1.R.105.LAB</ID></To><From><ID>global</ID></From>, then set the <ValueList> attribute. Here you need to fill in the parameter values that need to be corrected. Example: <ValueList><Key>date</Key><Value>2008/10/17</Value></ValueList><ValueList><Key>time</ Key><Value>08:30:32</Value></ValueList> means that the date and time 2008/10/17 08:30:32 are sent to the remote system for setting. When returning the result, set the <ValueList/> attribute, fill in the name of the instruction, the execution result is normal with 1, 0 means abnormal, fill in Value, set as follows:

<va1uelist><key>returnCode</key><value>1</value></valuelist>。<va1uelist><key>returnCode</key><value>1</value></valuelist>.

完整訊息如下:The complete message is as follows:

a.呼叫端訊息:a. Caller message:

b.回傳訊息:b. Return message:

請參閱圖七,以一個實施例說明本發明之流程圖。若是想知道所有系統其MSSQL資料庫服務是否正常,可利用廣播方式,將訊息發佈至訊息中介平台上,只要有連上訊息中介平台,均會回覆服務結果。請參考圖七,首先先設定FunctionType 601,將其值設定為1,表是要執行系統服務狀態查詢功能301。接下來設定MessageType 602,其值設為request,表示這是一個服務請求訊息。再來設定請求參數603,因為想知道MSSQL服務狀態,故設定其值為<valuelist><key>MSSQL</key><value>1433</value></valuelist>。再來設定Target 604,因為要取的所有伺服器其MSSQL的服務狀態,故其ID設為*,其完整設定為<Target><To><ID>*</ID></To><From><ID>globalServer</ID></From></Target>,其意義為表示從globalServer這部想要取得所有服務狀態。這時完整的XML訊息605如下:<CommandOverMQ FunctionType="1" MessageType="request"><Target><To><ID>*</ID></To><From><ID>globalServer</ID><Rrom></Target><ValueList><Key>MSSQL</Key><Value>1433</Value></ValueList></Comm andOver>。這時會透過訊息中介平台(MoM)606將此XML訊息604,發佈出去。Referring to Figure 7, a flow chart of the present invention will be described in one embodiment. If you want to know whether all the MSSQL database services of the system are normal, you can use the broadcast method to post the message to the message mediation platform. If there is a message intermediary platform, the service result will be answered. Referring to FIG. 7, first, the FunctionType 601 is set first, and its value is set to 1, and the table is to execute the system service status query function 301. Next, set MessageType 602, and its value is set to request, indicating that this is a service request message. The request parameter 603 is set again, because the MSSQL service state is known, so the value is set to <valuelist><key>MSSQL</key><value>1433</value></valuelist>. Then set Target 604, because all the servers to be taken have their MSSQL service status, so its ID is set to *, and its full setting is <Target><To><ID>*</ID></To><From ><ID>globalServer</ID></From></Target>, which means that you want to get all the service status from the globalServer. At this point the complete XML message 605 is as follows: <CommandOverMQ FunctionType="1" MessageType="request"><Target><To><ID>*</ID></To><From><ID>globalServer</ID> <Rrom></Target><ValueList><Key>MSSQL</Key><Value>1433</Value></ValueList></Comm andOver>. At this time, the XML message 604 is posted through the message brokering platform (MoM) 606.

而在其他伺服器上,訂閱訊息中介平台(MoM)607,會將請求訊息604接收下來,並判斷<Target><To><ID>*</ID></To>是否為*(表廣播),或是本身的識別號碼。若不是,將忽略不處理,若是,再判斷MessageType是否為"request",若不是,將忽略不處理。若是,那麼再取得FunctionType屬性值,本實施例是等於1,表示要呼叫系統服務狀態查詢功能301。這時程式讀取<ValueList><Key>MSSQL</Key><Value>1433</Value></ValueList>,得知埠為1433,然後利用Socket來連接至埠1433,若是正常連接,將結果填1,連接不上或是有例外情形產生,表不正常,將結果填0然後設定結果參數612如下:<ValueList><Key>MSSQL</Key><Value>1</Value></ValueList>。再來設定MessageType 613,因為是回傳訊息,故設定為"response"。設定FunctionType 614其值為1,係表系統服務狀態查詢功能301。再來設定<Target><To><ID>globalServer</ID></To><From><ID>Server1</ID></From></Target>,係表將伺服器(Server1)上的MSSQL服務狀態,回傳給globalServer。此時完整XML訊息是<CommandOverMQ FunctionType="0" MessageType="response"><Target><To><ID>globalServer</ID></To><From><ID>Server1</ID></From></Target><ValueLiSt><Key>MSSQL</Key><Value>1</Value></ValueList></CommandOver>然後透過訊息中介平台發佈訊息。On other servers, the subscription message brokering platform (MoM) 607 will receive the request message 604 and determine if <Target><To><ID>*</ID></To> is * (table broadcast) ), or its own identification number. If not, it will ignore the no processing. If it is, then judge whether the MessageType is "request". If not, it will ignore the no processing. If yes, then the FunctionType attribute value is obtained. This embodiment is equal to 1, indicating that the system service status query function 301 is to be called. At this time, the program reads <ValueList><Key>MSSQL</Key><Value>1433</Value></ValueList>, and learns that it is 1433, and then uses Socket to connect to 埠1433. If it is a normal connection, fill in the result. 1, the connection is not on or there is an exception, the table is not normal, fill the result with 0 and then set the result parameter 612 as follows: <ValueList><Key>MSSQL</Key><Value>1</Value></ValueList> . Then set MessageType 613, because it is a postback message, it is set to "response". The FunctionType 614 is set to have a value of 1, which is a system service status query function 301. Then set <Target><To><ID>globalServer</ID></To><From><ID>Server1</ID></From></Target>, which will be on the server (Server1). The MSSQL service status is passed back to the globalServer. At this point the full XML message is <CommandOverMQ FunctionType="0" MessageType="response"><Target><To><ID>globalServer</ID></To><From><ID>Server1</ID></ From></Target><ValueLiSt><Key>MSSQL</Key><Value>1</Value></ValueList></CommandOver> then posts the message through the messaging platform.

此時在伺服器(globalServer)因有從訊息中介平台訂閱訊息,收到訊息後,先行判斷<Target><To><ID>globalServer</ID></To>是否等於本身的識別號碼。若不是,將忽略不處理,若是,再判斷MessageType是否為"response",若不是,將忽略不處理,若是表示是回傳結果。此時只要收集所有回覆訊息,即可得知相關伺服器之服務狀態,依此實施例,<Target><To><ID>globalServer</ID></To><From><ID>Server1</ID></From></Target><ValueList><Key>MSSQL</Key><Value>1</Value></ValueList></Comman dOver>,表示伺服器(server1)上的MSSQL服務狀態是正常(值為1)。At this time, after the server (globalServer) subscribes to the message from the message mediation platform and receives the message, it first determines whether <Target><To><ID>globalServer</ID></To> is equal to its own identification number. If not, it will ignore the no processing. If yes, then judge whether the MessageType is "response". If not, it will ignore the no processing, if it is the return result. At this point, as long as all the reply messages are collected, the service status of the relevant server can be known. According to this embodiment, <Target><To><ID>globalServer</ID></To><From><ID>Server1< /ID></From></Target><ValueList><Key>MSSQL</Key><Value>1</Value></ValueList></Comman dOver>, indicating the MSSQL service on the server (server1) The status is normal (value is 1).

本發明所提供之異地網路資訊交換與多重通訊協定傳輸系統及其方法,與其他習用方法相互比較時,更具備下列優點:The remote network information exchange and multiple communication protocol transmission system and method provided by the invention have the following advantages when compared with other conventional methods:

1.本發明透過單一傳輸方法,簡化系統間連接之複雜度:每個系統只需一個連線至訊息中介平台上,即可交換各種訊息與呼叫不同功能服務,改善以往N個系統介接便須N個連線的缺點。1. The present invention simplifies the complexity of inter-system connection through a single transmission method: each system only needs one connection to the message intermediation platform, and can exchange various messages and call different functional services, improving the previous N system interfaces. The disadvantage of N connections.

2.本發明利用單一傳輸方法,達到異地網路溝通之目的:本發明之傳輸方法,透過一個通用XML定義,使得不同功能使用同一傳輸規格。改善以往M個功能有個M個傳輸規格的缺點。2. The present invention utilizes a single transmission method to achieve the purpose of remote network communication: the transmission method of the present invention uses a common XML definition to enable different functions to use the same transmission specification. Improve the shortcomings of the previous M functions with one M transmission specification.

3.本發明利用單一傳輸方法,可進行廣播/一對一訊息交換:透過訊息中介平台,即可進行一對一與廣播的傳輸方式,增加效能與改善以往實做的複雜度。3. The present invention utilizes a single transmission method to perform broadcast/one-to-one message exchange: through the message mediation platform, one-to-one and broadcast transmission modes can be performed, which increases the efficiency and improves the complexity of the previous implementation.

上列詳細說明係針對本發明之一可行實施例之具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。The detailed description of the preferred embodiments of the present invention is intended to be limited to the scope of the invention, and is not intended to limit the scope of the invention. The patent scope of this case.

綜上所述,本案不但在技術思想上確屬創新,並能較習用物品增進上述多項功效,應以充分符合新穎性及進步性之法定發明專利要件,爰依法提出申請,懇請 貴局核准本件發明專利申請案,以勵發明,至感德便。To sum up, this case is not only innovative in terms of technical thinking, but also able to enhance the above-mentioned multiple functions compared with conventional articles. It should be submitted in accordance with the law in accordance with the statutory invention patents that fully meet the novelty and progressiveness, and you are requested to approve this article. Invention patent application, in order to invent invention, to the sense of virtue.

1...介接擷取取資料系統1. . . Interface access data system

2...訊息中介平台(Message Oriented Middleware)2. . . Message Oriented Middleware

3...客制XML訊息格式3. . . Custom XML message format

201...服務元件201. . . Service component

202...訊息傳送元件202. . . Message transmission component

203...訊息接收元件203. . . Message receiving component

301...系統服務狀態功能模組301. . . System service status function module

302...讀取設定檔功能模組302. . . Read profile function module

303...系統異地重起服務功能模組303. . . System restarts service function module

304...遠端執行SQL指令功能模組304. . . Remote execution of SQL command function module

305...設定遠端系統時間功能模組305. . . Set the remote system time function module

401...設定Target來源與目的地,並決定是否廣播401. . . Set the Target source and destination and decide whether to broadcast

402...將程式物件轉換成通用XML訊息402. . . Convert a program object into a generic XML message

403...透過訊息中介平台(MoM)功能,將通用XML訊息發佈至MoM上403. . . Publish generic XML messages to MoM via Message Intermediary Platform (MoM)

404...透過訊息中介平台(MoM)功能,將MoM上的訊息訂閱下來404. . . Subscribe to messages on MoM via Message Intermediary Platform (MoM)

405...將XML訊息轉換成程式物件405. . . Convert XML messages into program objects

406...判斷Target目的地是否為等於本身識別碼或是*(表廣播)406. . . Determine whether the Target destination is equal to its own ID or * (table broadcast)

501...FunctionType(決定呼叫功能模組屬性值)501. . . FunctionType (determines the call function module attribute value)

502...MessageType(決定訊息是請求或是結果)502. . . MessageType (determines whether the message is a request or a result)

503...Target(表示來源與目的地)503. . . Target (represents source and destination)

504...ValueList(表示請求或是結果的訊息值)504. . . ValueList (represents the message value of the request or result)

505...To(表示目的地設定)505. . . To (indicating the destination setting)

506...From(表示來源設定)506. . . From (indicating source setting)

507...Key(客制化用之識別鍵)507. . . Key (identification key for customization)

508...Value(客制化用識別鍵之值)508. . . Value (the value of the identification key for customization)

509...ID(表示來源或是目的地之識別)509. . . ID (representing the identification of the source or destination)

510...IP(表示來源或是目的地之伺服器位址)510. . . IP (represents the source or destination server address)

601...設定FunctionType601. . . Set FunctionType

602...設定MessageType=”request”602. . . Set MessageType=”request”

603...設定請求參數(ValueList)603. . . Set request parameters (ValueList)

604...設定Target,決定來源與目的地604. . . Set Target to determine source and destination

605...請求端XML訊息605. . . Request side XML message

606...透過訊息中介平台(MoM)發佈方式,來傳送訊息606. . . Send messages via the message mediation platform (MoM)

607...透過訊息中介平台(MoM)訂閱方式,來接收訊息607. . . Receive messages via the Message Intermediary Platform (MoM) subscription

608...過濾Targer ID,只收取目的地是廣播與本身的訊息608. . . Filter the Targer ID, only the destination is the broadcast and its own message

609...判斷MessageType是否等於”request”609. . . Determine if MessageType is equal to "request"

610...依照functionType呼叫相對應的功能模組610. . . Call the corresponding function module according to functionType

611...功能模組處理請求訊息,並回傳結果611. . . The function module processes the request message and returns the result

612...將功能模組的結果,填入<valueList/>中612. . . Fill in the result of the function module into <valueList/>

613...設定MessageType=”response”613. . . Set MessageType=”response”

614...設定FunctionType614. . . Set FunctionType

615...設定Target,決定來源與目的615. . . Set Target to determine source and purpose

616...被呼叫端回傳XML訊息616. . . The called end returns the XML message

617...透過訊息中介平台(MoM)發佈方式,來傳送訊息617. . . Send messages via the message mediation platform (MoM)

618...透過訊息中介平台(MoM)訂閱方式,來接收訊息618. . . Receive messages via the Message Intermediary Platform (MoM) subscription

619...過濾Targer ID,只收取目的地是本身的訊息619. . . Filter the Targer ID and only charge the message whose destination is itself

620...判斷MessageType是否等於”response”620. . . Determine if MessageType is equal to "response"

621...呈現執行結果621. . . Presenting execution results

圖一為傳統介接方式示意圖;Figure 1 is a schematic diagram of a conventional interface;

圖二為本發明異地網路資訊交換與多重通訊協定傳輸系統及其方法之應用架構示意圖;2 is a schematic diagram of an application architecture of an alien network information exchange and multiple communication protocol transmission system and method thereof according to the present invention;

圖三為該異地網路資訊交換與多重通訊協定傳輸系統及其方法之系統架構圖;Figure 3 is a system architecture diagram of the remote network information exchange and multiple communication protocol transmission system and method thereof;

圖四為該異地網路資訊交換與多重通訊協定傳輸系統及其方法之服務元件之功能模組示意圖;FIG. 4 is a schematic diagram of functional modules of the service elements of the remote network information exchange and multiple communication protocol transmission system and method thereof;

圖五為該異地網路資訊交換與多重通訊協定傳輸系統及其方法之訊息傳送/接收元件之訊息傳送/接收流程示意圖;FIG. 5 is a schematic diagram of a message transmission/reception process of the message transmitting/receiving component of the remote network information exchange and multiple communication protocol transmission system and method thereof;

圖六為該異地網路資訊交換與多重通訊協定傳輸系統及其方法之通用型客制化XML之定義規格(Schema)示意圖;以及Figure 6 is a schematic diagram of a generalized custom XML definition of the remote network information exchange and multiple communication protocol transmission system and method thereof;

圖七為該異地網路資訊交換與多重通訊協定傳輸系統及其方法之完整流程圖。Figure 7 is a complete flow chart of the remote network information exchange and multiple communication protocol transmission system and method thereof.

1...介接擷取取資料系統1. . . Interface access data system

2...訊息中介平台(Message Oriented Middleware)2. . . Message Oriented Middleware

3...客制XML訊息格式3. . . Custom XML message format

Claims (11)

一種異地網路資訊交換與多重通訊協定傳輸系統,係包括:一訊息中介平台,係提供服務需求端及服務提供端以通用型客制化XML之定義規格進行底層傳輸訊息;一服務元件,處理服務需求端及服務提供端之各項服務需求;一訊息傳送元件,將服務元件處理之服務需求,設定一對一或是廣播之訊息標籤,並利用訊息中介平台所提供之發佈功能,將訊息傳送出去;一訊息接收元件,利用訊息中介平台所提供之訂閱功能,接收訊息,並依目的地判斷繼續處理,或是丟棄此訊息。An off-site network information exchange and multiple communication protocol transmission system includes: a message mediation platform, which provides a service request end and a service provider end to transmit information in a general-purpose customized XML definition specification; a service component, processing The service demand side and the service provider's various service requirements; a messaging component that sets the one-to-one or broadcast message tag to the service component processing service request, and uses the publishing function provided by the message mediation platform to send the message Transmitted; a message receiving component that uses the subscription function provided by the message brokering platform to receive the message and continue processing according to the destination, or discard the message. 如申請專利範圍第1項所述之異地網路資訊交換與多重通訊協定傳輸系統,其中該‧XML之定義規格所定義之參數可包含:(A)FunctionType,表示呼叫服務元件功能模組之屬性值;(B)MessageType,表示訊息之型態為請求或是結果;(C)Target,表示來源與目的地;(D)ValueList,表示請求或是結果的訊息值。For example, the remote network information exchange and multiple communication protocol transmission system described in claim 1 wherein the parameter defined by the definition specification of ‧ XML may include: (A) FunctionType, indicating the attribute of the call service component function module (B) MessageType, indicating the type of the message is the request or the result; (C) Target, indicating the source and destination; (D) ValueList, indicating the message value of the request or result. 如申請專利範圍第2項所述之異地網路資訊交換與多重通訊協定傳輸系統,其中該表示來源與目的地之參數可包含來源或目的地之識別值及來源或目的地之伺服器位址。For example, the remote network information exchange and multiple communication protocol transmission system described in claim 2, wherein the source and destination parameters may include the identification value of the source or destination and the server address of the source or destination. . 如申請專利範圍第2項所述之異地網路資訊交換與多重通訊協定傳輸系統,其中該請求或結果的訊息值,以Key-value的方式存入,其中Key表示識別鍵,value表示識別鍵之值。For example, the remote network information exchange and multiple communication protocol transmission system described in claim 2, wherein the message value of the request or result is stored in a key-value manner, wherein Key represents an identification key, and value represents an identification key. The value. 如申請專利範圍第1項所述之異地網路資訊交換與多重通訊協定傳輸系統,其中該服務元件包含:一系統服務狀態功能模組,可利用所接收XML訊息之內容資訊,判斷服務埠是否正常,並將結果包成XML訊息,回傳至訊息中介平台;一讀取設定檔功能模組,可利用所接收XML訊息之內容資訊,至資料庫查詢設定內容,並將結果包成XML訊息,回傳至訊息中介平台;一系統異地重起服務功能模組,可利用所接收XML訊息之內容資訊,透過指令把所指定的服務進行重新啟動的動作,並將結果包成XML訊息,回傳至訊息中介平台;一遠端執行SQL指令功能模組,可利用所接收XML訊息之內容資訊,透過資料庫執行SQL指令,並將結果包成XML訊息,回傳至訊息中介平台;一設定遠端系統時間功能模組,可利用所接收XML訊息之內容資訊,透過系統指令進行日期、時間設定工作,並將結果包成XML訊息,回傳至訊息中介平台。For example, the remote network information exchange and multiple communication protocol transmission system described in claim 1 wherein the service component comprises: a system service status function module, which can use the content information of the received XML message to determine whether the service is Normal, and the result is packaged into an XML message, which is sent back to the message mediation platform. A read profile function module can use the content information of the received XML message to query the database to set the content and package the result into an XML message. , back to the message mediation platform; a system to restart the service function module, can use the content information of the received XML message, restart the specified service through the instruction, and package the result into an XML message, back Passed to the message mediation platform; a remote execution SQL command function module can use the content information of the received XML message, execute the SQL command through the database, and package the result into an XML message, and then transmit it to the message mediation platform; The remote system time function module can use the content information of the received XML message to perform date and time setting work through system instructions, and The result is wrapped into an XML message and passed back to the message mediation platform. 如申請專利範圍第5項所述之異地網路資訊交換與多重通訊協定傳輸系統,其中該系統服務狀態功能模組所接收之XML訊息為系統服務狀態XML訊息,以取得其以key-value的形式所定義的服務埠的資訊。The remote network information exchange and multiple communication protocol transmission system described in claim 5, wherein the XML message received by the system service status function module is a system service status XML message to obtain a key-value thereof. Information about the services defined by the form. 如申請專利範圍第5項所述之異地網路資訊交換與多重通訊協定傳輸系統,其中該讀取設定檔功能模組所接收之XML訊息為讀取設定檔XML訊息,以讀取其以key-value的形式所定義的資訊底層傳遞之XML訊息。The remote network information exchange and multiple communication protocol transmission system described in claim 5, wherein the XML message received by the read profile function module is a read profile XML message to read the key The XML message passed by the underlying information defined by the -value form. 如申請專利範圍第5項所述之異地網路資訊交換與多重通訊協定傳輸系統,其中該系統異地重起服務功能模組所接收之XML訊息為系統異地重起服務XML訊息,以取得其以key-value的形式定義的系統異地重起服務功能其底層所傳遞之XML訊息。For example, the remote network information exchange and multiple communication protocol transmission system described in claim 5, wherein the system restarts the XML message received by the service function module to restart the service XML message for the system to obtain the The system defined by the form of key-value restarts the XML message passed by the underlying service function. 如申請專利範圍第5項所述之異地網路資訊交換與多重通訊協定傳輸系統,其中該遠端執行SQL指令功能模組所接收XML訊息為遠端執行SQL指令XML訊息,以取得其以key-value的形式定義的遠端執行SQL指令功能其底層所傳遞之XML訊息。For example, the remote network information exchange and multiple communication protocol transmission system described in claim 5, wherein the remote execution SQL command function module receives the XML message to remotely execute the SQL instruction XML message to obtain the key. The -value form defines the XML message passed by the underlying execution of the SQL instruction function. 如申請專利範圍第5項所述之異地網路資訊交換與多重通訊協定傳輸系統,其中該設定遠端系統時間功能模組所接收XML訊息為設定遠端系統時間XML訊息,以取得其以key-value的形式定義的設定遠端系統時間功能其底層所傳遞之XML訊息。For example, the remote network information exchange and the multiple communication protocol transmission system described in claim 5, wherein the remote system time function module receives the XML message to set the remote system time XML message to obtain the key. The -value form defines the XML message passed by the underlying system time function. 一種異地網路資訊交換與多重通訊協定傳輸方法,其步驟包含:(A)服務請求端之服務元件依服務請求設定其功能模組參數,包括:FunctionType、MessageType及ValueList;(B)服務請求端之訊息傳送元件將服務元件處理後的訊息,設定Target來源與目的地,並決定是否廣播;(C)服務請求端之訊息傳送元件再透過程式將步驟(B)之物件轉換成XML訊息,並透過訊息中介平台所提供之發佈方式,將訊息傳送至訊息中介平台上;(D)服務提供端之訊息接收元件透過訊息中介平台訂閱功能,接收訊息,再將XML訊息轉換成物件;(E)服務提供端之訊息接收元件接下來判斷步驟(D)物件之Target目的地ID參數是否為廣播或是一對一的識別碼,若是一對一的識別碼,便將此訊息轉給服務元件進行處理,否則忽略此訊息;(F)服務提供端之服務元件依FunctionType及MessageType參數執行相對應功能模組,以處理請求指令並回傳處理結果;(G)服務提供端之服務元件設定回傳結果之FunctionType、MessageType及ValueList等參數;(H)服務提供端之訊息傳送元件將服務元件處理後的訊息,設定Target來源與目的地,再將物件轉換成XML訊息,並透過訊息中介平台所提供之發佈方式,將訊息傳送至訊息中介平台上;(I)服務請求端之訊息接收元件透過訊息中介平台訂閱功能,接收訊息,再將XML訊息轉換成物件,接下來判斷物件之Target目的地ID參數是否為廣播或是一對一的識別碼,若是一對一的識別碼,便將此訊息轉給服務元件進行處理,否則忽略此訊息;(J)服務請求端之服務元件依MessageType判斷是否須處理,如須處理則呈現執行結果。A remote network information exchange and multiple communication protocol transmission method, the steps comprising: (A) the service component of the service requesting end sets its function module parameters according to the service request, including: FunctionType, MessageType and ValueList; (B) service requesting end The message transmitting component sets the message processed by the service component, sets the target source and destination, and determines whether to broadcast; (C) the message transmitting component of the service requesting end converts the object of step (B) into an XML message through the program, and Transmitting the message to the message mediation platform through the publishing method provided by the message mediation platform; (D) the message receiving component of the service provider receives the message through the message mediation platform, and then converts the XML message into an object; (E) The message receiving component of the service provider then determines whether the Target destination ID parameter of the step (D) object is a broadcast or a one-to-one identification code. If it is a one-to-one identification code, the message is forwarded to the service component. Processing, otherwise ignore this message; (F) the service provider's service component executes the corresponding function module according to the FunctionType and MessageType parameters To process the request instruction and return the processing result; (G) the service component of the service provider sets the parameters such as FunctionType, MessageType, and ValueList of the backhaul result; (H) the message that the message delivery component of the service provider processes the service component, Set the Target source and destination, then convert the object into an XML message, and send the message to the message mediation platform through the publishing method provided by the message mediation platform; (I) the message receiving component of the service requesting terminal subscribes through the message mediation platform Function, receive the message, then convert the XML message into an object, and then determine whether the Target destination ID parameter of the object is a broadcast or a one-to-one identification code. If it is a one-to-one identification code, then the message is forwarded to the service. The component is processed, otherwise the message is ignored; (J) the service component of the service requester determines whether it needs to be processed according to the MessageType, and if it needs to be processed, the execution result is presented.
TW098120542A 2009-06-19 2009-06-19 Off - site network information exchange and multiple communication protocol transmission system and its method TWI513237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098120542A TWI513237B (en) 2009-06-19 2009-06-19 Off - site network information exchange and multiple communication protocol transmission system and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098120542A TWI513237B (en) 2009-06-19 2009-06-19 Off - site network information exchange and multiple communication protocol transmission system and its method

Publications (2)

Publication Number Publication Date
TW201101753A TW201101753A (en) 2011-01-01
TWI513237B true TWI513237B (en) 2015-12-11

Family

ID=44837109

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098120542A TWI513237B (en) 2009-06-19 2009-06-19 Off - site network information exchange and multiple communication protocol transmission system and its method

Country Status (1)

Country Link
TW (1) TWI513237B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6195662B1 (en) * 1997-06-27 2001-02-27 Juxtacomm Technologies Inc. System for transforming and exchanging data between distributed heterogeneous computer systems
TW444176B (en) * 1999-06-22 2001-07-01 Inst Information Industry System and method for automatic XML/EDI data transformation
TW455780B (en) * 1997-08-22 2001-09-21 Intel Corp Method and apparatus for facilitating the management of networked devices
TWI274488B (en) * 2003-06-30 2007-02-21 Intel Corp System and method for describing network components and their associations
US7327756B2 (en) * 1997-12-30 2008-02-05 Iwork Software, Llc System and method of communicating data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6195662B1 (en) * 1997-06-27 2001-02-27 Juxtacomm Technologies Inc. System for transforming and exchanging data between distributed heterogeneous computer systems
TW455780B (en) * 1997-08-22 2001-09-21 Intel Corp Method and apparatus for facilitating the management of networked devices
US7327756B2 (en) * 1997-12-30 2008-02-05 Iwork Software, Llc System and method of communicating data
TW444176B (en) * 1999-06-22 2001-07-01 Inst Information Industry System and method for automatic XML/EDI data transformation
TWI274488B (en) * 2003-06-30 2007-02-21 Intel Corp System and method for describing network components and their associations

Also Published As

Publication number Publication date
TW201101753A (en) 2011-01-01

Similar Documents

Publication Publication Date Title
US11411897B2 (en) Communication method and communication apparatus for message queue telemetry transport
US20220070264A1 (en) System and method enabled devices enabled with syndicated data enhanced functionality
EP3259898B1 (en) Message bus service directory
US9998566B2 (en) Intelligent gateway with a common data format
CN103491135B (en) Device and method for conducting self-matching on data formats
CN104156798B (en) Enterprise authority source system data real time propelling movement method
CN112840691B (en) Apparatus and method for discovering collectable data and analyzing data in network
CN110933146A (en) Data conversion method and device and server
CN112243032B (en) Service calling method and system based on access gateway
EP3861706A2 (en) Framework for dynamic brokerage and management of topics and data at the service layer
WO2013063950A1 (en) Inspection method and system of multimode communication device
CN102520936A (en) Method for realizing sharing of Socket communication service on Android platform
WO2022141287A1 (en) Data management method and apparatus, data query method and apparatus, service mesh system, and computing device
CN101339520B (en) Method for accessing EJB into enterprise service bus
CN107798098A (en) A kind of method and device for realizing dynamic socket field
CN110020243A (en) Querying method, device, Internet of Things server and the storage medium of internet of things data
CN102833015A (en) Method for determining public software interface of satellite automatic testing system
TWI513237B (en) Off - site network information exchange and multiple communication protocol transmission system and its method
CN113469647A (en) Enterprise information integration system and business processing method
CN117453790A (en) Data exchange method and device based on cloud object storage, equipment and storage medium
WO2007022685A1 (en) Method for realizing the notification service, distributed web manage system and notification sending service device
CN104462235A (en) Internet of Things general event service mechanism based on Restful Web Service
CN101022351A (en) Method and device for automatic establishing small ringlet
KR20200098421A (en) Complex Event Processing method in M2M system and apparatus thereof
KR100945563B1 (en) System and Method for RFID Middleware Based on ALE Standard Specification

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees