[go: up one dir, main page]

JP5236581B2 - Transmitting apparatus, control method therefor, program, and information processing system - Google Patents

Transmitting apparatus, control method therefor, program, and information processing system Download PDF

Info

Publication number
JP5236581B2
JP5236581B2 JP2009143617A JP2009143617A JP5236581B2 JP 5236581 B2 JP5236581 B2 JP 5236581B2 JP 2009143617 A JP2009143617 A JP 2009143617A JP 2009143617 A JP2009143617 A JP 2009143617A JP 5236581 B2 JP5236581 B2 JP 5236581B2
Authority
JP
Japan
Prior art keywords
text data
tag
data
converting
transmitting
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.)
Active
Application number
JP2009143617A
Other languages
Japanese (ja)
Other versions
JP2011002905A (en
Inventor
靖博 荒木
隆介 水口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NS Solutions Corp
Original Assignee
NS Solutions 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 NS Solutions Corp filed Critical NS Solutions Corp
Priority to JP2009143617A priority Critical patent/JP5236581B2/en
Publication of JP2011002905A publication Critical patent/JP2011002905A/en
Application granted granted Critical
Publication of JP5236581B2 publication Critical patent/JP5236581B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Description

本発明は、通信回線を介して受信装置に対してテキストデータを送信する際に使用される技術に関するものである。   The present invention relates to a technique used when text data is transmitted to a receiving apparatus via a communication line.

Webサービスでは、クライアント/サーバ間ではSOAP(Simple Object Access Protocol)が使われ、XML(Xtensible Markup Language)による汎用性の高い通信が可能となっている。なお、ここでいうWebサービスとは、http上でSOAPを使ってXMLをやりとりすることにより、分散したアプリケーション同士が緩やかに連携して協働する仕組みである。また、SOAPとは、他のコンピュータにあるデータやサービスを呼び出すためのプロトコルで、XMLでメッセージの交換がなされる。SOAPを用いると、異なる環境のコンピュータ間でも通信が可能となる。   In the Web service, SOAP (Simple Object Access Protocol) is used between the client and the server, and highly versatile communication using XML (Xtensible Markup Language) is possible. Note that the Web service here is a mechanism in which distributed applications cooperate with each other gently by exchanging XML using SOAP on http. In addition, SOAP is a protocol for calling data and services in other computers, and messages are exchanged by XML. Using SOAP enables communication between computers in different environments.

図5は、SOAPによるXMLデータでの通信方法の概略を説明するための図である。図5では、クライアント500からネットワークを介してアプリケーションサーバ(以下"APサーバ")600に接続されたデータベース(DB)に登録や検索の処理指示を行い、その結果を再度ネットワークを介してクライアント500が受信するという例を挙げて説明する。   FIG. 5 is a diagram for explaining an outline of a communication method using XML data based on SOAP. In FIG. 5, registration and search processing instructions are given from a client 500 to a database (DB) connected to an application server (hereinafter referred to as “AP server”) 600 via a network, and the client 500 again sends the result via the network. An example of receiving will be described.

例えばデータ登録処理であると、クライアント500のアプリケーション(図示せず)は、登録するデータをオブジェクト(バイナリデータ)として生成し、SOAPの通信機能に渡す。SOAPの通信機能は、このオブジェクトをhttpで送信可能なXMLデータ(テキストデータ)に変換する。このようにバイナリデータであるオブジェクトをテキストデータであるXMLデータに変換する処理を「シリアライズ」という。続いて、SOAPの通信機能は、XMLデータをAPサーバ600に送信する。   For example, in the data registration process, an application (not shown) of the client 500 generates data to be registered as an object (binary data) and passes it to the SOAP communication function. The SOAP communication function converts this object into XML data (text data) that can be transmitted by http. The process of converting an object that is binary data into XML data that is text data in this way is called “serialization”. Subsequently, the SOAP communication function transmits XML data to the AP server 600.

APサーバ600では、テキストデータであるXMLデータをオブジェクトに戻す。このようにXMLデータをバイナリデータであるオブジェクトに戻す処理を「デシリアライズ」という。APサーバ600ではオブジェクトに戻されたデータをDBに登録する処理等を行う。   The AP server 600 returns XML data, which is text data, to the object. Processing to return XML data to an object that is binary data in this way is called “deserialization”. The AP server 600 performs processing for registering the data returned to the object in the DB.

反対に、APサーバ600からクライアント500への処理結果(例えば、登録結果や検索結果)の送信処理においては、例えばAPサーバ600がDBから検索したオブジェクトをXMLデータに変換する処理(シリアライズ)を行う。そして、APサーバ600はXMLデータをクライアント500に送信する(返す)。クライアント500では、XMLデータをオブジェクトに変換する処理(デシリアライズ)を行う。   On the other hand, in the process of transmitting the processing results (for example, registration results and search results) from the AP server 600 to the client 500, for example, the AP server 600 performs processing (serialization) for converting an object searched from the DB into XML data. . Then, the AP server 600 transmits (returns) the XML data to the client 500. The client 500 performs processing (deserialization) for converting XML data into an object.

なお、バイナリデータをテキストデータに変換するシリアライズ、そしてその逆にテキストデータをバイナリデータに変換するデシリアライズについては、一般的に良く使われる技術であるため、ここでは詳細な情報処理についての説明は省略する。   Note that serialization that converts binary data to text data and vice versa, deserialization that converts text data to binary data is a commonly used technology. Omitted.

ところで、XMLデータは汎用性が高いというメリットがあるが、その一方でXMLデータでの通信はタグ付けされたテキストデータで行われるため、バイナリデータよりデータサイズが大きくなり、データの送受信量が大きくなってしまう。従って、一般的には大規模データ処理にはそれほど向いてはいない。   By the way, XML data has a merit of high versatility, but on the other hand, since communication with XML data is performed by tagged text data, the data size is larger than binary data, and the amount of data transmitted and received is large. turn into. Therefore, it is generally not very suitable for large-scale data processing.

図6は、シリアライズによってオブジェクトから生成されるXMLデータを具体的に説明するための図である。なお、本説明では理解しやすくするためにオブジェクトの例では文字で表示された「学生」「名前AA」など、人が読めるテキストデータで表現しているが、実際にはバイナリデータで構成されている。このバイナリデータであるオブジェクトをシリアライズすることによってテキストデータで構成されたXMLデータが生成される。   FIG. 6 is a diagram for specifically explaining XML data generated from an object by serialization. In this description, for ease of understanding, in the example of the object, it is expressed by human-readable text data such as “student” and “name AA” displayed in characters, but it is actually composed of binary data. Yes. XML data composed of text data is generated by serializing the object which is binary data.

図6に示すように、シリアライズによってオブジェクトから生成されるXMLデータには、オブジェクト内の属性毎に対応したタグ、例えば「名前」という属性に対しては<名前></名前>というタグが多数配置される。これらのタグで挟まれた部分には個々のデータ例えば「AA」や「男」などが記載されている。このようにXMLデータは、タグが多数付与されたテキストデータであるため、同じ内容の情報であってもバイナリコードと比較してデータサイズが大きくなり、データの送受信量が大きくなってしまうという特性がある。   As shown in FIG. 6, XML data generated from an object by serialization includes a number of tags corresponding to each attribute in the object, for example, a tag “<name> </ name>” for an attribute “name”. Be placed. Individual data such as “AA” and “male” are described in the portion sandwiched between these tags. As described above, since XML data is text data with a large number of tags, even if the information has the same content, the data size is larger than the binary code, and the amount of data transmitted and received is increased. There is.

特にSOAPではXMLデータでの通信を行うためクライアント及びサーバでシリアライズ/デシリアライズの処理が必要になるというデメリットもある。これによってシリアライズ/デシリアライズの処理により、メモリ消費量が増大し、パフォーマンス低下の要因となってしまうという課題がある。   In particular, SOAP has a demerit that communication with XML data requires serialization / deserialization processing on the client and server. As a result, the serialization / deserialization processing increases the memory consumption and causes a problem of performance degradation.

特許文献1には、デシリアライズによる処理コスト増、即ちメモリ消費やそれに伴うハングアップ等の危険の影響を避けるために工夫した技術が開示されている。例えば、クライアントから何かリクエストすると、Webサービス側からXMLデータが戻ってくるが、通常であればここでクライアントはXMLデータに対してデシリアライズするところを、XMLデータのままクライアントのアプリケーションに渡す、ということを行う。これによってクライアントでのデシリアライズを省略でき、処理コストの低減を図ることができる。   Patent Document 1 discloses a technique devised to avoid the influence of dangers such as an increase in processing cost due to deserialization, that is, memory consumption and hang-up associated therewith. For example, when a request is made from the client, the XML data is returned from the Web service side. Normally, the client deserializes the XML data, and passes the XML data to the client application as it is. Do that. As a result, deserialization at the client can be omitted, and the processing cost can be reduced.

しかしながら、これはクライアントとWebサービスで行われる一連のシリアライズ→デシリアライズ→シリアライズ→デシリアライズという処理の流れの最後のデシリアライズを行わないという効果しか得ることができない。従って、XMLデータに含まれる多数のタグに起因するデータ送受信量の増加、XMLデータ生成のためのメモリ消費量の増大を抑えることはできない。   However, this only has the effect of not performing the last deserialization in the processing flow of serialization → deserialization → serialization → deserialization performed by the client and the Web service. Accordingly, it is impossible to suppress an increase in the amount of data transmitted / received due to a large number of tags included in the XML data and an increase in the amount of memory consumption for generating the XML data.

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

以上のように、Webサービスで、XMLへのデータ変換を行った上でデータ送受信するような仕組みには多くの課題があり、特に大規模データを送受信して情報処理を行う場合には影響が大きい。   As described above, there are many problems in a mechanism for transmitting and receiving data after performing data conversion to XML in a Web service, particularly when large-scale data is transmitted and received and information processing is performed. large.

そこで、本発明の目的は、SOAPによるデータの送受信量を削減するとともに、XMLデータ生成のために使用するメモリ消費量を抑えることにある。   Therefore, an object of the present invention is to reduce the amount of data transmitted and received by SOAP and to suppress the memory consumption used for generating XML data.

本発明の送信装置は、通信回線を介して受信装置に対してテキストデータを送信する送信装置であって、ひとつの処理の対象又は結果であるバイナリデータをテキストデータに変換する変換手段と、前記変換手段により変換された前記テキストデータに対して、前記テキストデータを一要素として定義するためのタグを付与するタグ付与手段と、前記タグ付与手段によりタグが付与された前記テキストデータを前記受信装置に対して送信する送信手段とを有することを特徴とする。
本発明の送信装置の制御方法は、通信回線を介して受信装置に対してテキストデータを送信する送信装置の制御方法であって、ひとつの処理の対象又は結果であるバイナリデータをテキストデータに変換する変換ステップと、前記変換ステップにより変換された前記テキストデータに対して、前記テキストデータを一要素として定義するためのタグを付与するタグ付与ステップと、前記タグ付与ステップによりタグが付与された前記テキストデータを前記受信装置に対して送信する送信ステップとを含むことを特徴とする。
本発明のプログラムは、通信回線を介して受信装置に対してテキストデータを送信する送信装置の制御方法をコンピュータに実行させるためのプログラムであって、ひとつの処理の対象又は結果であるバイナリデータをテキストデータに変換する変換ステップと、前記変換ステップにより変換された前記テキストデータに対して、前記テキストデータを一要素として定義するためのタグを付与するタグ付与ステップと、前記タグ付与ステップによりタグが付与された前記テキストデータを前記受信装置に対して送信する送信ステップとをコンピュータに実行させることを特徴とする。
The transmitting device of the present invention is a transmitting device that transmits text data to a receiving device via a communication line, the conversion means for converting binary data as a target or result of one process into text data, Tag giving means for giving a tag for defining the text data as one element to the text data converted by the conversion means, and the text data to which the tag is given by the tag giving means is the receiving device And transmitting means for transmitting to.
The transmission apparatus control method of the present invention is a transmission apparatus control method for transmitting text data to a reception apparatus via a communication line, and converts binary data as a target or result of one process into text data. A conversion step, a tag addition step for assigning a tag for defining the text data as one element to the text data converted by the conversion step, and the tag given by the tag assignment step A transmission step of transmitting text data to the receiving device.
A program of the present invention is a program for causing a computer to execute a control method of a transmitting apparatus that transmits text data to a receiving apparatus via a communication line, and that is, binary data that is an object or result of one process A conversion step for converting to text data, a tag addition step for adding a tag for defining the text data as one element to the text data converted by the conversion step, and a tag by the tag addition step A transmission step of transmitting the given text data to the receiving device is executed by a computer.

本発明においては、ひとつのリクエストに対する処理の対象又は結果であるバイナリデータをテキストデータに変換し、当該テキストデータに対して当該テキストデータを一要素として定義するためのタグを付与することにより、送信するテキストデータに付与するタグの量を大幅に削減するようにしている。従って、本発明によれば、データの送受信量を削減することが可能となるとともに、XMLデータ生成のために使用するメモリ消費量を抑えることが可能となる。   In the present invention, the binary data that is the object or result of processing for one request is converted to text data, and the text data is sent by adding a tag for defining the text data as one element. The amount of tags attached to text data to be processed is greatly reduced. Therefore, according to the present invention, it is possible to reduce the amount of data transmitted and received and to suppress the amount of memory used for generating XML data.

本発明の実施形態に係る情報処理システムの機能的な構成を示すブロック図である。It is a block diagram which shows the functional structure of the information processing system which concerns on embodiment of this invention. クライアント、APサーバのハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of a client and AP server. クライアント、APサーバのXMLデータ送信に係る処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process which concerns on the XML data transmission of a client and AP server. クライアント、APサーバにおけるデータの変換処理を説明するための図である。It is a figure for demonstrating the conversion process of the data in a client and AP server. SOAPによるXMLデータでの通信方法の概略を説明するための図である。It is a figure for demonstrating the outline of the communication method by the XML data by SOAP. シリアライズによってオブジェクトから生成されるXMLデータを具体的に説明するための図である。It is a figure for demonstrating concretely the XML data produced | generated from an object by serialization.

以下、本発明を適用した好適な実施形態を、添付図面を参照しながら詳細に説明する。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments to which the invention is applied will be described in detail with reference to the accompanying drawings.

図1は、本発明の実施形態に係る情報処理システムの機能的な構成を示すブロック図である。図1に示すように、本実施形態に係る情報処理システムは、クライアント100とAPサーバ200とがインターネットなどのネットワークを介して接続され、APサーバ200はLANによってDB300に接続されている。   FIG. 1 is a block diagram showing a functional configuration of an information processing system according to an embodiment of the present invention. As shown in FIG. 1, in the information processing system according to the present embodiment, a client 100 and an AP server 200 are connected via a network such as the Internet, and the AP server 200 is connected to a DB 300 via a LAN.

クライアント100は、APサーバ200に対してデータ検索等のリクエストを行う端末である。APサーバ200は、クライアント100からのリクエストに応じてDB300に対するデータ検索等を行い、検索結果をレスポンスとしてクライアント100に返す。   The client 100 is a terminal that makes a request such as data search to the AP server 200. The AP server 200 performs a data search for the DB 300 in response to a request from the client 100, and returns the search result to the client 100 as a response.

クライアント100は、その機能構成として、変換部102、タグ付与部104、送受信部106及びデシリアライズ部108を備える。なお、図1には図示しないが、後述するようにクライアント100にはそのほかにも各種機能が備わっており、上記リクエストは例えばアプリケーションソフトウェア等がユーザの指示を受けて発するものである。   The client 100 includes a conversion unit 102, a tag addition unit 104, a transmission / reception unit 106, and a deserialization unit 108 as its functional configuration. Although not shown in FIG. 1, the client 100 has various other functions as will be described later, and the request is issued, for example, in response to a user instruction from application software or the like.

変換部102は、例えばクライアント100がDB登録を要求するバイナリデータ(オブジェクト)101をテキストデータ103に変換する。なお、従来のシリアライズとは情報処理が異なる。詳細については後述する。   The conversion unit 102 converts, for example, binary data (object) 101 for which the client 100 requests DB registration into text data 103. Note that information processing is different from conventional serialization. Details will be described later.

タグ付与部104は、DB登録対象となるバイナリデータ101から変換部102によって変換されたテキストデータ103に対してタグを付与することにより、XMLデータ105を生成する。このXMLデータを生成する処理も従来のシリアライズとは情報処理が異なるが、詳細については後述する。   The tag addition unit 104 generates XML data 105 by adding a tag to the text data 103 converted by the conversion unit 102 from the binary data 101 to be registered in the DB. The processing for generating the XML data is different in information processing from the conventional serialization, but details will be described later.

送受信部106は、タグ付与部104により生成されたXMLデータ105をAPサーバ200に送信したり、APサーバ200からDB検索結果のバイナリデータ206に対応するXMLデータ107を受信する。   The transmission / reception unit 106 transmits the XML data 105 generated by the tag addition unit 104 to the AP server 200 or receives XML data 107 corresponding to the binary data 206 of the DB search result from the AP server 200.

デシリアライズ部108は、送受信部106がAPサーバ200から受信したXMLデータ107をバイナリデータ109に変換する処理(デシリアライズ)を行う。ここで生成されるバイナリデータ109が例えばDB300の検索結果である。   The deserialization unit 108 performs processing (deserialization) for converting the XML data 107 received by the transmission / reception unit 106 from the AP server 200 into binary data 109. The binary data 109 generated here is a search result of the DB 300, for example.

APサーバ200は、その機能構成として、送受信部201、タグ付与部203、変換部205及びデシリアライズ部207を備える。上記クライアント100と同様、図1には図示しないが、後述するようにAPサーバ200にはそのほかにも各種機能が備わっている。   The AP server 200 includes a transmission / reception unit 201, a tag addition unit 203, a conversion unit 205, and a deserialization unit 207 as functional configurations. Similar to the client 100, although not shown in FIG. 1, the AP server 200 has various other functions as will be described later.

送受信部201は、クライアント100からリクエストのバイナリデータ101に対応するXMLデータ105を受信したり、後述するタグ付与部203により生成されたXMLデータ208をクライアント100に送信したりする。   The transmission / reception unit 201 receives the XML data 105 corresponding to the binary data 101 of the request from the client 100, or transmits the XML data 208 generated by the tag addition unit 203 described later to the client 100.

デシリアライズ部207は、送受信部201がクライアント100から受信したXMLデータ202をバイナリデータ206に変換する処理(デシリアライズ)を行う。ここで生成されるバイナリデータ206が例えばDB300への登録対象となるデータである。なお、クライアントから発するXMLデータ105と、送受信部201が受信したXMLデータ202は同一のものであるが、説明の便宜上、別の符号を付して説明する。   The deserialization unit 207 performs processing (deserialization) for converting the XML data 202 received by the transmission / reception unit 201 from the client 100 into binary data 206. The binary data 206 generated here is data to be registered in the DB 300, for example. Note that the XML data 105 emitted from the client and the XML data 202 received by the transmission / reception unit 201 are the same, but will be described with different reference numerals for convenience of explanation.

変換部205は、クライアント100からのリクエストに対応する検索結果であるバイナリデータ(オブジェクト)206をテキストデータ204に変換する。例えば、リクエストがDB300へのデータ登録である場合、その登録が完了した旨の登録結果をテキストデータ204に変換する。なお、従来のシリアライズとは情報処理が異なる。詳細については後述する。   The conversion unit 205 converts binary data (object) 206, which is a search result corresponding to the request from the client 100, into text data 204. For example, when the request is data registration in the DB 300, the registration result indicating that the registration is completed is converted into text data 204. Note that information processing is different from conventional serialization. Details will be described later.

タグ付与部203は、変換部205で変換されたテキストデータ204に対してタグを付与することにより、XMLデータ208を生成する。このXMLデータを生成する処理も従来のシリアライズとは情報処理が異なるが、詳細については後述する。   The tag addition unit 203 generates XML data 208 by adding a tag to the text data 204 converted by the conversion unit 205. The processing for generating the XML data is different in information processing from the conventional serialization, but details will be described later.

上述したクライアント100の送受信部106とAPサーバ200の送受信部201との間におけるXMLデータの送受信は、SOAPによって行われる。   The transmission / reception of XML data between the transmission / reception unit 106 of the client 100 and the transmission / reception unit 201 of the AP server 200 is performed by SOAP.

図2は、本実施形態に係るクライアント100、APサーバ200のハードウェア構成を示すブロック図である。   FIG. 2 is a block diagram illustrating a hardware configuration of the client 100 and the AP server 200 according to the present embodiment.

CPU301は、システムバスに接続される各デバイスやコントローラを統括的に制御する。ROM303又はHD(ハードディスク)309には、CPU301の制御プログラムであるBIOS(Basic Input / Output System)やオペレーティングシステムプログラム、最適解算出装置が実行する例えば図3に示す処理のプログラム等が記憶されている。   The CPU 301 comprehensively controls each device and controller connected to the system bus. The ROM 303 or HD (hard disk) 309 stores a basic input / output system (BIOS) that is a control program for the CPU 301, an operating system program, a program for the processing shown in FIG. .

なお、図2の例では、HD309はクライアント100、APサーバ200の内部に配置された構成としているが、他の実施形態としてHD309に相当する構成がクライアント100、APサーバ200の外部に配置された構成としてもよい。また、本実施形態に係る例えば図3に示す処理を行うためのプログラムは、フレキシブルディスク(FD)やCD−ROM等、コンピュータ読み取り可能な記録媒体に記録され、それらの記録媒体から供給される構成としてもよいし、インターネット等の通信媒体を介して供給される構成としてもよい。   In the example of FIG. 2, the HD 309 is configured to be arranged inside the client 100 and the AP server 200. However, as another embodiment, a configuration corresponding to the HD 309 is arranged outside the client 100 and the AP server 200. It is good also as a structure. Also, the program for performing the processing shown in FIG. 3 according to the present embodiment is recorded on a computer-readable recording medium such as a flexible disk (FD) or a CD-ROM, and is supplied from the recording medium. Alternatively, it may be configured to be supplied via a communication medium such as the Internet.

RAM302は、CPU301の主メモリ、ワークエリア等として機能する。CPU301は、処理の実行に際して必要なプログラム等をRAM302にロードして、プログラムを実行することで各種動作を実現するものである。   The RAM 302 functions as a main memory, work area, and the like for the CPU 301. The CPU 301 implements various operations by loading a program necessary for execution of processing into the RAM 302 and executing the program.

HD309やFD308は、外部メモリとして機能する。CPU301は、処理の実行に際して必要なプログラム等をRAM302にロードして、プログラムを実行することで各種動作を実現するものである。   The HD 309 and the FD 308 function as an external memory. The CPU 301 implements various operations by loading a program necessary for execution of processing into the RAM 302 and executing the program.

ディスクコントローラ307は、HD309やFD308等の外部メモリへのアクセスを制御する。通信I/Fコントローラ306は、インターネットやLANと接続し、例えばTCP/IPによって外部との通信を制御するものである。   The disk controller 307 controls access to external memories such as the HD 309 and the FD 308. The communication I / F controller 306 is connected to the Internet or a LAN, and controls communication with the outside by TCP / IP, for example.

ディスプレイコントローラ310は、ディスプレイ311における画像表示を制御する。   The display controller 310 controls image display on the display 311.

KBコントローラ304は、KB(キーボード)305からの操作入力を受け付け、CPU301に対して送信する。なお、図示していないが、KB305の他に、マウス等のポインティングデバイスもユーザの操作手段として本実施形態に係るクライアント100、APサーバ200に適用可能である。   The KB controller 304 receives an operation input from the KB (keyboard) 305 and transmits it to the CPU 301. Although not shown, in addition to the KB 305, a pointing device such as a mouse can also be applied to the client 100 and the AP server 200 according to the present embodiment as user operation means.

なお、図1に示す変換部102、タグ付与部104、送受信部106、デシリアライズ部108、送受信部201、タグ付与部203、変換部205、デシリアライズ部207は、例えばHD309内に記憶され、必要に応じてRAM302にロードされるプログラム及びそれを実行するCPU301によって実現される構成である。   1 is stored in, for example, the HD 309, for example, the conversion unit 102, the tag addition unit 104, the transmission / reception unit 106, the deserialization unit 108, the transmission / reception unit 201, the tag addition unit 203, the conversion unit 205, and the deserialization unit 207. This is a configuration realized by a program loaded into the RAM 302 as necessary and a CPU 301 that executes the program.

図3は、クライアント100、APサーバ200のXMLデータ送信に係る処理の流れを示すフローチャートである。図4は、クライアント100、APサーバ200におけるデータの変換処理を説明するための図である。以下では、図3及び図4を用いてクライアント100、APサーバ200の処理を個別に説明する。   FIG. 3 is a flowchart showing a flow of processing related to XML data transmission of the client 100 and the AP server 200. FIG. 4 is a diagram for explaining data conversion processing in the client 100 and the AP server 200. Hereinafter, the processing of the client 100 and the AP server 200 will be individually described with reference to FIGS. 3 and 4.

先ず、クライアント100の動作から説明する。クライアント100の変換部102は、例えばDB登録対象のバイナリデータ101をテキストデータ103に変換する(ステップS301)。図4に示すように、ここでバイナリデータ101は、改行コードなどが取り除かれ、バイナリデータ101内に示される文字列のみのテキストデータ103に変換される。なお、本説明では理解しやすくするためにバイナリデータ101の例では文字で表示された「学生」「名前AA」など、人が読めるテキストデータで表現しているが、実際にはバイナリデータで構成されている。   First, the operation of the client 100 will be described. For example, the conversion unit 102 of the client 100 converts the binary data 101 to be registered in the DB into text data 103 (step S301). As shown in FIG. 4, the binary data 101 is converted into text data 103 having only a character string shown in the binary data 101 by removing a line feed code and the like. In this description, for the sake of easy understanding, the binary data 101 is expressed by human-readable text data such as “student” and “name AA” displayed in characters. Has been.

続いて、クライアント100のタグ付与部104は、テキストデータ103に対して、当該テキストデータ103を一要素として定義するためのタグを付与することにより、XMLデータ105を生成する(ステップS302)。図4に示すように、ここでテキストデータ103の先頭部分と最終部分のみにタグとして<DATA>と</DATA>が付与されたXMLデータ105が生成される。従来技術で説明した図6のXMLデータと比較すると大幅にタグの数を減らしている。なお、この<DATA>と</DATA>というタグはあくまでも例示でありXMLに適合した方式であれば具体的なタグ名は問わない。   Subsequently, the tag adding unit 104 of the client 100 generates XML data 105 by adding a tag for defining the text data 103 as one element to the text data 103 (step S302). As shown in FIG. 4, XML data 105 is generated here in which <DATA> and </ DATA> are assigned as tags only to the beginning and end of text data 103. Compared with the XML data of FIG. 6 described in the prior art, the number of tags is greatly reduced. The tags <DATA> and </ DATA> are merely examples, and any specific tag name may be used as long as it is a method conforming to XML.

続いて、クライアント100の送受信部106は、XMLデータ105をAPサーバ200に対して送信する(ステップS303)。   Subsequently, the transmission / reception unit 106 of the client 100 transmits the XML data 105 to the AP server 200 (step S303).

次に、APサーバ200の動作について説明する。送受信部201は、クライアント100からDB登録対象のバイナリデータ101に対応するXMLデータ202を受信する。受信したXMLデータ202をデシリアライズ部207がバイナリデータ206に変換する。このデシリアライズ処理によって図4のテキストデータが再製されることになる。   Next, the operation of the AP server 200 will be described. The transmission / reception unit 201 receives XML data 202 corresponding to the binary data 101 to be DB registered from the client 100. The deserialization unit 207 converts the received XML data 202 into binary data 206. The text data in FIG. 4 is reproduced by this deserialization processing.

このようにして当初クライアントで生成されたバイナリデータ101と同じバイナリデータ206が再製されて、DB300への登録対象のデータの登録処理を行うことができる。なお、DBへの登録処理や検索処理は一般的に行われている情報処理をそのまま利用できるものであり、詳述は省略する。   In this way, the same binary data 206 as the binary data 101 originally generated by the client is reproduced, and registration processing of data to be registered in the DB 300 can be performed. In addition, registration processing and search processing in the DB can use information processing that is generally performed as it is, and detailed description thereof is omitted.

次に、DB300への登録処理や検索処理が行われた後に、その処理結果をクライアントに返す処理について説明する。APサーバ200の変換部205は、例えばDB検索結果のバイナリデータ206をテキストデータ204に変換する(ステップS301)。図4に示すように、ここでバイナリデータ206は、バイナリデータ206内に示される文字列のみのテキストデータ204に変換される。   Next, processing for returning the processing result to the client after registration processing and search processing in the DB 300 will be described. The conversion unit 205 of the AP server 200 converts, for example, binary data 206 as a DB search result into text data 204 (step S301). As shown in FIG. 4, the binary data 206 is converted into text data 204 having only a character string shown in the binary data 206.

続いて、APサーバ200のタグ付与部203は、テキストデータ204に対して、当該テキストデータ204を一要素として定義するためのタグを付与することにより、XMLデータ208を生成する(ステップS302)。図4に示すように、ここでテキストデータ204の先頭部分と最終部分のみにタグが付与されたXMLデータ208が生成される。   Subsequently, the tag adding unit 203 of the AP server 200 generates XML data 208 by adding a tag for defining the text data 204 as one element to the text data 204 (step S302). As shown in FIG. 4, here, XML data 208 is generated in which tags are attached only to the first and last portions of the text data 204.

続いて、APサーバ200の送受信部201は、XMLデータ208をクライアント100に対して送信する(ステップS303)。以降、クライアント100で受信したデータの処理については、上述したAPサーバ200でのデータ受信後の処理と同じである。   Subsequently, the transmission / reception unit 201 of the AP server 200 transmits the XML data 208 to the client 100 (step S303). Thereafter, the processing of data received by the client 100 is the same as the processing after data reception by the AP server 200 described above.

上述した実施形態においては、ひとつのリクエストに対する処理(DB登録、DB検索等)の対象又は結果であるバイナリデータをテキストデータに変換し、当該テキストデータに対して当該テキストデータを一要素として定義するためのタグを付与することにより、送信するXMLデータ内のタグの量を大幅に削減するようにしている。従って、本実施形態によれば、データの送受信量を削減することが可能となるとともに、XMLデータ生成のために使用するメモリ消費量を抑えることが可能となる。   In the above-described embodiment, binary data that is a target or result of processing (DB registration, DB search, etc.) for one request is converted into text data, and the text data is defined as one element for the text data. Therefore, the amount of tags in the XML data to be transmitted is greatly reduced. Therefore, according to the present embodiment, the amount of data transmitted and received can be reduced, and the memory consumption used for generating XML data can be suppressed.

また、クライアント100及びAPサーバ200に、変換部102、205によって生成されたテキストデータ103、204を任意のデータサイズで分割する分割部を備えてもよい。例えば、テキストデータ103、204がメモリ等に記憶された所定の閾値より大きなデータサイズである場合等に、分割部がテキストデータ103、204を分割することが考えられる。分割部でテキストデータ103、204が分割された場合、タグ付与部104、203は、分割された各テキストデータに対して、各テキストデータの夫々を一要素として定義するためのタグを付与することにより、各テキストデータ毎にXMLデータを生成する。   In addition, the client 100 and the AP server 200 may include a dividing unit that divides the text data 103 and 204 generated by the conversion units 102 and 205 with an arbitrary data size. For example, when the text data 103 and 204 has a data size larger than a predetermined threshold stored in a memory or the like, the dividing unit may divide the text data 103 and 204. When the text data 103 and 204 are divided by the dividing unit, the tag assigning units 104 and 203 assign a tag for defining each text data as one element to each divided text data. Thus, XML data is generated for each text data.

このような分割処理を行ったうえでテキストデータ毎にXMLデータを生成した場合、受信側では分割された各テキストデータを結合するという処理が発生する。そこで、分割してXMLデータを生成する場合に備えて、送受信側のそれぞれのコンピュータには結合処理部も備える。分割してXMLデータを生成する場合には、タグ付与部104、203は、そのタグとして<DATA1>、<DATA2>・・・などと、所定のルールでタグ自体に番号を付与するなどしておき、受信側のコンピュータの結合処理部は、当該<DATA1>、<DATA2>・・・というタグを受信した場合にはXMLデータを一つに結合した後にデシリアライズ部でタグを取り除いてバイナリデータ化するという処理を行う。   When XML data is generated for each text data after performing such a dividing process, a process of combining the divided text data occurs on the receiving side. Therefore, in preparation for the case of generating XML data by dividing, each computer on the transmission / reception side is also provided with a combination processing unit. When generating XML data by dividing, the tag assigning units 104 and 203 assign tags to the tags themselves according to predetermined rules, such as <DATA1>, <DATA2>... In addition, when the combination processing unit of the receiving computer receives the tags <DATA1>, <DATA2>..., The XML data is combined into one, and then the deserialization unit removes the tag to obtain binary data. The process of becoming.

100:クライアント
101、109、206:バイナリデータ
102、205:変換部
103、204:テキストデータ
104、203:タブ付与部
105、107、202、208:XMLデータ
106、201:送受信部
108、207:デシリアライズ部
200:APサーバ
300:DB
100: Client 101, 109, 206: Binary data 102, 205: Conversion unit 103, 204: Text data 104, 203: Tab assignment unit 105, 107, 202, 208: XML data 106, 201: Transmission / reception unit 108, 207: Deserialization unit 200: AP server 300: DB

Claims (5)

通信回線を介して受信装置に対してテキストデータを送信する送信装置であって、
ひとつの処理の対象又は結果であるバイナリデータをテキストデータに変換する変換手段と、
前記変換手段により変換された前記テキストデータに対して、前記テキストデータを一要素として定義するためのタグを付与するタグ付与手段と、
前記タグ付与手段によりタグが付与された前記テキストデータを前記受信装置に対して送信する送信手段とを有することを特徴とする送信装置。
A transmitting device that transmits text data to a receiving device via a communication line,
A conversion means for converting binary data as a target or result of one process into text data;
Tag giving means for giving a tag for defining the text data as one element to the text data converted by the converting means;
A transmission device comprising: a transmission unit configured to transmit the text data to which the tag is added by the tag addition unit to the reception device.
前記変換手段により変換された前記テキストデータを分割する分割手段を更に有し、
前記タグ付与手段は、前記分割手段により前記テキストデータが分割された場合、分割された各テキストデータに対して、前記各テキストデータの夫々を一要素として定義するためのタグを付与することを特徴とする請求項1に記載の送信装置。
Further comprising a dividing means for dividing the text data converted by the converting means;
The tag assigning means, when the text data is divided by the dividing means, gives a tag for defining each of the text data as one element to each divided text data. The transmission device according to claim 1.
通信回線を介して受信装置に対してテキストデータを送信する送信装置の制御方法であって、
ひとつの処理の対象又は結果であるバイナリデータをテキストデータに変換する変換ステップと、
前記変換ステップにより変換された前記テキストデータに対して、前記テキストデータを一要素として定義するためのタグを付与するタグ付与ステップと、
前記タグ付与ステップによりタグが付与された前記テキストデータを前記受信装置に対して送信する送信ステップとを含むことを特徴とする送信装置の制御方法。
A method of controlling a transmitting device that transmits text data to a receiving device via a communication line,
A conversion step for converting binary data as a target or result of one process into text data;
A tag providing step of adding a tag for defining the text data as one element to the text data converted by the converting step;
A transmission step of transmitting the text data to which the tag has been assigned in the tag addition step to the reception device.
通信回線を介して受信装置に対してテキストデータを送信する送信装置の制御方法をコンピュータに実行させるためのプログラムであって、
同一処理の対象又は結果であるバイナリデータをテキストデータに変換する変換ステップと、
前記変換ステップにより変換された前記テキストデータに対して、前記テキストデータを一要素として定義するためのタグを付与するタグ付与ステップと、
前記タグ付与ステップによりタグが付与された前記テキストデータを前記受信装置に対して送信する送信ステップとをコンピュータに実行させるためのプログラム。
A program for causing a computer to execute a control method of a transmitting device that transmits text data to a receiving device via a communication line,
A conversion step for converting binary data as a target or result of the same processing into text data;
A tag providing step of adding a tag for defining the text data as one element to the text data converted by the converting step;
A program for causing a computer to execute a transmission step of transmitting the text data to which a tag has been added in the tag addition step to the receiving device.
送信装置と受信装置とが通信回線を介してデータの送受信を行う情報処理システムであって、
前記送信装置は、
同一処理の対象又は結果であるバイナリデータをテキストデータに変換するシリアライズ処理手段と、
前記シリアライズ処理手段により変換されたテキストデータに対して、前記テキストデータを一要素として定義するためのタグを付与するタグ付与手段と、
前記タグ付与手段によりタグが付与された前記テキストデータを前記受信装置に対して送信する送信手段とを有し、
前記受信装置は、
ネットワークを介して前記送信装置からタグが付与された前記テキストデータを受信する受信手段と、
受信した前記テキストデータから前記テキストデータを一要素として定義するためのタグを除去し、オブジェクトデータに変換するデシリアライズ処理手段とを有することを特徴とする情報処理システム。
An information processing system in which a transmission device and a reception device transmit and receive data via a communication line,
The transmitter is
Serialization processing means for converting binary data as a target or result of the same processing into text data;
Tag giving means for giving a tag for defining the text data as one element to the text data converted by the serialization processing means;
Transmitting means for transmitting the text data to which the tag is attached by the tag attaching means to the receiving device;
The receiving device is:
Receiving means for receiving the text data to which the tag is attached from the transmitting device via a network;
An information processing system comprising: deserialization processing means for removing a tag for defining the text data as one element from the received text data and converting the text data into object data.
JP2009143617A 2009-06-16 2009-06-16 Transmitting apparatus, control method therefor, program, and information processing system Active JP5236581B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009143617A JP5236581B2 (en) 2009-06-16 2009-06-16 Transmitting apparatus, control method therefor, program, and information processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009143617A JP5236581B2 (en) 2009-06-16 2009-06-16 Transmitting apparatus, control method therefor, program, and information processing system

Publications (2)

Publication Number Publication Date
JP2011002905A JP2011002905A (en) 2011-01-06
JP5236581B2 true JP5236581B2 (en) 2013-07-17

Family

ID=43560833

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009143617A Active JP5236581B2 (en) 2009-06-16 2009-06-16 Transmitting apparatus, control method therefor, program, and information processing system

Country Status (1)

Country Link
JP (1) JP5236581B2 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7904595B2 (en) 2001-01-18 2011-03-08 Sdl International America Incorporated Globalization management system and method therefor
US9547626B2 (en) 2011-01-29 2017-01-17 Sdl Plc Systems, methods, and media for managing ambient adaptability of web applications and web services
US11182455B2 (en) 2011-01-29 2021-11-23 Sdl Netherlands B.V. Taxonomy driven multi-system networking and content delivery
US10657540B2 (en) 2011-01-29 2020-05-19 Sdl Netherlands B.V. Systems, methods, and media for web content management
US10580015B2 (en) 2011-02-25 2020-03-03 Sdl Netherlands B.V. Systems, methods, and media for executing and optimizing online marketing initiatives
US9773270B2 (en) 2012-05-11 2017-09-26 Fredhopper B.V. Method and system for recommending products based on a ranking cocktail
CN104620558B (en) * 2012-09-07 2018-02-16 甲骨文国际公司 System and method for supporting the message in distributed data grid cluster to pre-process
US11308528B2 (en) 2012-09-14 2022-04-19 Sdl Netherlands B.V. Blueprinting of multimedia assets
US11386186B2 (en) 2012-09-14 2022-07-12 Sdl Netherlands B.V. External content library connector systems and methods
US10452740B2 (en) 2012-09-14 2019-10-22 Sdl Netherlands B.V. External content libraries
JP6211949B2 (en) 2014-02-12 2017-10-11 株式会社東芝 Database device
US10614167B2 (en) 2015-10-30 2020-04-07 Sdl Plc Translation review workflow systems and methods
JP7226008B2 (en) * 2019-03-26 2023-02-21 オムロン株式会社 Management device, support device, management method, management program and recording medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10222510A (en) * 1997-02-07 1998-08-21 Hitachi Ltd Document conversion method
JP2004326583A (en) * 2003-04-25 2004-11-18 Toshiba Corp Data conversion device, data exchange method and program
JP4713189B2 (en) * 2005-03-17 2011-06-29 株式会社リコー Information processing apparatus, program, and recording medium

Also Published As

Publication number Publication date
JP2011002905A (en) 2011-01-06

Similar Documents

Publication Publication Date Title
JP5236581B2 (en) Transmitting apparatus, control method therefor, program, and information processing system
JP4868590B2 (en) Method, system, and computer program for caching web service requests
US8990427B2 (en) Method and apparatus for accessing an enterprise resource planning system via a mobile device
US20090327868A1 (en) Intermediate apparatus and method
TWI470442B (en) System and method for obtaining interactive compatibility by using multiple reduced client platforms
CN102098330A (en) Asynchronous transmission method, device and system based on json data format
US11223686B2 (en) Transport channel via web socket for OData
JP2006107487A (en) Method for offering content through network, and system and program therefor
EP3872630B1 (en) Request processing method and apparatus, electronic device, and computer storage medium
US8970870B2 (en) Delivery of scan services over a device service port
JP2006072978A (en) Service requesting device, service providing device, service requesting method, service providing method, service requesting program, service providing program, and recording medium
JP2015052821A (en) Communication device and communication method
CN101258478B (en) Advanced Graphics Stream
CN109885347B (en) Method, device, terminal, system and storage medium for acquiring configuration data
JP5039946B2 (en) Technology for relaying communication between client devices and server devices
JP2017151820A (en) Information processing apparatus, program, and control method
CN113992641B (en) Data processing method, device, equipment and storage medium
JP2004537788A (en) Services and methods that mediate rendering
EP2101474A1 (en) Service bindings for web services
US9634987B2 (en) Obtaining a MAC address from an external source
CN115314536B (en) Remote command execution method and device, storage medium and computer equipment
CN114816403B (en) A request processing method, device, equipment and storage medium
JP2005266908A (en) Data processing method, program, device, message structure, message generation method, and message transmission method
JP4221020B2 (en) Image processing device
CN113726827A (en) Data packet processing method and device based on distributed cluster

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110902

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121211

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130212

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130312

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130327

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5236581

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160405

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250