JP2011221682A - Information processor - Google Patents

Information processor Download PDF

Info

Publication number
JP2011221682A
JP2011221682A JP2010088387A JP2010088387A JP2011221682A JP 2011221682 A JP2011221682 A JP 2011221682A JP 2010088387 A JP2010088387 A JP 2010088387A JP 2010088387 A JP2010088387 A JP 2010088387A JP 2011221682 A JP2011221682 A JP 2011221682A
Authority
JP
Japan
Prior art keywords
data
xml format
format data
record
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2010088387A
Other languages
Japanese (ja)
Inventor
Kentaro Toge
健太郎 峠
Hironori Togashi
宏規 富樫
Kaoru Takemae
薫 竹前
Kosuke Matsunaga
浩輔 松永
Keiichiro Oyama
恵一郎 大山
Masayuki Yoshida
正行 吉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2010088387A priority Critical patent/JP2011221682A/en
Publication of JP2011221682A publication Critical patent/JP2011221682A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To easily analyze an error factor by recording data whose failure has been generated or error information or the like according to various uploaded data formats when the equipment type of each terminal equipment or an loaded OS or the like is different.SOLUTION: This information processor is provided with: a reception part 21 for receiving XML format data; a determination part 22 for determining whether or not the XML format data are proper, and for determining whether or not the XML format data are transmittable; and a table storage part 23 for, when it is determined that the XML format data are not proper, or not transmittable, storing records specifying the XML format data in a log table 31a, and for storing records based on a master element in a record table 31b for every master element, and for storing records based on a slave element in an element table 31c for every slave element in association with the master element.

Description

本発明は、データを受信して所定のインターフェースを介して送信する情報処理装置に関する。   The present invention relates to an information processing apparatus that receives data and transmits it via a predetermined interface.

従来、複数のクライアントからアップロードされた情報をサーバーで受信し、受信した各情報を他のサーバーへ転送する情報処理装置がある。この情報処理装置では、他のサーバーへの転送が不具合等により実行できなかった場合、そのエラー情報を記録するようにしている。そして、エラーの要因を把握して対処した後、再度他のサーバーへ転送を実行するようにしている。例えば、特許文献1に記載されているゲートウエイサーバーでは、任意の端末装置からアップロードされたデータファイルを受信するとともに、データファイルの書式を変換して他のサーバーへ登録している。このとき、他のサーバーへの登録が実行できなかった場合、エラーログを生成するようにしている。   2. Description of the Related Art Conventionally, there is an information processing apparatus that receives information uploaded from a plurality of clients at a server and transfers each received information to another server. In this information processing apparatus, when the transfer to another server cannot be executed due to a malfunction or the like, the error information is recorded. Then, after grasping and dealing with the cause of the error, the transfer is executed again to another server. For example, the gateway server described in Patent Document 1 receives a data file uploaded from an arbitrary terminal device, converts the format of the data file, and registers it in another server. At this time, if registration to another server cannot be executed, an error log is generated.

特開2006−277586号公報JP 2006-277586 A

しかしながら、特許文献1に記載されているように、複数の端末装置からアップロードされた情報をサーバーで受信する場合、各端末装置の機器種類や搭載されているOS等が異なっていると、アップロードされるデータ様式も各端末装置で異なることになる。このため、他のサーバーへの転送が不具合等により実行できなかった場合、各種のデータ様式に合わせて、不具合が生じたデータやエラー情報等を記録する対応が必要になり、プログラムの開発コストや品質面において問題が生じる。   However, as described in Patent Document 1, when information uploaded from a plurality of terminal devices is received by a server, the information is uploaded if the device type of each terminal device or the installed OS is different. The data format to be used is different for each terminal device. For this reason, if transfer to another server could not be executed due to a problem, etc., it would be necessary to record the data in which the problem occurred, error information, etc. according to various data formats. Problems arise in terms of quality.

本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態又は適用例として実現することが可能である。   SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.

[適用例1]XML形式のデータを受信する受信部と、前記受信したXML形式のデータが適正であるか否かを判定するとともに、前記XML形式のデータに基づく送信データを所定のインターフェースを介して送信できるか否かを判定する判定部と、前記受信したXML形式のデータが適正でないと判定されたとき、又は前記送信データを送信できないと判定されたときに、前記受信したXML形式のデータを特定するレコードを第1のテーブルに格納するとともに、前記受信したXML形式のデータに含まれる親子関係にある要素について、親要素に基づくレコードを前記親要素毎に第2のテーブルに格納し、子要素に基づくレコードを前記親要素と対応付けて前記子要素毎に第3のテーブルに格納するテーブル格納部と、を有することを特徴とする情報処理装置。   Application Example 1 A receiving unit that receives data in XML format, and determines whether the received XML format data is appropriate, and transmits transmission data based on the XML format data via a predetermined interface. A determination unit that determines whether or not the received XML format data can be transmitted, and when the received XML format data is determined to be inappropriate or when it is determined that the transmission data cannot be transmitted, the received XML format data In the first table, a record based on the parent element is stored in the second table for each parent element with respect to the elements in the parent-child relationship included in the received XML format data. A table storage unit that stores a record based on a child element in a third table in association with the parent element for each child element; The information processing apparatus according to claim.

上記した情報処理装置によれば、受信したXML形式のデータに対して、判定部が、適正であるか否かを判定し、更に送信できるか否かを判定する。そして、XML形式のデータが適正でないか又は送信できないと判定されてエラーのときに、テーブル格納部が、XML形式のデータを特定するレコードを第1のテーブルに格納し、親要素に基づくレコードを親要素毎に第2のテーブルに格納し、子要素に基づくレコードを親要素と対応付けて子要素毎に第3のテーブルに格納する。
エラーの際、XML形式のデータの親要素に基づくレコードを親要素毎に格納し、子要素に基づくレコードを親要素と対応付けて子要素毎に格納する。これにより、データを送信する端末装置の機器種類や搭載されているOS等が異なっている場合でも、共通のプログラムを用いて、不具合が生じたデータやエラー情報等に対してデータ処理を行い、効率的にデータを参照して利用することができる。また、共通のプログラムを用いることにより、プログラム開発のコストを抑制して品質面を向上させることができる。
According to the information processing apparatus described above, the determination unit determines whether or not the received XML format data is appropriate, and determines whether or not transmission is possible. When it is determined that the XML format data is not appropriate or cannot be transmitted and an error occurs, the table storage unit stores a record specifying the XML format data in the first table, and records based on the parent element. Each parent element is stored in the second table, and a record based on the child element is associated with the parent element and stored in the third table for each child element.
When an error occurs, a record based on the parent element of the XML format data is stored for each parent element, and a record based on the child element is stored in association with the parent element for each child element. As a result, even when the device type of the terminal device that transmits data and the installed OS, etc. are different, the common program is used to perform data processing on the failed data, error information, etc. Data can be referenced and used efficiently. Moreover, by using a common program, the cost of program development can be suppressed and quality can be improved.

[適用例2]前記テーブル格納部は、前記判定部における判定結果の情報を前記第1のテーブルに格納することを特徴とする上記情報処理装置。   Application Example 2 The information processing apparatus, wherein the table storage unit stores information on a determination result in the determination unit in the first table.

上記した情報処理装置によれば、判定結果の情報を第1のテーブルに格納することにより、この判定結果の情報に基づいてエラーの要因を把握して対処することができる。   According to the information processing apparatus described above, by storing the determination result information in the first table, the cause of the error can be grasped and dealt with based on the determination result information.

[適用例3]前記テーブル格納部は、前記受信したXML形式のデータが適正であると判定され、且つ前記送信データを送信できると判定されたときについても、前記受信したXML形式のデータを特定するレコードを前記第1のテーブルに格納することを特徴とする上記情報処理装置。   Application Example 3 The table storage unit identifies the received XML format data even when the received XML format data is determined to be appropriate and the transmission data is determined to be transmitted. The information processing apparatus is characterized in that a record to be stored is stored in the first table.

上記した情報処理装置によれば、XML形式のデータが適正であり送信できると判定されたとき、XML形式のデータを特定するレコードを第1のテーブルに格納する。これにより、正常に送信できるXML形式のデータの履歴を残すことができる。   According to the information processing apparatus described above, when it is determined that the data in the XML format is appropriate and can be transmitted, the record specifying the data in the XML format is stored in the first table. As a result, a history of XML format data that can be normally transmitted can be left.

[適用例4]前記テーブル格納部は、前記受信したXML形式のデータを特定するレコードを、前記判定部における判定結果の情報毎に前記第1のテーブルに格納することを特徴とする上記情報処理装置。   Application Example 4 In the information processing, the table storage unit stores a record specifying the received data in the XML format in the first table for each piece of determination result information in the determination unit. apparatus.

上記した情報処理装置によれば、XML形式のデータを特定するレコードを判定結果の情報毎に第1のテーブルに格納することにより、エラーの要因が複数の場合に容易に要因を解析することができる。   According to the information processing apparatus described above, by storing a record specifying XML format data in the first table for each piece of determination result information, it is possible to easily analyze a factor when there are a plurality of error factors. it can.

本実施形態に係る情報処理システムの概略構成を示す図。The figure which shows schematic structure of the information processing system which concerns on this embodiment. アプリケーションサーバーにおける機能構成を示す図。The figure which shows the function structure in an application server. クライアントPCからアップロードされるXML形式のデータの例を示す図。The figure which shows the example of the data of the XML format uploaded from client PC. ログ情報を構成するログテーブルを示す表。A table showing a log table constituting log information. ログ情報を構成するレコードテーブルを示す表。A table showing a record table constituting log information. ログ情報を構成するエレメントテーブルを示す表。A table showing an element table constituting log information. アプリケーションサーバーに係る動作を示すフローチャート。The flowchart which shows the operation | movement which concerns on an application server. 変形例におけるXML形式のデータの例を示す図。The figure which shows the example of the data of the XML format in a modification.

以下、本実施形態に係る情報処理装置の例について、図面を参照して説明する。   Hereinafter, an example of the information processing apparatus according to the present embodiment will be described with reference to the drawings.

<情報処理システムの概略構成>
図1は、本実施形態に係る情報処理システムの概略構成を示す図である。同図に示すように、情報処理システム10は、ファイアーウォール(FW)11、情報処理装置としてのアプリケーションサーバー13、管理用データベースサーバー16、プロダクト用データベースサーバー18等を備えている。
<Schematic configuration of information processing system>
FIG. 1 is a diagram illustrating a schematic configuration of an information processing system according to the present embodiment. As shown in FIG. 1, the information processing system 10 includes a firewall (FW) 11, an application server 13 as an information processing apparatus, a management database server 16, a product database server 18, and the like.

また、情報処理システム10には、インターネット及びイントラネット等のネットワーク80を介して複数のクライアントPC50が接続されており、各クライアントPC50には各種デバイス51が接続されている。図1の例では、プロダクトA用,B用,C用の各クライアントPC50A,50B,50Cが接続されており、これらのクライアントPC50A,50B,50Cには、それぞれプリンター51A、プリンター51B及びスキャナー51Cが接続されている。各クライアントPC50は、それぞれに接続されているデバイス51の情報、例えば消耗品やトラブル等に関する情報を、XML形式のデータに変換してネットワーク80を介して情報処理システム10にアップロードすることができる。   A plurality of client PCs 50 are connected to the information processing system 10 via a network 80 such as the Internet and an intranet, and various devices 51 are connected to each client PC 50. In the example of FIG. 1, client PCs 50A, 50B, and 50C for product A, B, and C are connected, and a printer 51A, a printer 51B, and a scanner 51C are connected to these client PCs 50A, 50B, and 50C, respectively. It is connected. Each client PC 50 can convert information on the devices 51 connected thereto, for example, information on consumables and troubles, into XML format data and upload it to the information processing system 10 via the network 80.

情報処理システム10における各アプリケーションサーバー13は、ファイアーウォール11を介したDMZ(非武装地帯)12に配置されている。管理用データベースサーバー16は、管理用データベース17を備えて、ファイアーウォール11を介したSecure(セキュアゾーン)15に配置されている。また、プロダクト用データベースサーバー18は、プロダクトデータベース19を備えて、所定のインターフェースとしての情報バスB10に接続されている。図1の例では、プロダクトA用,B用,C用の各データベースサーバー18A,18B,18Cが接続されており、これらのデータベースサーバー18A,18B,18Cは、それぞれプロダクトデータベース19A,19B,19Cを備えている。上記のように、情報処理システム10は、ファイアーウォール11、DMZ12、Secure15により、セキュリティーが確保されるようになっている。   Each application server 13 in the information processing system 10 is arranged in a DMZ (demilitarized zone) 12 through a firewall 11. The management database server 16 includes a management database 17 and is disposed in a secure (secure zone) 15 via the firewall 11. The product database server 18 includes a product database 19 and is connected to an information bus B10 as a predetermined interface. In the example of FIG. 1, database servers 18A, 18B, and 18C for product A, B, and C are connected, and these database servers 18A, 18B, and 18C respectively connect product databases 19A, 19B, and 19C. I have. As described above, the information processing system 10 is secured by the firewall 11, DMZ 12, and Secure 15.

アプリケーションサーバー13は、各クライアントPC50からネットワーク80を介してアップロードされたXML形式のデータを受信する。そして、アップロードされたデータが適正か否かの判定、及び情報バスB10を介してプロダクト用データベースサーバー18へ送信できるか否かの判定を行い、判定結果の情報等を管理用データベースサーバー16へ送信する。また、アップロードされたXML形式のデータが適正であり、且つプロダクト用データベースサーバー18へ送信できると判定された場合は、アップロードされたデータに基づく送信データを、対応するプロダクト用データベースサーバー19へ送信する。   The application server 13 receives XML format data uploaded from each client PC 50 via the network 80. Then, it is determined whether the uploaded data is appropriate and whether it can be transmitted to the product database server 18 via the information bus B10, and information on the determination result is transmitted to the management database server 16. To do. If it is determined that the uploaded XML data is appropriate and can be transmitted to the product database server 18, transmission data based on the uploaded data is transmitted to the corresponding product database server 19. .

管理用データベースサーバー16は、アプリケーションサーバー13から送信された判定結果の情報等を受信して管理用データベース17に格納する。また、管理用データベース17に格納された各種データの読み出しや検索等を実行する。
プロダクト用データベースサーバー18は、アプリケーションサーバー13から送信された送信データを受信し、プロダクトデータベース19に格納する。また、プロダクトデータベース19に格納されたデータの読み出しや検索等を実行する。ここで、管理用データベース17及びプロダクトデータベース19として、例えばリレーショナルデータベースを用いることができる。また、各プロダクトデータベース19は、各種プロダクトの要件に合わせて構築されたデータベース構造となっている。
The management database server 16 receives the determination result information and the like transmitted from the application server 13 and stores them in the management database 17. In addition, various data stored in the management database 17 are read and searched.
The product database server 18 receives the transmission data transmitted from the application server 13 and stores it in the product database 19. Further, the data stored in the product database 19 is read and searched. Here, as the management database 17 and the product database 19, for example, a relational database can be used. Each product database 19 has a database structure constructed in accordance with the requirements of various products.

<アプリケーションサーバーの機能構成>
次に、アプリケーションサーバー13における機能構成について説明する。図2は、アプリケーションサーバー13における機能構成を示す図である。同図に示すように、アプリケーションサーバー13は、受信部21、判定部22、テーブル格納部23、プロダクトデータ格納部24等を備えている。また、アプリケーションサーバー13は、管理用データベースサーバー16を介して管理用データベース17にアクセスすることができ、各プロダクト用データベースサーバー18を介して各プロダクトデータベース19にアクセスすることができる。
<Functional configuration of application server>
Next, a functional configuration in the application server 13 will be described. FIG. 2 is a diagram illustrating a functional configuration in the application server 13. As shown in the figure, the application server 13 includes a reception unit 21, a determination unit 22, a table storage unit 23, a product data storage unit 24, and the like. The application server 13 can access the management database 17 via the management database server 16 and can access each product database 19 via each product database server 18.

受信部21は、各クライアントPC50からネットワーク80を介してアップロードされたXML形式のデータを受信する。図3は、クライアントPC50からアップロードされるXML形式のデータの例を示している。同図に示すXML形式のデータは、”Header”要素h110と”Body”要素b110の2つの部分に分かれている。最初の”Header”要素h110の部分は、クライアントPC50からアップロードされたデータについての識別であり、次の”Body”要素b110の部分は、クライアントPC50からアップロードされたデータ本体である。   The receiving unit 21 receives XML format data uploaded from each client PC 50 via the network 80. FIG. 3 shows an example of XML format data uploaded from the client PC 50. The XML format data shown in the figure is divided into two parts, a “Header” element h110 and a “Body” element b110. The first “Header” element h110 is an identification of data uploaded from the client PC 50, and the next “Body” element b110 is a data body uploaded from the client PC 50.

”Header”要素h110の部分に含まれる”ServiceCode”要素h111は、アップロードしたクライアントPC50のプロダクトの識別を示している。”AgentCode”要素h112は、クライアントPC50の識別を示している。”DeviceCode”要素h113は、クライアントPC50に接続しているデバイス51の識別を示している。”Date”要素h114及び”LocalDate”要素h115は、クライアントPC50からアップロードした時間を示している。
一方、”Body”要素b110の部分は、親要素となる”Record”要素b120,b130,b140,b150と、それぞれの子要素群b121,b131,b141,b151との親子関係にある要素で構成される。
なお、”Header”要素h110に含まれる”LocalDate”要素h115の下位置の要素名に示すように、クライアントPC50において、ユーザーID及びパスワードの入力や、オプションの選択を受け付け、これらの入力値をXML形式のデータに含めてアップデートするようにしても良い。
A “ServiceCode” element h111 included in the “Header” element h110 indicates the product identification of the uploaded client PC 50. The “AgentCode” element h112 indicates the identification of the client PC 50. The “DeviceCode” element h113 indicates the identification of the device 51 connected to the client PC 50. A “Date” element h <b> 114 and a “LocalDate” element h <b> 115 indicate times uploaded from the client PC 50.
On the other hand, the “Body” element b110 is composed of elements that are in a parent-child relationship between the “Record” elements b120, b130, b140, and b150 that are parent elements and the child element groups b121, b131, b141, and b151. The
As shown in the element name in the lower position of the “LocalDate” element h115 included in the “Header” element h110, the client PC 50 accepts input of a user ID and password and option selection, and these input values are converted into XML. The update may be included in the format data.

判定部22は、クライアントPC50からアップロードされて受信部21において受信したXML形式のデータを解析し、XML形式のデータが適正であるか否かを判定する。そして、XML形式のデータが適正であるときに、XML形式のデータ又は当該データを変換したデータが送信データとして情報バスB10を介してプロダクト用データベースサーバー18へ送信できるか否かを判定する。
ここで、XML形式のデータが適正でないと判定されるケースとして、例えば、”ServiceCode”要素h111、”AgentCode”要素h112、”DeviceCode”要素h113の各内容が該当しなかった場合、つまりXML形式のデータが示すプロダクトの識別、クライアントPC50の識別及びデバイス51の識別が、情報処理システム10にデータとして登録されていなかった場合があげられる。また、XMLのデータ記述に誤りがあった場合にも、XML形式のデータが適正でないと判定される。
次に、XML形式のデータ等が情報バスB10を介して送信できないケースとして、例えば、情報バスB10に異常が発生した場合や、送信先のプロダクト用データベースサーバー18がデータ格納できないと判断した場合等があげられる。
The determination unit 22 analyzes the XML format data uploaded from the client PC 50 and received by the reception unit 21, and determines whether or not the XML format data is appropriate. Then, when the data in the XML format is appropriate, it is determined whether the data in the XML format or the data converted from the data can be transmitted as transmission data to the product database server 18 via the information bus B10.
Here, as a case where it is determined that the data in the XML format is not appropriate, for example, when the contents of the “ServiceCode” element h111, the “AgentCode” element h112, and the “DeviceCode” element h113 do not correspond, that is, in the XML format There is a case where the identification of the product indicated by the data, the identification of the client PC 50 and the identification of the device 51 are not registered as data in the information processing system 10. Also, if there is an error in the XML data description, it is determined that the data in the XML format is not appropriate.
Next, as a case where XML format data or the like cannot be transmitted via the information bus B10, for example, when an abnormality occurs in the information bus B10, or when the destination product database server 18 determines that the data cannot be stored. Can be given.

テーブル格納部23は、判定部22における判定結果に基づいて、管理用データベースサーバー16を介して、各プロダクト用のログ情報31を管理用データベース17に格納する。なお、ログ情報31を構成するテーブル種類及びデータ内容は、判定部22における判定結果により異なっている。
判定部22においてXML形式のデータが適正でないと判定された、又は適正と判定されたときでも情報バスB10を介して送信できないと判定された場合、図2の管理用データベース17に示すように、ログ情報31は、第1のテーブルとしてのログテーブル31a、第2のテーブルとしてのレコードテーブル31b及び第3のテーブルとしてのエレメントテーブル31cにより構成される。
一方、判定部22においてXML形式のデータが適正であり、且つ情報バスB10を介して送信できると判定された場合は、ログ情報31は、ログテーブル31aのみによって構成される。
The table storage unit 23 stores the log information 31 for each product in the management database 17 via the management database server 16 based on the determination result in the determination unit 22. Note that the table types and data contents constituting the log information 31 differ depending on the determination result in the determination unit 22.
If the determination unit 22 determines that the XML format data is not appropriate or cannot be transmitted via the information bus B10 even when determined to be appropriate, as shown in the management database 17 of FIG. The log information 31 includes a log table 31a as a first table, a record table 31b as a second table, and an element table 31c as a third table.
On the other hand, when the determination unit 22 determines that the data in the XML format is appropriate and can be transmitted via the information bus B10, the log information 31 includes only the log table 31a.

図4〜図6は、エラー時におけるログ情報31を構成する各テーブルを示す表である。図4はログテーブル31a、図5はレコードテーブル31b、図6はエレメントテーブル31cを示している。各テーブルは、アップロード単位に、図3のXML形式のデータに基づいて生成されて格納される。   4 to 6 are tables showing each table constituting the log information 31 at the time of error. 4 shows the log table 31a, FIG. 5 shows the record table 31b, and FIG. 6 shows the element table 31c. Each table is generated and stored for each upload unit based on the XML format data shown in FIG.

図4に示すように、ログテーブル31aは、upload_id、log_message、service_code、agent_code、device_code及びupload_dateの項目により構成され、アップロード単位に1レコードが生成されて格納される。upload_idの項目は、アップロード単位に付番するログ情報31のIDがセットされる。log_messageの項目は、判定部22における判定結果の情報がセットされる。図4の例では、「Service code TEST_SERVICE is not found」のメッセージがセットされており、これはアップロードされた”ServiceCode”要素h111の内容が該当しないためにエラーであることを示している。service_code、agent_code、device_code及びupload_dateの項目は、それぞれ図3のXML形式のデータの”ServiceCode”要素h111、”AgentCode”要素h112、”DeviceCode”要素h113及び”Date”要素h114の内容がセットされる。
一方、判定部22においてXML形式のデータが適正であり、且つ情報バスB10を介して送信できると判定された場合は、図4に示すログテーブル31aのlog_messageに、正常に格納されたことを示すメッセージがセットされてログテーブル31aのみが格納される。つまり、レコードテーブル31b及びエレメントテーブル31cはいずれも格納されないことになる。
As shown in FIG. 4, the log table 31a includes items of upload_id, log_message, service_code, agent_code, device_code, and upload_date, and one record is generated and stored. In the item of upload_id, the ID of the log information 31 numbered in units of upload is set. In the log_message item, information of a determination result in the determination unit 22 is set. In the example of FIG. 4, the message “Service code TEST_SERVICE is not found” is set, which indicates an error because the content of the uploaded “ServiceCode” element h111 does not correspond. In the items of service_code, agent_code, device_code, and upload_date, the contents of the “ServiceCode” element h111, “AgentCode” element h112, “DeviceCode” element h113, and “Date” element h114 of the XML format data in FIG. 3 are set, respectively.
On the other hand, if the determination unit 22 determines that the data in the XML format is appropriate and can be transmitted via the information bus B10, it indicates that the data is normally stored in the log_message of the log table 31a shown in FIG. A message is set and only the log table 31a is stored. That is, neither the record table 31b nor the element table 31c is stored.

次に、図5に示すように、レコードテーブル31bは、upload_id、record_id、table_nameの項目により構成され、親要素毎にレコードが生成されて格納される。upload_idの項目は、ログテーブル31aのupload_idがセットされ、レコードテーブル31bとログテーブル31aの対応付けが行われる。record_idの項目は、各親要素への付番がセットされる。table_nameの項目は、図3において各親要素となる”Record”要素b120,b130,b140,b150の各内容がセットされる。   Next, as shown in FIG. 5, the record table 31b is composed of items of upload_id, record_id, and table_name, and a record is generated and stored for each parent element. In the item of upload_id, the upload_id of the log table 31a is set, and the record table 31b and the log table 31a are associated with each other. In the record_id item, a number assigned to each parent element is set. In the table_name item, the contents of “Record” elements b120, b130, b140, and b150 which are the parent elements in FIG. 3 are set.

次に、図6に示すように、エレメントテーブル31cは、upload_id、record_id、element_id、column_name、valueの項目により構成され、子要素毎にレコードが生成されて格納される。upload_id及びrecord_idは、ログテーブル31aのupload_id及びレコードテーブル31bのrecord_idがセットされ、エレメントテーブル31cにおける子要素とレコードテーブル31bにおける親要素との親子関係の対応付けが行われる。element_idの項目は、各親要素に属している各子要素への付番がセットされる。column_name及びvalueの項目は、図3の子要素群b121,b131,b141,b151における各子要素の要素名及び内容がセットされる。   Next, as shown in FIG. 6, the element table 31c is composed of items of upload_id, record_id, element_id, column_name, and value, and a record is generated and stored for each child element. The upload_id and record_id are set with the upload_id of the log table 31a and the record_id of the record table 31b, and the parent-child relationship between the child element in the element table 31c and the parent element in the record table 31b is associated. In the element_id item, a number assigned to each child element belonging to each parent element is set. In the column_name and value items, the element names and contents of the child elements in the child element groups b121, b131, b141, and b151 in FIG. 3 are set.

プロダクトデータ格納部24は、判定部22においてXML形式のデータが適正であり、且つ情報バスB10を介して送信できると判定された場合に、クライアントPC50からアップロードされたXML形式のデータ又は当該データを変換したデータとなる送信データを、該当するプロダクト用データベースサーバー18へ送信して、図2に示すプロダクトデータベース19にプロダクトデータ41として格納する。   When the determination unit 22 determines that the XML format data is appropriate and can be transmitted via the information bus B10, the product data storage unit 24 stores the XML format data uploaded from the client PC 50 or the data. The transmission data to be converted data is transmitted to the corresponding product database server 18 and stored as product data 41 in the product database 19 shown in FIG.

次に、アプリケーションサーバー13に係る動作について説明する。
図7は、アプリケーションサーバー13に係る動作を示すフローチャートである。
Next, operations related to the application server 13 will be described.
FIG. 7 is a flowchart showing an operation related to the application server 13.

先ず、クライアントPC50は、ネットワーク80を介してXML形式のデータを情報処理システム10へアップロードする(ステップS110)。そして、情報処理システム10においてアプリケーションサーバー13は、受信部21により、クライアントPC50からアップロードされたXML形式のデータを受信する(ステップS120)。   First, the client PC 50 uploads XML format data to the information processing system 10 via the network 80 (step S110). Then, in the information processing system 10, the application server 13 receives the XML format data uploaded from the client PC 50 by the receiving unit 21 (step S120).

次に、アプリケーションサーバー13は、判定部22により、ステップS120において受信したXML形式のデータを解析してXML形式のデータが適正であるか否かを判定し、更に情報バスB10を介してプロダクト用データベースサーバー18へ送信できるか否かを判定する(ステップS130)。   Next, the application server 13 uses the determination unit 22 to analyze the XML format data received in step S120 to determine whether the XML format data is appropriate, and further, for the product via the information bus B10. It is determined whether or not transmission to the database server 18 is possible (step S130).

XML形式のデータが適正であり、且つプロダクト用データベースサーバー18へ送信できると判定された場合(ステップS130:Yes)は、テーブル格納部23により、正常に格納されたことを示すログテーブル31aを管理用データベース17に格納する(ステップS140)。そして、プロダクトデータ格納部24により、ステップS120において受信したXML形式のデータ又は当該データを変換したデータとなる送信データをプロダクトデータベース19に格納し(ステップS150)、図7のフローチャートの動作を終了する。   When it is determined that the XML format data is appropriate and can be transmitted to the product database server 18 (step S130: Yes), the table storage unit 23 manages the log table 31a indicating that the data has been stored normally. (Step S140). Then, the product data storage unit 24 stores the data in the XML format received in step S120 or the transmission data that is converted from the data in the product database 19 (step S150), and the operation of the flowchart of FIG. .

他方、ステップS130においてXML形式のデータが適正でない、又はプロダクト用データベースサーバー18へ送信できないと判定された場合(ステップS130:No)は、アプリケーションサーバー13は、テーブル格納部23により、エラーであることを示すログテーブル31aを管理用データベース17に格納する(ステップS160)。そして、管理用データベース17に親要素で構成されるレコードテーブル31bを格納し(ステップS170)、続けて子要素で構成されるエレメントテーブル31cを格納して(ステップS180)、図7のフローチャートの動作を終了する。   On the other hand, when it is determined in step S130 that the data in the XML format is not appropriate or cannot be transmitted to the product database server 18 (step S130: No), the application server 13 is in error by the table storage unit 23. Is stored in the management database 17 (step S160). Then, a record table 31b composed of parent elements is stored in the management database 17 (step S170), and subsequently an element table 31c composed of child elements is stored (step S180), and the operation of the flowchart of FIG. Exit.

上述した実施形態では、各クライアントPC50からアップロードされたXML形式のデータを受信してエラーの判定を行い、エラーの際には、管理用データベース17にログテーブル31a、レコードテーブル31b及びエレメントテーブル31cにより構成されるログ情報31を格納する。このとき、レコードテーブル31bは親要素毎にレコードが格納され、エレメントテーブル31cは子要素毎にレコードが格納されて、それぞれの親子関係の対応付けが行われる。これにより、各クライアントPC50の機器種類や搭載されているOS等が異なっている場合でも、エラーの際に、各クライアントPC50に共通のプログラムでログ情報31を生成して格納することができる。また、受信したXML形式のデータの階層構造や要素数が様々の形式であっても、親子関係の対応付けが行われたレコードテーブル31b及びエレメントテーブル31cを用いて統一様式で格納することができ、エラー要因の解析やエラーデータの復旧等に対して効率的に対応することができる。   In the above-described embodiment, XML format data uploaded from each client PC 50 is received and an error is determined, and in the event of an error, the log database 31a, the record table 31b, and the element table 31c are stored in the management database 17. The log information 31 to be configured is stored. At this time, the record table 31b stores a record for each parent element, and the element table 31c stores a record for each child element, and the parent-child relationship is associated with each other. As a result, even if the device type of each client PC 50, the installed OS, etc. are different, the log information 31 can be generated and stored by a program common to each client PC 50 in the event of an error. Moreover, even if the received XML format data has various hierarchical structures and the number of elements, it can be stored in a unified format using the record table 31b and the element table 31c in which the parent-child relationship is associated. Thus, it is possible to efficiently cope with error factor analysis and error data recovery.

(変形例1)
上述した実施形態では、各クライアントPC50から図3に示すようなXML形式のデータを受信している。しかし、各クライアントPC50において、このXML形式のデータに対して、図8に示すように暗号化やデジタル署名等の対応を行っても良い。この場合、判定部22においてXML形式のデータの署名内容が認証されなかった場合、XML形式のデータが適正でないと判定される。
(Modification 1)
In the above-described embodiment, XML format data as shown in FIG. 3 is received from each client PC 50. However, in each client PC 50, the XML format data may be dealt with by encryption or digital signature as shown in FIG. In this case, if the signature content of the XML format data is not authenticated by the determination unit 22, it is determined that the XML format data is not appropriate.

(変形例2)
上述した実施形態では、ログ情報31を構成するログテーブル31aについて、アップロード単位に1レコードが生成されて格納されている。しかし、判定部22においてエラーの要因が複数生じた場合、これらのエラー要因毎にレコードを生成してログテーブル31aに格納するようにしても良い。エラー要因毎にレコードが生成されることにより、例えば、各エラー要因のそれぞれについて対処したり、各エラー要因をソートして分析したりすることができる。
(Modification 2)
In the above-described embodiment, one record is generated and stored for each upload unit of the log table 31a constituting the log information 31. However, when a plurality of error factors occur in the determination unit 22, a record may be generated for each of these error factors and stored in the log table 31a. By generating a record for each error factor, for example, each error factor can be dealt with, or each error factor can be sorted and analyzed.

10…情報処理システム、11…ファイアーウォール、12…DMZ、13…アプリケーションサーバー、15…Secure、16…管理用データベースサーバー、17…管理用データベース、18…プロダクト用データベースサーバー、19…プロダクトデータベース、21…受信部、22…判定部、23…テーブル格納部、24…プロダクトデータ格納部、31…ログ情報、31a…ログテーブル、31b…レコードテーブル、31c…エレメントテーブル、41…プロダクトデータ、50…クライアントPC、51…デバイス、80…ネットワーク、B10…情報バス。   DESCRIPTION OF SYMBOLS 10 ... Information processing system, 11 ... Firewall, 12 ... DMZ, 13 ... Application server, 15 ... Secure, 16 ... Management database server, 17 ... Management database, 18 ... Product database server, 19 ... Product database, 21 ... Receiving unit, 22 ... Determining unit, 23 ... Table storage unit, 24 ... Product data storage unit, 31 ... Log information, 31a ... Log table, 31b ... Record table, 31c ... Element table, 41 ... Product data, 50 ... Client PC, 51 ... device, 80 ... network, B10 ... information bus.

Claims (4)

XML形式のデータを受信する受信部と、
前記受信したXML形式のデータが適正であるか否かを判定するとともに、前記XML形式のデータに基づく送信データを所定のインターフェースを介して送信できるか否かを判定する判定部と、
前記受信したXML形式のデータが適正でないと判定されたとき、又は前記送信データを送信できないと判定されたときに、
前記受信したXML形式のデータを特定するレコードを第1のテーブルに格納するとともに、前記受信したXML形式のデータに含まれる親子関係にある要素について、親要素に基づくレコードを前記親要素毎に第2のテーブルに格納し、子要素に基づくレコードを前記親要素と対応付けて前記子要素毎に第3のテーブルに格納するテーブル格納部と、を有することを特徴とする情報処理装置。
A receiving unit for receiving data in XML format;
A determination unit that determines whether or not the received XML format data is appropriate and determines whether or not transmission data based on the XML format data can be transmitted via a predetermined interface;
When it is determined that the received XML format data is not appropriate, or when it is determined that the transmission data cannot be transmitted,
A record for specifying the received XML format data is stored in the first table, and a record based on a parent element is stored for each parent element in the parent-child relationship included in the received XML format data. And a table storage unit that stores a record based on a child element in a third table in association with the parent element and stores the child element in a third table.
前記テーブル格納部は、前記判定部における判定結果の情報を前記第1のテーブルに格納することを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the table storage unit stores information on a determination result in the determination unit in the first table. 前記テーブル格納部は、前記受信したXML形式のデータが適正であると判定され、且つ前記送信データを送信できると判定されたときについても、前記受信したXML形式のデータを特定するレコードを前記第1のテーブルに格納することを特徴とする請求項2に記載の情報処理装置。   The table storage unit also stores a record that specifies the received XML format data even when it is determined that the received XML format data is appropriate and the transmission data can be transmitted. The information processing apparatus according to claim 2, wherein the information processing apparatus is stored in one table. 前記テーブル格納部は、前記受信したXML形式のデータを特定するレコードを、前記判定部における判定結果の情報毎に前記第1のテーブルに格納することを特徴とする請求項2又は3に記載の情報処理装置。   The said table storage part stores the record which specifies the said data of the received XML format in a said 1st table for every information of the determination result in the said determination part, The Claim 2 or 3 characterized by the above-mentioned. Information processing device.
JP2010088387A 2010-04-07 2010-04-07 Information processor Withdrawn JP2011221682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010088387A JP2011221682A (en) 2010-04-07 2010-04-07 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010088387A JP2011221682A (en) 2010-04-07 2010-04-07 Information processor

Publications (1)

Publication Number Publication Date
JP2011221682A true JP2011221682A (en) 2011-11-04

Family

ID=45038617

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010088387A Withdrawn JP2011221682A (en) 2010-04-07 2010-04-07 Information processor

Country Status (1)

Country Link
JP (1) JP2011221682A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004126804A (en) * 2002-09-30 2004-04-22 Just Syst Corp Document managing method and device
JP2004178084A (en) * 2002-11-25 2004-06-24 Systems Engineering Constructions Co Ltd Method, device and program for storing xml data, and recording medium with program recorded thereon
JP2004192170A (en) * 2002-12-10 2004-07-08 Hitachi Ltd Access relay device
JP2006133846A (en) * 2004-11-02 2006-05-25 Hitachi Ltd Data transfer method and proxy server
JP2006172313A (en) * 2004-12-17 2006-06-29 Fuji Electric Systems Co Ltd Data check management method and program
JP2006277586A (en) * 2005-03-30 2006-10-12 Daiwa Securities Group Inc Data file registration system, gateway server and middleware program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004126804A (en) * 2002-09-30 2004-04-22 Just Syst Corp Document managing method and device
JP2004178084A (en) * 2002-11-25 2004-06-24 Systems Engineering Constructions Co Ltd Method, device and program for storing xml data, and recording medium with program recorded thereon
JP2004192170A (en) * 2002-12-10 2004-07-08 Hitachi Ltd Access relay device
JP2006133846A (en) * 2004-11-02 2006-05-25 Hitachi Ltd Data transfer method and proxy server
JP2006172313A (en) * 2004-12-17 2006-06-29 Fuji Electric Systems Co Ltd Data check management method and program
JP2006277586A (en) * 2005-03-30 2006-10-12 Daiwa Securities Group Inc Data file registration system, gateway server and middleware program

Similar Documents

Publication Publication Date Title
US8949257B2 (en) Method and system for collecting and organizing data corresponding to an event
US7685143B2 (en) Unified logging service for distributed applications
US10540271B2 (en) Document processing events
JP2009015570A (en) System and method for distributing vulnerability information
US11695803B2 (en) Extension framework for an information technology and security operations application
US7954112B2 (en) Automatic recovery from failures of messages within a data interchange
US7500251B2 (en) Method and system for managing programs for web service system
US8904528B2 (en) Method and apparatus for translation of business messages
CN112397193A (en) Data reporting method, device, equipment and storage medium
JP2006304108A (en) Log summation support apparatus, log summation support system, log summation support program, and log summation support method
US20150067152A1 (en) Monitoring system, system, and monitoring method
JP2005242988A (en) Log information management system, service providing system, log information management program, service providing program, log information management method, and service providing method
JP2006079469A (en) Support information processing system and support information processing method
US7739420B2 (en) Communication error information output method, communication error information output device and recording medium therefor
JP2011221682A (en) Information processor
JP2007200134A (en) Log information management device, log information management method, log information management program, and recording medium
EP3667602A1 (en) Multi-factor routing system for exchanging business transactions
WO2018111391A1 (en) Highly scalable event brokering and audit traceability system
JP2007072522A (en) Quality improvement support system, and control method and control program therefor
JP2008226017A (en) Log information generation device and method, log information management device and method, and log information management method and program
JP6048555B1 (en) Classification information creation device, classification information creation method, classification information creation program, search device, search method, and search program
JP6425634B2 (en) Service virtualization system and service virtualization method
Waher Xep-0337: Event logging over xmpp
JP2006279725A (en) Data relaying method and data relaying device
Andry et al. Health Information Exchange Network Interoperability through Ihe Transactions Orchestration.

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130311

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140107

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20140210