JP6730632B2 - Information processing apparatus, processing method thereof, and program - Google Patents

Information processing apparatus, processing method thereof, and program Download PDF

Info

Publication number
JP6730632B2
JP6730632B2 JP2017244109A JP2017244109A JP6730632B2 JP 6730632 B2 JP6730632 B2 JP 6730632B2 JP 2017244109 A JP2017244109 A JP 2017244109A JP 2017244109 A JP2017244109 A JP 2017244109A JP 6730632 B2 JP6730632 B2 JP 6730632B2
Authority
JP
Japan
Prior art keywords
input
output
output definition
web service
program
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
JP2017244109A
Other languages
Japanese (ja)
Other versions
JP2018067344A (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.)
Canon Marketing Japan Inc
Canon IT Solutions Inc
Original Assignee
Canon Marketing Japan Inc
Canon IT Solutions Inc
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 Canon Marketing Japan Inc, Canon IT Solutions Inc filed Critical Canon Marketing Japan Inc
Publication of JP2018067344A publication Critical patent/JP2018067344A/en
Application granted granted Critical
Publication of JP6730632B2 publication Critical patent/JP6730632B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、プログラムを生成するための情報処理装置と、その処理方法及びプログラムに関する。 The present invention relates to an information processing device for generating a program, a processing method thereof, and a program.

従来から、入出力定義やデータモデル定義などを設定し、Webアプリケーションのプログラムを生成するWebアプリケーション開発ツールが存在する。 2. Description of the Related Art Conventionally, there is a web application development tool that sets an input/output definition, a data model definition, etc., and generates a web application program.

そのWebアプリケーション開発ツールによって生成されたWebアプリケーションのビジネスロジックを外部アプリケーションから利用させるために、当該WebアプリケーションをWebサービス化したいという要望があった。また、当該Webアプリケーションのビジネスロジックと当該Webアプリケーション開発ツール以外で作成した画面レイアウトとを組み合わせてシステムを構築するために、当該WebアプリケーションをWebサービス化したいという要望もあった。 In order to use the business logic of the Web application generated by the Web application development tool from an external application, there has been a demand for converting the Web application into a Web service. There is also a demand for converting the web application into a web service in order to construct a system by combining the business logic of the web application with a screen layout created by a tool other than the web application development tool.

なお、Webサービスとして公開するためには、Webサービス定義情報(Webサービスの利用に必要なインタフェースの定義情報。例えば、WSDL(Web Services Description Language)で記述されたファイル。以下、WSDLファイルと記す。)を生成する必要があり、WSDLの記載方法に不慣れな開発者にとっては、WSDLファイルを生成することが難しかった。 To publish as a Web service, Web service definition information (definition information of an interface required to use the Web service. For example, a file described in WSDL (Web Services Description Language). Hereinafter, referred to as a WSDL file. ) Has to be generated, and it is difficult for a developer who is unfamiliar with the description method of WSDL to generate the WSDL file.

特許文献1には、Webコンテンツの編集作業により生成されたXMLファイルを用いて、WSDLファイルを生成する仕組みが示されている。また、特許文献2には、Webアプリケーションのプログラムを自動生成するツールにおいて、GUIレイアウト画面と呼ばれるレイアウトエディタを用いて、Webアプリケーションの画面の入力項目(検索条件テキストボックスや検索ボタン等)及び出力項目(検索結果等)の配置レイアウト及び属性を定義し、その入出力定義情報に基づいてWebアプリケーションのプログラムを生成する仕組みが示されている。 Patent Document 1 discloses a mechanism for generating a WSDL file by using an XML file generated by a Web content editing operation. Further, in Patent Document 2, in a tool for automatically generating a program of a Web application, an input item (search condition text box, search button, etc.) and an output item of the screen of the Web application are used by using a layout editor called a GUI layout screen. A mechanism for defining the layout and attributes of (search results, etc.) and generating a Web application program based on the input/output definition information is shown.

特開2004−272871号公報JP 2004-272871 A 特開2015−99590号公報JP, 2005-99590, A

しかし、特許文献1の仕組みは、Webコンテンツを用いてWSDLファイルを生成するのみである。よって、特許文献1の仕組みでは、Webアプリケーション開発ツールによって生成されたWebアプリケーションをWebサービス化したい場合、Webアプリケーション用の入出力定義情報を用いてWSDLファイルを生成することができないという問題がある。 However, the mechanism of Patent Document 1 only generates a WSDL file using Web content. Therefore, the mechanism of Patent Document 1 has a problem that when a web application generated by the web application development tool is desired to be a web service, the WSDL file cannot be generated using the input/output definition information for the web application.

また、特許文献2の仕組みは、Webアプリケーションの画面の入出力定義情報を用いて、Webアプリケーションとして用いられるプログラムを生成する仕組みである。よって、特許文献2の仕組みでは、Webアプリケーションの画面の入出力定義情報を用いたとしても、Webサービスとして用いられるプログラムを生成することができないという問題がある。 Further, the mechanism of Patent Document 2 is a mechanism for generating a program used as a Web application by using the input/output definition information of the screen of the Web application. Therefore, the mechanism of Patent Document 2 has a problem that a program used as a Web service cannot be generated even if the input/output definition information of the screen of the Web application is used.

また、通常、入出力定義情報には複数の定義項目が存在するため、Webサービスの開発者がそれらを誤りなく設定しなければならないため設定ミスが生じやすく、Webアプリケーションとの整合性も取りづらいため、Webサービスの開発及び管理が大変という問題もある。 In addition, since there are usually a plurality of definition items in the input/output definition information, the developer of the Web service must set them without error, so setting mistakes are likely to occur and consistency with the Web application is difficult to obtain. Therefore, there is a problem that development and management of the Web service are difficult.

また、WebアプリケーションとWebサービスとの両方から同じビジネスロジックを使用する場合、入出力定義情報も同じとなるケースが多く、Webアプリケーションの画面の入出力定義情報を用いて、Webサービスとして用いられるプログラムを生成することにより、Webアプリケーションを容易にWebサービス化したいという課題もある。 In addition, when the same business logic is used from both the web application and the web service, the input/output definition information is often the same, and the program used as the web service by using the input/output definition information of the screen of the web application. There is also a problem that it is desired to easily turn a web application into a web service by generating the.

そこで、本発明の目的は、Webアプリケーション開発ツールにおいて、Webサービスとして用いられるプログラムを容易に生成する仕組みを提供することである。 Therefore, an object of the present invention is to provide a mechanism for easily generating a program used as a web service in a web application development tool.

Webアプリケーションとして用いられるプログラムを生成する情報処理装置であって、前記Webアプリケーションの画面を介して入力される項目を定義する入力定義情報と、前記画面に出力する項目を定義する出力定義情報とを入出力定義情報として管理する入出力定義管理手段と、前記プログラムをWebサービスとして用いるかの選択を受け付ける選択受付手段と、前記入出力定義管理手段により管理されている入出力定義情報を用いて、前記選択受付手段により受け付けた選択に従って、Webアプリケーションとして用いられるプログラム及び当該Webアプリケーションの処理結果を表示するための画面を出力するプログラムを生成するか又はWebサービスの利用に必要なインタフェースの定義情報及び当該Webサービスとして用いられるプログラムを生成するかを制御するプログラム生成制御手段とを備えることを特徴とする情報処理装置。 An information processing device for generating a program used as a web application, comprising: input definition information defining items input via a screen of the web application; and output definition information defining items to be output on the screen. By using the input/output definition managing means for managing as the input/output definition information, the selection accepting means for accepting selection of whether to use the program as the Web service, and the input/output definition information managed by the input/output definition managing means, According to the selection received by the selection receiving unit, a program used as a Web application and a program for outputting a screen for displaying the processing result of the Web application are generated, or interface definition information necessary for using the Web service and An information processing apparatus comprising: a program generation control unit that controls whether to generate a program used as the Web service.

本発明によれば、Webアプリケーション開発ツールにおいて、Webサービスとして用いられるプログラムを容易に生成する仕組みを提供することができる。 According to the present invention, it is possible to provide a mechanism for easily generating a program used as a web service in a web application development tool.

本発明に係るプログラム開発装置、プログラム開発サーバ、データベースサーバ、アプリケーションクライアント、アプリケーションサーバの構成の一例を示すシステム構成図である。1 is a system configuration diagram showing an example of configurations of a program development device, a program development server, a database server, an application client, and an application server according to the present invention. 本発明に係るプログラム開発装置、プログラム開発サーバ、データベースサーバ、アプリケーションクライアント、アプリケーションサーバとして適用可能な各ハードウェア構成の一例を示すブロック図である。It is a block diagram showing an example of each hardware composition applicable as a program development device, a program development server, a database server, an application client, and an application server concerning the present invention. 本発明の実施の形態のソフトウェア構成を示すブロック図の一例である。It is an example of a block diagram showing a software configuration of an embodiment of the present invention. 本発明に係るプログラム開発装置の構成図である。It is a block diagram of the program development apparatus which concerns on this invention. 第1の実施形態に係るWebアプリケーション/Webサービス生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of a web application/Web service generation which concerns on 1st Embodiment. 第1の実施形態に係るソースコード生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of the source code generation which concerns on 1st Embodiment. 第1の実施形態に係るWebサービスソースコード生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of Web service source code generation which concerns on 1st Embodiment. 第1の実施形態に係るWSDL生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of the WSDL generation which concerns on 1st Embodiment. 第1の実施形態に係るgetDataリクエスト生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of a getData request generation which concerns on 1st Embodiment. 第1の実施形態に係るgetDataリクエストWSDL1000の一例を示す図である。It is a figure which shows an example of getData request WSDL1000 which concerns on 1st Embodiment. 第1の実施形態に係るgetDataレスポンス生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of getData response generation which concerns on 1st Embodiment. 第1の実施形態に係るgetDataレスポンスWSDL1200の一例を示す図である。It is a figure which shows an example of the getData response WSDL1200 which concerns on 1st Embodiment. 第1の実施形態に係るBPリクエスト生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of BP request generation which concerns on 1st Embodiment. 第1の実施形態に係るBPリクエストWSDL1400の一例を示す図である。It is a figure which shows an example of BP request WSDL1400 which concerns on 1st Embodiment. 第1の実施形態に係るBPレスポンス生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of BP response generation which concerns on 1st Embodiment. 第1の実施形態に係るBPレスポンスWSDL1600の一例を示す図である。It is a figure which shows an example of BP response WSDL1600 which concerns on 1st Embodiment. 第1の実施形態に係るWebアプリケーション用の入出力定義画面(入出力)1700の一例を示す図である。It is a figure which shows an example of the input/output definition screen (input/output) 1700 for the Web application which concerns on 1st Embodiment. 第1の実施形態に係るWebサービス用の入出力定義画面(項目一覧)1800の一例を示す図である。It is a figure which shows an example of the input/output definition screen (item list) 1800 for Web services which concerns on 1st Embodiment. 第1の実施形態に係るWebサービス用の入出力定義画面(入出力)1900の一例を示す図である。It is a figure which shows an example of the input/output definition screen (input/output) 1900 for Web services which concerns on 1st Embodiment. 第1の実施形態に係るデータモデル定義画面の一例を示す図である。It is a figure which shows an example of the data model definition screen which concerns on 1st Embodiment. 第1の実施形態に係るWebサービス利用のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of Web service utilization which concerns on 1st Embodiment. 第1の実施形態に係るWebサービスを利用する外部アプリケーションのINPUT画面2200の一例を示す図である。It is a figure which shows an example of the INPUT screen 2200 of the external application which uses the Web service which concerns on 1st Embodiment. 第1の実施形態に係るWebサービスサーバに送信するリクエスト2300の一例を示す図である。It is a figure which shows an example of the request 2300 transmitted to the Web service server which concerns on 1st Embodiment. 第1の実施形態に係るWebサービスサーバから送信されるレスポンス2400の一例を示す図である。It is a figure which shows an example of the response 2400 transmitted from the Web service server which concerns on 1st Embodiment. 第1の実施形態に係るWebサービスを利用する外部アプリケーションのOUTPUT画面2500の一例を示す図である。It is a figure which shows an example of the OUTPUT screen 2500 of the external application which uses the Web service which concerns on 1st Embodiment. 第1の実施形態に係る商品マスタテーブル2600の一例を示す図である。It is a figure which shows an example of the goods master table 2600 which concerns on 1st Embodiment. 第1の実施形態に係る入出力定義画面の一例を示す図である。It is a figure which shows an example of the input/output definition screen which concerns on 1st Embodiment. 第1の実施形態に係るWebサービスインタフェースコードの一例を示す図である。It is a figure which shows an example of the Web service interface code which concerns on 1st Embodiment. 第1の実施形態に係る入出力定義作成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of the input/output definition creation which concerns on 1st Embodiment. 第1の実施形態に係る入出力定義編集のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of input/output definition edit which concerns on 1st Embodiment. 第1の実施形態に係る確認メッセージの一例を示す図である。It is a figure which shows an example of the confirmation message which concerns on 1st Embodiment. 第1の実施形態に係るWebアプリケーション用の入出力定義画面(項目一覧)3200の一例を示す図である。It is a figure which shows an example of the input/output definition screen (item list) 3200 for Web applications which concerns on 1st Embodiment. 第2の実施形態に係るソースコード生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of the source code generation which concerns on 2nd Embodiment. 第2の実施形態に係るWebアプリケーション用の入出力定義画面(入出力)3300の一例を示す図である。It is a figure which shows an example of the input/output definition screen (input/output) 3300 for Web applications which concerns on 2nd Embodiment. 第3の実施形態に係るソースコード生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of the source code generation which concerns on 3rd Embodiment. 第3の実施形態に係るWebアプリケーション用の入出力定義画面(入出力)3500の一例を示す図である。It is a figure which shows an example of the input/output definition screen (input/output) 3500 for Web applications which concerns on 3rd Embodiment. 第4の実施形態に係るソースコード生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of the source code generation which concerns on 4th Embodiment. 第4の実施形態に係るWebアプリケーション用の入出力定義画面(項目一覧)3800の一例を示す図である。It is a figure which shows an example of the input/output definition screen (item list) 3800 for Web applications which concerns on 4th Embodiment. 第5の実施形態に係るソースコード生成のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of the source code generation which concerns on 5th Embodiment. 第5の実施形態に係るソースコード生成時の確認メッセージの一例を示す図である。It is a figure which shows an example of the confirmation message at the time of source code generation which concerns on 5th Embodiment. 第6の実施形態に係る入出力定義編集のフローチャートの一例を示す図である。It is a figure which shows an example of the flowchart of the input/output definition edit which concerns on 6th Embodiment. 第6の実施形態に係る入出力定義編集時の確認メッセージの一例を示す図である。It is a figure which shows an example of the confirmation message at the time of input/output definition edit which concerns on 6th Embodiment. 第1〜6の実施形態に係る定義ファイル一覧画面の一例を示す図である。It is a figure which shows an example of the definition file list screen which concerns on 1st-6th embodiment.

以下、本発明の実施の形態を、図面を参照して詳細に説明するが、本発明の特徴の一例を表している箇所は、図33〜図35、図36、図37である。
〔第1の実施形態〕
図1は、本発明に係わるプログラム開発装置(開発者がWebアプリケーション生成のために使用する情報処理装置)、プログラム開発サーバ、データベースサーバ、アプリケーションクライアント(クライアント装置)、アプリケーションサーバの構成の一例を示すシステム(情報処理システム)構成図である。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings, and portions showing an example of the features of the present invention are FIGS. 33 to 35, 36, and 37.
[First Embodiment]
FIG. 1 shows an example of the configuration of a program development device (an information processing device used by a developer to generate a Web application), a program development server, a database server, an application client (client device), and an application server according to the present invention. It is a system (information processing system) block diagram.

プログラム開発装置101は、開発者の操作に従って画面レイアウト及びデータベース検索指示などを定義する。プログラム開発装置101単体では、開発者の入力受付を行い、後述するプログラム開発サーバ102に実際のプログラム生成処理、アプリケーション生成処理をさせてもよいし、プログラム開発装置101単体でプログラム生成、アプリケーション生成まで処理してもよい。 The program development apparatus 101 defines a screen layout, a database search instruction, and the like according to a developer's operation. The program development apparatus 101 alone may accept the input of the developer and cause the program development server 102 described later to perform actual program generation processing and application generation processing. Alternatively, the program development apparatus 101 alone may generate programs and applications. May be processed.

なお、この実施形態においては、プログラム開発装置101で生成するアプリケーションはWebアプリケーションとしたが、これに限定するものではなく、携帯電話・スマートフォン・タブレットなどの情報処理装置で動作するアプリケーションや組込みソフトウェアなど、Web技術による通信を利用したアプリケーションでなくてもよい。 In addition, in this embodiment, the application generated by the program development apparatus 101 is a Web application, but the application is not limited to this, and an application or embedded software that operates on an information processing apparatus such as a mobile phone, a smartphone, or a tablet. The application does not have to be an application that uses communication by Web technology.

プログラム開発サーバ102a〜102b(情報処理装置)は、プログラム開発装置101により入力された開発者の指示に従って、プログラムを開発する。プログラム開発サーバ102aはLANなどのネットワーク106内に配置されてもよいし、プログラム開発サーバ102bはインターネット上やクラウド上に配置されてもよい。 The program development servers 102a to 102b (information processing devices) develop programs according to the instructions of the developer input by the program development device 101. The program development server 102a may be arranged in the network 106 such as a LAN, and the program development server 102b may be arranged on the Internet or on the cloud.

データベースサーバ103a〜103b(情報処理装置)は、開発されたアプリケーションが使用するデータベースであり、また本発明では開発時にも動作確認などのために利用してもよい。例えば、開発者が利用するためにデータベースサーバ103は、プログラム開発装置101と同一の装置で構成されていてもよいし、LANなどのネットワーク106内に配置されてもよい(データベースサーバ103a)。またインターネット上やクラウド上に配置されてもよい(データベースサーバ103b)。また、プログラム開発装置101が、プログラム開発サーバ102と協調する場合には、プログラム開発サーバ102とデータベースサーバ103が同一の装置内に構成されていてもよい。 The database servers 103a to 103b (information processing devices) are databases used by developed applications, and in the present invention, they may be used for confirming operations during development. For example, the database server 103 may be configured by the same device as the program development device 101 for use by the developer, or may be arranged in the network 106 such as a LAN (database server 103a). It may be arranged on the Internet or on the cloud (database server 103b). When the program development device 101 cooperates with the program development server 102, the program development server 102 and the database server 103 may be configured in the same device.

アプリケーションサーバ105a〜105b(情報処理装置)は、プログラム開発装置101で開発されたアプリケーションを実行する。LANなどのネットワーク106内に配置されてもよい(アプリケーションサーバ105a)し、またインターネット上やクラウド上に配置されてもよい(アプリケーションサーバ105b)。また、ネットワーク106、インターネット、クラウド上のデータベースサーバ103と接続して動作する可能である。 The application servers 105a and 105b (information processing devices) execute applications developed by the program development device 101. It may be arranged in the network 106 such as a LAN (application server 105a), or may be arranged on the Internet or in the cloud (application server 105b). Further, it is possible to operate by connecting to the database 106 on the network 106, the Internet, or the cloud.

アプリケーションクライアント104a〜104b(情報処理装置)は、アプリケーションサーバ105と協調してプログラム開発装置101で開発したアプリケーションプログラムを動作させる、ユーザの入力端末である。LANなどのネットワーク106内に配置されてもよい(アプリケーションクライアント104a)し、またインターネット上やクラウド上に配置されてもよい(アプリケーションクライアント104b)。携帯端末などの情報処理装置であってもよい。
The application clients 104a to 104b (information processing devices) are user input terminals that operate application programs developed by the program development device 101 in cooperation with the application server 105. It may be arranged in the network 106 such as a LAN (application client 104a), or may be arranged on the Internet or in the cloud (application client 104b). It may be an information processing device such as a mobile terminal.

図2は、本発明に係わるプログラム開発装置101、プログラム開発サーバ102、データベースサーバ103、アプリケーションクライアント104、アプリケーションサーバ105として適用可能な各ハードウェア構成の一例を示すブロック図である。
図2において、CPU201は、システムバス204に接続される各デバイスを統括的に制御する。
FIG. 2 is a block diagram showing an example of each hardware configuration applicable as the program development device 101, the program development server 102, the database server 103, the application client 104, and the application server 105 according to the present invention.
In FIG. 2, the CPU 201 centrally controls each device connected to the system bus 204.

また、ROM203あるいは外部メモリ211には、CPU201の制御プログラムであるオペレーティングシステム(OS)や、各サーバ、クライアント、装置など情報処理装置の後述する各種機能を実現するためのプログラムが記憶されている。 Further, the ROM 203 or the external memory 211 stores an operating system (OS) which is a control program of the CPU 201, and programs for realizing various functions of the information processing apparatus such as each server, client, and apparatus described later.

RAM202は、CPU201の主メモリ、ワークエリア、一時待避領域等として機能する。 The RAM 202 functions as a main memory, a work area, a temporary save area, etc. of the CPU 201.

入力コントローラ205は、入力部209からの入力を制御する。この入力部209としては、情報処理装置では、キーボード、マウス等のポインティングデバイスが挙げられる。 The input controller 205 controls the input from the input unit 209. In the information processing apparatus, the input unit 209 may be a pointing device such as a keyboard or a mouse.

出力コントローラ206は、出力部210の表示を制御する。この出力部210としては、例えば、CRTや液晶ディスプレイ等が挙げられる。 The output controller 206 controls the display of the output unit 210. Examples of the output unit 210 include a CRT and a liquid crystal display.

外部メモリコントローラ207は、ブートプログラム、各種のアプリケーション、フォントデータ、ユーザーファイル、編集ファイル、プリンタドライバ等を記憶する外部メモリ211へのアクセスを制御する。加えて、各サーバ、クライアント、装置等の各種機能を実現するための各種テーブル、パラメータが記憶されている。この外部メモリ211としては、ハードディスク(HD)やフレキシブルディスク(FD)、PCMCIAカードスロットにアダプタを介して接続されるコンパクトフラッシュ(登録商標)、スマートメディア等が挙げられる。 The external memory controller 207 controls access to the external memory 211 that stores a boot program, various applications, font data, user files, edit files, printer drivers, and the like. In addition, various tables and parameters for realizing various functions of each server, client, device, etc. are stored. Examples of the external memory 211 include a hard disk (HD), a flexible disk (FD), a compact flash (registered trademark) connected to a PCMCIA card slot via an adapter, smart media, and the like.

通信I/Fコントローラ208は、ネットワークを介して外部機器との通信制御処理を実行する。 The communication I/F controller 208 executes communication control processing with an external device via a network.

本発明を実現するためのプログラム212は外部メモリ211に記録されており、必要に応じてRAM202にロードされることによりCPU201によって実行されるものである。
The program 212 for implementing the present invention is recorded in the external memory 211, and is loaded into the RAM 202 as needed to be executed by the CPU 201.

図3は、本発明の実施の形態のソフトウェア構成を示すブロック図の一例である。
プログラム開発装置101は、以下の機能部を備える。
FIG. 3 is an example of a block diagram showing a software configuration according to the embodiment of the present invention.
The program development device 101 includes the following functional units.

入出力定義管理部301は、プログラムへ引数として入力される項目を定義する入力定義情報と、プログラムから処理結果として出力する項目を定義する出力定義情報とを入出力定義情報として管理する機能部である。 The input/output definition management unit 301 is a functional unit that manages, as input/output definition information, input definition information that defines items that are input as arguments to the program and output definition information that defines items that are output as processing results from the program. is there.

入出力定義管理部301は、Webアプリケーションの画面を介して入力される項目を定義する入力定義情報と、画面に出力する項目を定義する出力定義情報とを入出力定義情報として管理する機能部である。 The input/output definition management unit 301 is a functional unit that manages, as input/output definition information, input definition information that defines items input via the screen of the Web application and output definition information that defines items to be output to the screen. is there.

実行形態設定部302は、プログラムが実行される形態を設定する機能部である。 The execution form setting unit 302 is a functional unit that sets the form in which the program is executed.

選択受付部313は、プログラムをWebサービスとして用いるかの選択を受け付ける機能部である。 The selection receiving unit 313 is a functional unit that receives selection of whether to use the program as a Web service.

プログラム生成制御部303は、実行形態設定部302により設定された実行形態に従って、入出力定義管理部301により管理されている入出力定義情報を用いて、Webアプリケーションとして用いられるプログラムを生成するかWebサービスとして用いられるプログラムを生成するかを制御する機能部である。 In accordance with the execution form set by the execution form setting unit 302, the program generation control unit 303 uses the input/output definition information managed by the input/output definition management unit 301 to generate a program to be used as a Web application. It is a functional unit that controls whether to generate a program used as a service.

プログラム生成制御部303は、入出力定義管理部301により管理されている入出力定義情報を用いて、選択受付部313により受け付けた選択に従って、Webアプリケーションとして用いられるプログラム及び当該Webアプリケーションの処理結果を表示するための画面を出力するプログラムを生成するか又はWebサービスの利用に必要なインタフェースの定義情報及び当該Webサービスとして用いられるプログラムを生成するかを制御する機能部である。 The program generation control unit 303 uses the input/output definition information managed by the input/output definition management unit 301 to display the program used as the Web application and the processing result of the Web application according to the selection accepted by the selection acceptance unit 313. It is a functional unit that controls whether to generate a program that outputs a screen to be displayed or to generate interface definition information necessary for using the Web service and a program used as the Web service.

設定受付部304は、入出力定義管理部301により管理されている入出力定義情報の設定を受け付ける機能部である。 The setting reception unit 304 is a functional unit that receives the setting of the input/output definition information managed by the input/output definition management unit 301.

設定受付部304により設定を受け付けた入力定義情報は、Webサービスを利用するユーザによって画面から入力される値を表す文字列を含む。 The input definition information whose setting has been received by the setting reception unit 304 includes a character string representing a value input from the screen by a user who uses the Web service.

設定受付部304により設定を受け付けた出力定義情報は、Webサービスを利用した結果、取得される値を表す文字列を含む。 The output definition information for which the setting has been received by the setting reception unit 304 includes a character string representing a value acquired as a result of using the Web service.

記憶部305は、Webアプリケーションに用いられるプログラムおよびWebサービスに用いられるプログラムを生成するルールを記憶する機能部である。 The storage unit 305 is a functional unit that stores a rule for generating a program used for a web application and a program used for a web service.

記憶部305は、Webアプリケーションとして用いられるプログラム及びWebサービスとして用いられるプログラムを生成するルールを記憶する機能部である。 The storage unit 305 is a functional unit that stores a rule for generating a program used as a Web application and a program used as a Web service.

プログラム生成制御部303は、実行形態設定部302により設定された実行形態がWebサービスである場合に、設定受付部304により設定を受け付けた入力定義情報に含まれるWebサービスを利用するユーザによって画面から入力される値を表す文字列、及び設定受付部304により設定を受け付けた出力定義情報に含まれるWebサービスを利用した結果、取得される値を表す文字列のうち少なくとも一方と、記憶部305に記憶されているルールを用いて、Webサービスの利用に必要なインタフェースとなるメッセージを生成し、当該メッセージを含むXMLファイルを生成する機能部である。 When the execution form set by the execution form setting unit 302 is a Web service, the program generation control unit 303 displays the screen from the screen by the user who uses the Web service included in the input definition information whose setting is received by the setting reception unit 304. At least one of the character string representing the input value and the character string representing the value acquired as a result of using the Web service included in the output definition information whose setting has been accepted by the setting accepting unit 304, and the storage unit 305. It is a functional unit that uses the stored rules to generate a message that serves as an interface required to use the Web service, and generates an XML file that includes the message.

プログラム生成制御部303は、選択受付部313により受け付けた選択に従って、設定受付部304により設定を受け付けた入力定義情報に含まれるWebサービスを利用するユーザによって画面から入力される値を表す文字列、及び設定受付部304により設定を受け付けた出力定義情報に含まれるWebサービスを利用した結果、取得される値を表す文字列のうち少なくとも一方と、記憶部305に記憶されているルールを用いて、Webサービスの利用に必要なインタフェースの定義情報を生成する機能部である。 The program generation control unit 303, according to the selection received by the selection receiving unit 313, a character string representing a value input from the screen by a user who uses the Web service included in the input definition information whose setting is received by the setting receiving unit 304, And a rule stored in the storage unit 305, using at least one of the character strings representing the value obtained as a result of using the Web service included in the output definition information whose setting is received by the setting reception unit 304, It is a functional unit that generates interface definition information necessary for using the Web service.

プログラム生成制御部303は、入出力定義管理部301により管理されている入力定義情報と出力定義情報のうち、Webサービスに必要な情報を用いて、Webサービスとして用いられるプログラムを生成する機能部である。 The program generation control unit 303 is a functional unit that generates a program used as a Web service by using information necessary for the Web service among the input definition information and the output definition information managed by the input/output definition management unit 301. is there.

プログラム生成制御部303は、入出力定義管理部301により管理されている入力定義情報と出力定義情報のうち、Webサービスに必要な情報を用いて、Webサービスの利用に必要なインタフェースの定義情報を生成する機能部である。 The program generation control unit 303 uses the information necessary for the Web service out of the input definition information and the output definition information managed by the input/output definition management unit 301 to obtain the interface definition information necessary for using the Web service. It is a functional unit to generate.

入出力定義生成部306は、入出力定義管理部301により管理されている入出力定義情報に基づき、新たな入出力定義情報を生成する機能部である。 The input/output definition generation unit 306 is a functional unit that generates new input/output definition information based on the input/output definition information managed by the input/output definition management unit 301.

対応付管理部307は、入出力定義生成部306により生成された入出力定義情報と、当該入出力定義情報の生成の基となった入出力定義情報とを関連付けて管理する機能部である。 The correspondence management unit 307 is a functional unit that manages the input/output definition information generated by the input/output definition generation unit 306 and the input/output definition information that is the basis of the generation of the input/output definition information in association with each other.

設定変更受付部308は、入出力定義管理部301により管理されている入出力定義情報の設定の変更を受け付ける機能部である。、
通知部309は、設定変更受付部308により設定の変更を受け付けた入出力定義情報が対応付管理部307により他の入出力定義情報と対応付けて管理されている場合、ユーザに通知する機能部である。
The setting change reception unit 308 is a functional unit that receives a change in the setting of the input/output definition information managed by the input/output definition management unit 301. ,
The notification unit 309 notifies the user when the input/output definition information whose setting has been changed by the setting change reception unit 308 is managed by the association management unit 307 in association with other input/output definition information. Is.

指示受付部310は、Webサービスに用いられるプログラムの生成指示を受け付ける機能部である。、
指示受付部310は、Webサービスとして用いられるプログラムの生成指示を受け付ける機能部である。、
プログラム生成部311は、指示受付部310により受け付けた生成指示に従って、入出力定義管理部301により管理されている入力定義情報と出力定義情報とを用いて、Webサービスとして用いられるプログラムを生成する機能部である。
The instruction receiving unit 310 is a functional unit that receives an instruction to generate a program used for the Web service. ,
The instruction receiving unit 310 is a functional unit that receives an instruction to generate a program used as a Web service. ,
The program generation unit 311 has a function of generating a program used as a Web service by using the input definition information and the output definition information managed by the input/output definition management unit 301 in accordance with the generation instruction received by the instruction reception unit 310. It is a department.

プログラム生成部311は、指示受付部310により受け付けた生成指示に従って、入出力定義管理部301により管理されている入力定義情報と出力定義情報とを用いて、Webサービスの利用に必要なインタフェースの定義情報及び当該Webサービスとして用いられるプログラムを生成する機能部である。 The program generation unit 311 uses the input definition information and the output definition information managed by the input/output definition management unit 301 in accordance with the generation instruction received by the instruction reception unit 310, and defines the interface required for using the Web service. A functional unit that generates information and a program used as the Web service.

判定部312は、入出力定義管理部301により管理されている入力定義情報と出力定義情報とを用いて、Webサービスとして用いられるプログラムを生成するか否かを判定する機能部である。
プログラム生成部311は、判定部312により、Webサービスとして用いられるプログラムを生成すると判定した場合は、Webアプリケーションとして用いられるプログラムとWebサービスとして用いられるプログラムとを生成し、Webサービスとして用いられるプログラムを生成しないと判定した場合は、Webアプリケーションとして用いられるプログラムを生成する機能部である。
The determination unit 312 is a functional unit that determines whether to generate a program used as a Web service by using the input definition information and the output definition information managed by the input/output definition management unit 301.
When the determination unit 312 determines that the program to be used as the Web service is generated, the program generation unit 311 generates the program to be used as the Web application and the program to be used as the Web service, and determines the program to be used as the Web service. If it is determined not to generate, it is a functional unit that generates a program used as a Web application.

図4は、プログラム開発装置101の構成図である。プログラム開発装置101は、Webアプリケーションを開発する開発者が定義した定義ファイルをもとにWebアプリケーションを自動生成することを目的とした装置である。プログラム開発装置101は、リポジトリ定義部400、アプリケーション生成部410、Webアプリケーションコード生成部420、Webサービスコード生成部430、ソースコードコンパイル部440により構成される。 FIG. 4 is a block diagram of the program development apparatus 101. The program development device 101 is a device intended to automatically generate a web application based on a definition file defined by a developer who develops the web application. The program development device 101 includes a repository definition unit 400, an application generation unit 410, a Web application code generation unit 420, a Web service code generation unit 430, and a source code compilation unit 440.

リポジトリ定義部400は、データベース定義401、アプリケーション定義402、データモデル定義403、入出力定義404、ビジネスプロセス定義405、Webサービス入出力定義406(以下、Webサービス用の入出力定義406と記す)を備える。これらのファイルは、Webアプリケーション開発ツールを介して開発者によって入力され、作成される。 The repository definition unit 400 includes a database definition 401, an application definition 402, a data model definition 403, an input/output definition 404, a business process definition 405, and a web service input/output definition 406 (hereinafter referred to as a web service input/output definition 406). Prepare These files are input and created by the developer via the web application development tool.

すなわち、リポジトリ定義部400は、プログラムへ引数として入力される項目を定義する入力定義情報と、プログラムから処理結果として出力する項目を定義する出力定義情報とを入出力定義情報として管理する手段の一例である。 That is, the repository definition unit 400 is an example of means for managing input definition information defining items input as arguments to the program and output definition information defining items output as processing results from the program as input/output definition information. Is.

なお、この入力定義情報は、生成されたWebアプリケーションの画面を介して当該Webアプリケーションのユーザが入力する入力項目を定義した情報であり、出力定義情報は、生成されたWebアプリケーションの画面として出力する出力項目を定義した情報である、と言い換えることができる。 The input definition information is information defining input items input by the user of the Web application via the screen of the generated Web application, and the output definition information is output as the screen of the generated Web application. In other words, it is information that defines output items.

よって、リポジトリ定義部400は、生成されたプログラムの実行によって表示されるWebアプリケーションの画面を介して入力される項目を定義する入力定義情報と、画面に出力する項目を定義する出力定義情報とを入出力定義情報として管理する手段の一例である。 Therefore, the repository definition unit 400 stores the input definition information defining the items input via the screen of the Web application displayed by the execution of the generated program, and the output definition information defining the items to be output on the screen. It is an example of means for managing as input/output definition information.

そのため、Webアプリケーションの画面における入出力定義情報を、Webサービスとして用いられるプログラムにおける入出力定義情報として利用することができる。 Therefore, the input/output definition information on the screen of the web application can be used as the input/output definition information on the program used as the web service.

これにより、Webアプリケーションの開発フェーズにおいてよくある、画面項目の追加・変更・削除は、Webアプリケーション開発ツールのレイアウトエディタ等を介して、Webアプリケーション画面の入出力項目を直感的に追加・変更・削除することで、Webアプリケーションとして用いられるプログラムだけでなく、Webサービスとして用いられるプログラムにも反映されるため、Webサービスとして用いられるプログラムを容易に生成することができる。 As a result, the addition/change/deletion of screen items, which is often used in the development phase of a web application, can be intuitively added/changed/deleted by using the layout editor of the web application development tool. By doing so, it is reflected not only in the program used as the Web application but also in the program used as the Web service, so that the program used as the Web service can be easily generated.

また、Webアプリケーションの開発においては、Webアプリケーション画面を介してエンドユーザによって入力された値のクライアント端末におけるバリデーションチェック処理(例:JavaScript(登録商標))、その入力値をサーバが受信した際のバリデーションチェック処理(例:サーバサイドJava(登録商標))のように、2回チェック処理を行わなくてはならないケースが多い。
Further, in the development of a web application, a validation check process (eg, JavaScript (registered trademark)) in a client terminal of a value input by an end user via a web application screen, and a validation when the server receives the input value In many cases, such as a check process (for example, server side Java (registered trademark)), the check process must be performed twice.

次に、Webアプリケーションコード生成部420について説明する。リポジトリ定義解析部421は、リポジトリ定義部400からデータベース定義401、アプリケーション定義402、データモデル定義403、入出力定義404、ビジネスプロセス定義405を読み込み解析する。Webアプリケーションコード生成部422は、外部メモリ211に記憶されているコード生成ルールと、リポジトリ定義解析部421によって解析された内容とを用いて、ソースコードコンパイル部440を介し、Webアプリケーションモジュール454を生成する。すなわち、Webアプリケーションコード生成部422は、Webアプリケーションとして用いられるプログラムを生成するルールを記憶する手段の一例である。 Next, the web application code generation unit 420 will be described. The repository definition analysis unit 421 reads and analyzes the database definition 401, the application definition 402, the data model definition 403, the input/output definition 404, and the business process definition 405 from the repository definition unit 400. The Web application code generation unit 422 uses the code generation rule stored in the external memory 211 and the contents analyzed by the repository definition analysis unit 421 to generate the Web application module 454 via the source code compilation unit 440. To do. That is, the Web application code generation unit 422 is an example of a unit that stores a rule for generating a program used as a Web application.

次に、Webサービスコード生成部430について説明する。Webサービス入出力定義解析部431は、リポジトリ定義部400からデータベース定義401、アプリケーション定義402、データモデル定義403、ビジネスプロセス定義405、Webサービス用の入出力定義406を読み込み解析する。Webサービスインタフェースコード生成部432は、外部メモリ211に記憶されているコード生成ルールと、Webサービス入出力定義解析部431によって解析された内容とを用いて、ソースコードコンパイル部440を介し、Webアプリケーションモジュール454を生成する。また、WSDL生成部433は、Webサービス入出力定義解析部431によって解析された内容を用いて、Webサービスモジュール451を生成する。
すなわち、Webサービスコード生成部430は、Webサービスとして用いられるプログラムを生成するルールを記憶する手段の一例である。
Next, the web service code generation unit 430 will be described. The Web service input/output definition analysis unit 431 reads and analyzes the database definition 401, the application definition 402, the data model definition 403, the business process definition 405, and the Web service input/output definition 406 from the repository definition unit 400. The Web service interface code generation unit 432 uses the code generation rule stored in the external memory 211 and the content analyzed by the Web service input/output definition analysis unit 431 to execute the Web application via the source code compilation unit 440. Generate module 454. Further, the WSDL generation unit 433 uses the content analyzed by the Web service input/output definition analysis unit 431 to generate the Web service module 451.
That is, the Web service code generation unit 430 is an example of a unit that stores a rule for generating a program used as a Web service.

図5は、Webアプリケーション/Webサービス生成のフローチャートの一例を示す図である。なお、以下のフローチャートの各ステップは、各装置のCPU201が実行する。
ステップS501において、プログラム開発装置101は、ユーザによるWebアプリケーション/Webサービス生成指示を受け付けると、外部メモリ211に記憶されているリポジトリ定義部400のアプリケーション定義402をRAM202に読み込む。すなわち、ステップS501は、Webサービスとして用いられるプログラムの生成指示を受け付ける処理の一例を示すステップである。
FIG. 5 is a diagram showing an example of a flowchart of Web application/Web service generation. The CPU 201 of each device executes each step of the following flowcharts.
In step S501, when the program development apparatus 101 receives a Web application/Web service generation instruction from the user, it loads the application definition 402 of the repository definition unit 400 stored in the external memory 211 into the RAM 202. That is, step S501 is a step showing an example of a process of receiving a generation instruction of a program used as a Web service.

ステップS502において、プログラム開発装置101は、外部メモリ211に記憶されているリポジトリ定義部400のデータモデル定義403をRAM202に読み込む。 In step S502, the program development apparatus 101 reads the data model definition 403 of the repository definition unit 400 stored in the external memory 211 into the RAM 202.

ステップS503において、プログラム開発装置101は、外部メモリ211に記憶されているリポジトリ定義部400の入出力定義404をRAM202に読み込む。 In step S503, the program development apparatus 101 reads the input/output definition 404 of the repository definition unit 400 stored in the external memory 211 into the RAM 202.

ステップS504において、プログラム開発装置101は、外部メモリ211に記憶されているリポジトリ定義部400のビジネスプロセス定義405をRAM202に読み込む。 In step S 504, the program development apparatus 101 reads the business process definition 405 of the repository definition unit 400 stored in the external memory 211 into the RAM 202.

ステップS505において、プログラム開発装置101は、外部メモリ211に記憶されているリポジトリ定義部400のデータベース定義401をRAM202に読み込む。 In step S505, the program development apparatus 101 reads the database definition 401 of the repository definition unit 400 stored in the external memory 211 into the RAM 202.

ステップS506において、プログラム開発装置101は、RAM202に読み込んだリポジトリ定義部400の各定義・各ファイルから情報を取得し、ソースコードを生成する。 In step S506, the program development apparatus 101 acquires information from each definition/file of the repository definition unit 400 read in the RAM 202 and generates a source code.

なお、生成されたソースコードにはプログラミング言語が記載されたファイルに加え、HTML、JSP、JavaScript(登録商標)等のWebアプリケーションやWebサービスの提供に利用されるファイルも含まれる。ソースコード生成処理については、図6にて詳細を説明する。 The generated source code includes not only files in which programming languages are described but also files used for providing Web applications and Web services such as HTML, JSP, and Java Script (registered trademark). The source code generation process will be described in detail with reference to FIG.

ステップS507において、プログラム開発装置101は、ステップS506にて生成したソースコードをアプリケーションサーバ105に配置(デプロイ)する。これにより、アプリケーションサーバ105上でWebアプリケーション又はWebサービスが動作するようになる。 In step S507, the program development device 101 arranges (deploys) the source code generated in step S506 on the application server 105. As a result, the web application or web service operates on the application server 105.

以上で、図5の説明を終了する。
This is the end of the description of FIG.

図6は、ソースコード生成のフローチャートの一例を示す図である。
ステップS601において、プログラム開発装置101は、RAM202から、Webアプリケーション又はWebサービスの生成を指示されたアプリケーション定義402に対応付けられている入出力定義404又はWebサービス用の入出力定義406を取得し、取得した入出力定義404又はWebサービス用の入出力定義406について、それぞれステップS602〜ステップS604を繰り返す。
FIG. 6 is a diagram showing an example of a flowchart of source code generation.
In step S601, the program development apparatus 101 acquires from the RAM 202 the input/output definition 404 or the Web service input/output definition 406 associated with the application definition 402 instructed to generate the Web application or Web service, Steps S602 to S604 are repeated for the acquired input/output definition 404 or Web service input/output definition 406, respectively.

ステップS602において、プログラム開発装置101は、取得した入出力定義404又はWebサービス用の入出力定義406の実行形態(図17の入出力タイプ1701の値、又は図19の入出力タイプ1901の値)を判定し、入出力タイプ1701のように値が“IO”の場合はWebアプリケーション用の入出力定義404であると捉えてステップS603に進み、入出力タイプ1901のように値が“WEB SERVICE”の場合はWebサービス用の入出力定義406であると捉えてステップS604に進む。 In step S602, the program development apparatus 101 executes the acquired input/output definition 404 or the input/output definition 406 for the Web service (the value of the input/output type 1701 of FIG. 17, or the value of the input/output type 1901 of FIG. 19). If the value is “IO” like the input/output type 1701, it is considered to be the input/output definition 404 for the Web application and the process proceeds to step S603. As the input/output type 1901, the value is “WEB SERVICE”. In the case of, it is regarded as the input/output definition 406 for the Web service and the process proceeds to step S604.

すなわち、入出力タイプ1701は、プログラムが実行される形態を設定する手段の一例である。また、プログラムをWebサービスとして用いるかの選択を受け付ける手段の一例である。 That is, the input/output type 1701 is an example of means for setting the mode in which the program is executed. It is also an example of a unit that accepts selection of whether to use the program as a Web service.

また、ステップS602は、設定された実行形態に従って、入出力定義情報を用いて、Webアプリケーションに用いられるプログラムを生成するかWebサービスに用いられるプログラムを生成するかを制御する処理の一例を示すステップである。 Further, step S602 is a step showing an example of a process of controlling whether to generate a program used for a Web application or a program used for a Web service using the input/output definition information according to the set execution mode. Is.

また、ステップS602は、入出力定義情報を用いて、受け付けた選択に従って、Webアプリケーションとして用いられるプログラム及び当該Webアプリケーションの処理結果を表示するための画面を出力するプログラムを生成するか又はWebサービスの利用に必要なインタフェースの定義情報及び当該Webサービスとして用いられるプログラムを生成するかを制御する処理の一例を示すステップである。 In addition, a step S602 uses the input/output definition information to generate a program used as a web application and a program for outputting a screen for displaying a processing result of the web application according to the received selection, or It is a step showing an example of processing for controlling interface definition information necessary for use and whether to generate a program used as the Web service.

また、図17〜図19の入出力定義画面は、入出力定義情報の設定を受け付ける手段の一例である。 The input/output definition screens of FIGS. 17 to 19 are examples of means for receiving the setting of the input/output definition information.

ステップS603において、プログラム開発装置101は、入出力定義404を用いて、Webアプリケーション用の入出力定義ソースコードを生成する。具体的には、入出力定義404から、入出力項目(図32の項目タイプ3201=IO(入出力)又はI(入力)の項目)、画面表示に必要なパラメータ(図32の初期値3202)、検索対象(図17の対象データモデル1702)、検索条件(図17の対象条件1703)を取得し解析し、図28の2801、2802のようなWebアプリケーション用の入出力定義ソースコードを生成する。 In step S603, the program development apparatus 101 uses the input/output definition 404 to generate the input/output definition source code for the Web application. Specifically, from the input/output definition 404, input/output items (item type 3201=IO (input/output) or I (input) item in FIG. 32) and parameters necessary for screen display (initial value 3202 in FIG. 32) , A search target (target data model 1702 in FIG. 17) and a search condition (target condition 1703 in FIG. 17) are acquired and analyzed, and an input/output definition source code for a Web application like 2801 and 2802 in FIG. 28 is generated. ..

なお、2801のメソッドの戻り値を、入出力定義コード名3203+“Disp”とする。また、入出力項目(図32の項目タイプ3201=IO(入出力)又はI(入力)の項目)は、2801のparamList及び2802のformに含まれることになる。よって、入出力定義404の項目タイプ3201の各設定は、ActionFormクラスのgetter/setterメソッド、JSPファイル内の対応する画面項目のIDやNAMEなどに反映されて、Webアプリケーション用の入出力定義ソースコードが生成される。 The return value of the method 2801 is the input/output definition code name 3203+“Disp”. An input/output item (item type 3201=IO (input/output) or I (input) item in FIG. 32) is included in the paralist of 2801 and the form of 2802. Therefore, each setting of the item type 3201 of the input/output definition 404 is reflected in the getter/setter method of the ActionForm class, the ID or NAME of the corresponding screen item in the JSP file, and the input/output definition source code for the Web application. Is generated.

なお、図32は、Webアプリケーション用の入出力定義画面(項目一覧)3200の一例を示す図であり、ユーザによって表示タブ「入出力(図32の3204)」が押下されると、図17のWebサービス用の入出力定義画面(入出力)1700を表示する。 32 is a diagram showing an example of the input/output definition screen (item list) 3200 for the Web application. When the user presses the display tab “input/output (3204 in FIG. 32)”, FIG. An input/output definition screen (input/output) 1700 for the Web service is displayed.

ステップS604において、プログラム開発装置101は、Webサービス用の入出力定義406を用いて、Webサービス用の入出力定義ソースコードを生成する。すなわち、ステップS604は、受け付けたプログラム生成指示に従って、入力定義情報と出力定義情報とを用いて、Webサービスとして用いられるプログラムを生成する処理の一例を示すステップである。この処理については、後述する図7にて詳細を説明する。 In step S604, the program development apparatus 101 uses the Web service input/output definition 406 to generate an input/output definition source code for the Web service. That is, step S604 is a step showing an example of a process of generating a program used as a Web service by using the input definition information and the output definition information according to the received program generation instruction. Details of this processing will be described later with reference to FIG. 7.

以上により、設定した入出力定義情報を用いて、WebアプリケーションやWebサービスなど開発者が所望する形態に応じたプログラムファイルを容易に生成することができるようになる。特に、アプリケーションかWebサービスを容易に切り替えさせ、所望の形態のプログラムファイルを生成することができるようになる。 As described above, by using the set input/output definition information, it becomes possible to easily generate the program file according to the form desired by the developer such as the web application and the web service. In particular, it becomes possible to easily switch between an application and a Web service and generate a program file in a desired form.

以上で、図6の説明を終了する。
This is the end of the description of FIG. 6.

図7は、Webサービスソースコード生成のフローチャートの一例を示す図である。
ステップS701において、プログラム開発装置101は、Webサービス用の入出力定義406を解析する。具体的には、入出力定義404から、入出力項目(図18の項目タイプ1801=IO(入出力)又はI(入力)の項目)、画面表示に必要なパラメータ(図18の初期値1802)、検索対象(図19の対象データモデル1902)、検索条件(図19の対象条件1903)を取得し解析する。
FIG. 7 is a diagram showing an example of a flowchart of Web service source code generation.
In step S701, the program development apparatus 101 analyzes the Web service input/output definition 406. Specifically, from the input/output definition 404, input/output items (item type 1801=IO (input/output) or I (input) item in FIG. 18) and parameters necessary for screen display (initial value 1802 in FIG. 18) , A search target (target data model 1902 in FIG. 19) and a search condition (target condition 1903 in FIG. 19) are acquired and analyzed.

なお、図18は、Webサービス用の入出力定義画面(項目一覧)1800の一例を示す図であり、ユーザによって表示タブ「入出力(図18の1804)」が押下されると、図19のWebサービス用の入出力定義画面(入出力)1900を表示する。 Note that FIG. 18 is a diagram showing an example of the input/output definition screen (item list) 1800 for the Web service. When the display tab “input/output (1804 in FIG. 18)” is pressed by the user, FIG. An input/output definition screen (input/output) 1900 for the Web service is displayed.

なお、図17と図19、図18と図32の画面構成は同じであり、図29で後述するが、入出力定義404は、既存の入出力定義をコピーして作成することができる。よって、Webサービス用の入出力定義406には、画面表示上の装飾等(例えば、ラジオボタンやセレクトボックス等、どのような画面部品を用いて表示するか等)、Webサービスに不要な設定も含まれる。そのため、ステップS701では、Webサービス用の入出力定義406の解析を行う際に、Webサービスに不要な設定を除き、解析を行う。これにより、解析処理をより短い時間で行うことができるようになる。 The screen configurations of FIGS. 17 and 19 and FIGS. 18 and 32 are the same, and as will be described later with reference to FIG. 29, the input/output definition 404 can be created by copying an existing input/output definition. Therefore, the input/output definition 406 for the Web service includes decorations on the screen display (for example, what kind of screen components such as radio buttons and select boxes are used to display), and settings unnecessary for the Web service. Be done. Therefore, in step S701, when the input/output definition 406 for the Web service is analyzed, the analysis is performed except for settings unnecessary for the Web service. As a result, the analysis process can be performed in a shorter time.

すなわち、ステップS701は、入力定義情報と出力定義情報のうち、Webサービスに必要な情報を用いて、Webサービスとして用いられるプログラムを生成する処理の一例を示すステップである。また、ステップS701は、入力定義情報と出力定義情報のうち、Webサービスに必要な情報を用いて、Webサービスの利用に必要なインタフェースの定義情報を生成する処理の一例を示すステップである。 That is, step S701 is a step showing an example of a process of generating a program used as a web service by using information necessary for the web service out of the input definition information and the output definition information. Further, step S701 is a step showing an example of a process of generating the interface definition information necessary for using the Web service by using the information necessary for the Web service out of the input definition information and the output definition information.

ステップS702において、プログラム開発装置101は、取得した入出力定義404の情報を基にして、図28の2803のようなデータ取得のWebサービスインタフェースコードを生成する。具体的には、図18の入出力定義コード名1803を用いて、戻り値を“WSIo”+ 入出力定義コード名1803 +“GetDataResult”とし、メソッド名を 入出力定義コード名1803+“_getData”として出力し、パラメータ(初期値1802及び対象条件1903に含まれる In step S702, the program development apparatus 101 generates a data acquisition Web service interface code like 2803 of FIG. 28 based on the acquired information of the input/output definition 404. Specifically, using the input/output definition code name 1803 of FIG. 18, the return value is set to “WSIo”+input/output definition code name 1803+“GetDataResult”, and the method name is set to input/output definition code name 1803+“_getData”. Output and include parameters (included in initial value 1802 and target condition 1903)

の個数分だけ)を引数とする。 As many as) are used as arguments.

なお、このメソッドは、アプリケーションサーバ105から、getDataのWebサービスが呼び出されたときに実行される(図21のステップS2102〜ステップS2104)。 Note that this method is executed when the getData Web service is called from the application server 105 (steps S2102 to S2104 in FIG. 21).

また、アクション項目(図27の2701)にBP(ビジネスプロセス)定義(加工式2703の“ Further, the action item (2701 in FIG. 27) has a BP (business process) definition (“

数字”を含む文字列)がある場合は、図28の2804のようなビジネスプロセスを呼び出すWebサービスインタフェースコードを生成する。具体的には、図18の入出力定義コード名1803を用いて、戻り値を“WSIoActionResult”、メソッド名を 入出力定義コード名1803 +“_exec”+ アクションのコード名(加工式2703から If there is a character string including "numerals", a Web service interface code that calls a business process like 2804 in Fig. 28 is generated. Specifically, the input/output definition code name 1803 in Fig. 18 is used to return. The value is "WSIOActionResult", the method name is the input/output definition code name 1803 + "_exec" + the action code name (from the processing expression 2703)

を除いた文字列)として出力し、パラメータを引数とする。 Output as a character string) and use the parameter as an argument.

なお、このメソッドは、アプリケーションサーバ105から、BP(ビジネスプロセス)のWebサービスが呼び出されたときに実行される(図21のステップS2102〜ステップS2104)。 Note that this method is executed when the BP (business process) Web service is called from the application server 105 (steps S2102 to S2104 in FIG. 21).

ステップS703において、プログラム開発装置101は、ステップS701にて解析したWebサービス用の入出力定義406を用いて、WSDL生成(図8)を行う。この処理については、図8にて詳細を説明する。 In step S703, the program development apparatus 101 performs WSDL generation (FIG. 8) using the Web service input/output definition 406 analyzed in step S701. This process will be described in detail with reference to FIG.

すなわち、ステップS702及びステップS703は、設定された実行形態がWebサービスである場合に、設定を受け付けた入力定義情報に含まれるWebサービスを利用するユーザによって画面から入力される値を表す文字列及び設定を受け付けた出力定義情報に含まれるWebサービスを利用した結果、取得される値を表す文字列のうち少なくとも一方と、記憶されているルールを用いて、Webサービスの利用に必要なインタフェースとなるメッセージを生成し、当該メッセージを含むXMLファイルを生成する処理の一例を示すステップである。 That is, in steps S702 and S703, when the set execution form is a Web service, a character string representing a value input from the screen by a user who uses the Web service included in the input definition information for which the setting is accepted, and As a result of using the Web service included in the output definition information for which the setting has been accepted, an interface necessary for using the Web service is obtained by using at least one of the character strings that represent the values that are acquired and the stored rules. It is a step which shows an example of the process which produces|generates a message and produces|generates the XML file containing the said message.

また、ステップS702及びステップS703は、受け付けた選択に従って、設定を受け付けた入力定義情報に含まれるWebサービスを利用するユーザによって画面から入力される値を表す文字列及び設定を受け付けた出力定義情報に含まれるWebサービスを利用した結果、取得される値を表す文字列のうち少なくとも一方と、記憶されているルールを用いて、Webサービスの利用に必要なインタフェースの定義情報を生成する処理の一例を示すステップである。 In addition, in steps S702 and S703, according to the received selection, a character string representing a value input from the screen by the user who uses the Web service included in the input definition information for which the setting is received and the output definition information for which the setting is received are set. An example of processing for generating interface definition information necessary for using the Web service using at least one of the character strings representing the values obtained as a result of using the included Web service and the stored rule These are the steps shown.

以上で、図7の説明を終了する。
This is the end of the description of FIG. 7.

図8は、WSDL生成のフローチャートの一例を示す図である。
ステップS801において、プログラム開発装置101は、getDataリクエスト生成(図9)を行う。この処理については、図9にて詳細を説明する。
FIG. 8 is a diagram illustrating an example of a flowchart of WSDL generation.
In step S801, the program development apparatus 101 generates getData request (FIG. 9). This processing will be described in detail with reference to FIG.

ステップS802において、getDataレスポンス生成(図11)を行う。この処理については、図11にて詳細を説明する。 In step S802, getData response generation (FIG. 11) is performed. This process will be described in detail with reference to FIG.

なお、getDataリクエスト/getDataレスポンスは対になっており、主に画面情報を取得するために利用される。 Note that the getData request/getData response are paired and are mainly used to acquire screen information.

ステップS803において、BPリクエスト生成(図13)を行う。この処理については、図13にて詳細を説明する。 In step S803, BP request generation (FIG. 13) is performed. This processing will be described in detail with reference to FIG.

ステップS804において、BPレスポンス生成(図15)を行う。この処理については、図15にて詳細を説明する。 In step S804, BP response generation (FIG. 15) is performed. This processing will be described in detail with reference to FIG.

なお、BPリクエスト/BPレスポンスは対になっており、それぞれアクション実行とアクション結果取得のために利用される。 Note that the BP request/BP response are paired and are used for executing an action and acquiring an action result, respectively.

以上で、図8の説明を終了する。
This is the end of the description of FIG.

図9は、getDataリクエスト生成のフローチャートの一例を示す図である。
ステップS901において、プログラム開発装置101は、入出力定義404に対象条件1903の設定があるか否かを判定し、ある場合はステップS902に進み、ない場合は図9の処理を終了する。
FIG. 9 is a diagram illustrating an example of a flowchart of generating a getData request.
In step S901, the program development apparatus 101 determines whether the target condition 1903 is set in the input/output definition 404, the process proceeds to step S902 if there is, and the process of FIG.

ステップS902において、プログラム開発装置101は、WSDLにデータ取得処理のリクエストの記述を出力する(図10の1001)。具体的には、入出力定義コード名1803を用いて、 operation name= 入出力定義コード名1803+“_getData”、message= 入出力定義コード名1803+“_getDataRequest” のように出力する。これにより、「IO002_WSDL_getData」という検索処理がWebサービスとして公開され、外部アプリケーションから利用することができるようになる。 In step S902, the program development apparatus 101 outputs the description of the data acquisition processing request to the WSDL (1001 in FIG. 10). Specifically, the input/output definition code name 1803 is used to output as operation name=input/output definition code name 1803+“_getData”, message=input/output definition code name 1803+“_getDataRequest”. As a result, the search process “IO002_WSDL_getData” is published as a Web service and can be used by an external application.

ステップS903において、プログラム開発装置101は、入出力定義404にパラメータがあるか否かを判定し、ある場合はステップS904に進み、ない場合は図9の処理を終了する。具体的には、対象条件1903又は初期値1802に“ In step S903, the program development apparatus 101 determines whether or not there is a parameter in the input/output definition 404, the process proceeds to step S904 if there is, and the process of FIG. 9 ends if there is no parameter. Specifically, the target condition 1903 or the initial value 1802 is set to "

数字”を含む文字列が含まれる場合は、図10の1002の記述を出力し、ステップS904に進む。1002の記述は、具体的には、入出力定義コード名1803を用いて、 element=“ns:”+ 入出力定義コード名1803 +“_getData” とする。これにより、検索処理「IO002_WSDL_getData」を呼び出す際に、パラメータを送ることができるようになる。 When the character string including the numeral is included, the description of 1002 in FIG. 10 is output, and the process proceeds to step S904. Specifically, the description of 1002 uses the input/output definition code name 1803 and element=“ ns: "+ I/O definition code name 1803 + "_getData". This allows parameters to be sent when calling the search process "IO002_WSDL_getData".

ステップS904において、WSDLに図10の1003のような記述をパラメータ数だけ出力する。具体的に、1003の記述は、パラメータの通し番号N( In step S904, the description such as 1003 in FIG. 10 is output to the WSDL by the number of parameters. Specifically, the description of 1003 is the serial number N(

数字の数字部)を用いて、 name=“param”+N とする。 Using the numeral part of the number, name=“param”+N.

以上で、図9の説明を終了する。
This is the end of the description of FIG. 9.

図10は、getDataリクエストWSDL1000の一例を示す図である。図10は、入出力定義404に対象条件1903の設定があり、かつ入出力定義404にパラメータがある場合のリクエストWSDLの一例である。
図11は、getDataレスポンス生成のフローチャートの一例を示す図である。
FIG. 10 is a diagram illustrating an example of the getData request WSDL 1000. FIG. 10 is an example of the request WSDL when the input/output definition 404 has the target condition 1903 set and the input/output definition 404 has parameters.
FIG. 11 is a diagram showing an example of a flowchart for generating a getData response.

ステップS1101において、プログラム開発装置101は、ステップS901と同様、入出力定義404に対象条件1903の設定があるか否かを判定し、ある場合はステップS1102に進み、ない場合は図11の処理を終了する。 In step S1101, the program development apparatus 101 determines whether or not there is a target condition 1903 setting in the input/output definition 404, as in step S901. If yes, the process proceeds to step S1102; otherwise, the process of FIG. 11 is performed. finish.

ステップS1102において、プログラム開発装置101は、WSDLにデータ取得処理のレスポンスの記述を出力する(図12の1201)。具体的には、入出力定義コード名1803を用いて、 operation name= 入出力定義コード名1803+“_getData”、 message= 入出力定義コード名1803+“_getDataResponse” のように出力する。これにより、Webサービスとして公開された検索処理「IO002_WSDL_getData」の戻り値を公開することができるようになる。 In step S1102, the program development apparatus 101 outputs the description of the response of the data acquisition process to the WSDL (1201 in FIG. 12). Specifically, the input/output definition code name 1803 is used to output as operation name=input/output definition code name 1803+“_getData”, message=input/output definition code name 1803+“_getDataResponse”. As a result, the return value of the search process “IO002_WSDL_getData” published as a Web service can be published.

ステップS1103において、プログラム開発装置101は、Webサービス用の入出力定義406から、入出力項目(図18の項目タイプ1801=IO(入出力)又はO(出力)の項目)を取得し、WSDLに項目定義を出力する(図12の1202)。具体的には、入出力定義画面(入出力)1900の対象データモデル1902に設定されたデータモデルの項目コード2001(図20)を用いて、 name=項目コード2001 とし、データタイプ2002(図20)に従ってデータの型名を決定し、 type=“xs:”+型名 とする。図12の1202の記述から、検索処理の結果として、String型の「item_key」と、String型の「item_value」という項目が出力されることがわかる。これにより、Webサービスの実行結果の戻り値に含まれる項目IDと型情報を公開できるようになる。 In step S1103, the program development apparatus 101 acquires an input/output item (item type 1801=IO (input/output) or O (output) item in FIG. 18) from the input/output definition 406 for the Web service, and saves it in the WSDL. The item definition is output (1202 in FIG. 12). Specifically, using the item code 2001 (FIG. 20) of the data model set in the target data model 1902 of the input/output definition screen (input/output) 1900, name=item code 2001 and the data type 2002 (FIG. 20) are set. ), the type name of the data is determined, and type=“xs:”+type name. From the description of 1202 in FIG. 12, it can be seen that items of the string type “item_key” and the string type “item_value” are output as the result of the search process. This makes it possible to publish the item ID and type information included in the return value of the execution result of the Web service.

なお、図20は、Webアプリケーション開発ツールによって生成されたWebアプリケーション及びWebサービスが利用するデータモデル定義画面の一例を示す図である。この画面で定義する各項目はWebアプリケーション及びWebサービスが接続するデータベースのテーブルのカラム名と一致する。 20. FIG. 20 is a diagram showing an example of the data model definition screen used by the web application and the web service generated by the web application development tool. Each item defined on this screen matches the column name of the table of the database to which the web application and the web service are connected.

以上で、図11の説明を終了する。
This is the end of the description of FIG. 11.

図12は、getDataレスポンスWSDL1200の一例を示す図である。図12は、入出力定義404に対象条件1903の設定があり、かつ出力項目が存在する場合のレスポンスWSDLの一例である。
図13は、BP(ビジネスプロセス)リクエスト生成のフローチャートの一例を示す図である。
FIG. 12 is a diagram showing an example of the getData response WSDL 1200. FIG. 12 is an example of the response WSDL when the target condition 1903 is set in the input/output definition 404 and an output item exists.
FIG. 13 is a diagram showing an example of a flowchart of BP (business process) request generation.

ステップS1301において、プログラム開発装置101は、図27の項目タイプ2701の定義を取得し、項目タイプ2701=「A:アクション」の項目にビジネスプロセス(図27の加工式2703)の定義があるか否か判定する。ある場合はステップS1302に進み、ない場合は図13の処理を終了する。 In step S1301, the program development apparatus 101 acquires the definition of the item type 2701 of FIG. 27, and whether the item of item type 2701=“A: action” has a definition of a business process (modification formula 2703 of FIG. 27). Determine whether. If there is, the process proceeds to step S1302, and if not, the process of FIG. 13 ends.

ステップS1302において、プログラム開発装置101は、WSDLにビジネスプロセス定義を出力する(図14の1401)。具体的には、入出力定義コード名1803とアクションの項目コード名2702を用いて、operation name= 入出力定義コード名1803 +“_exec”+ アクションの項目コード名2702 +message= 入出力定義コード名1803 +“_exec”+ アクションの項目コード名2702 +“Request” とする。これにより、「IO002_WSDL_execINSERT」という登録処理がWebサービスとして公開され、外部アプリケーションから利用することができるようになる。 In step S1302, the program development apparatus 101 outputs the business process definition to WSDL (1401 in FIG. 14). Specifically, using the input/output definition code name 1803 and the action item code name 2702, operation name=input/output definition code name 1803 +“_exec”+action item code name 2702 +message=input/output definition code name 1803 + "_Exec" + action item code name 2702 + "Request" As a result, the registration process "IO002_WSDL_execINSERT" is published as a Web service and can be used by an external application.

ステップS1303において、プログラム開発装置101は、Webサービス用の入出力定義406に、入出力項目(図18の項目タイプ1801=IO(入出力)又はI(入力)の項目)の有無を判定する。ある場合はステップS1304に進み、ない場合は図13の処理を終了する。 In step S1303, the program development apparatus 101 determines the presence/absence of an input/output item (item type 1801=IO (input/output) or I (input) item in FIG. 18) in the input/output definition 406 for the Web service. If there is, the process proceeds to step S1304, and if not, the process of FIG. 13 ends.

ステップS1304において、プログラム開発装置101は、WSDLにビジネスプロセスへのパラメータを出力する(図14の1402)。具体的には、入出力定義コード名1803とアクションの項目コード名2702を用いて、element=入出力定義コード名1803 +“_exec”+ アクションの項目コード名2702 とする。これにより、登録処理「IO002_WSDL_execINSERT」の呼出し時に、外部アプリケーションからパラメータを与えることができるようになる。 In step S1304, the program development device 101 outputs the parameters to the business process to the WSDL (1402 in FIG. 14). Specifically, using the input/output definition code name 1803 and the action item code name 2702, element=input/output definition code name 1803 +“_exec”+action item code name 2702. As a result, it becomes possible to provide a parameter from the external application when the registration process “IO002_WSDL_execINSERT” is called.

ステップS1305において、プログラム開発装置101は、Webサービス用の入出力定義406から、入出力項目(図18の項目タイプ1801=IO(入出力)又はI(入力)の項目)を取得し、WSDLに項目定義を出力する(図14の1403)。具体的には、入出力定義画面(入出力)1900の対象データモデル1902に設定されたデータモデルの項目コード2001(図20)を用いて、 name=項目コード2001 とし、データタイプ2002(図20)に従ってデータの型名を決定し、 type=“xs:”+型名 とする。図14の1403の記述から、登録処理のパラメータは、String型の「item_key」、String型の「item_param」、String型の「item_value」であるということがわかる。これにより、Webサービスの実行時のパラメータを公開できるようになる。 In step S1305, the program development apparatus 101 acquires the input/output item (item type 1801=IO (input/output) or I (input) item in FIG. 18) from the input/output definition 406 for the Web service, and saves it in the WSDL. The item definition is output (1403 in FIG. 14). Specifically, using the item code 2001 (FIG. 20) of the data model set in the target data model 1902 of the input/output definition screen (input/output) 1900, name=item code 2001 and the data type 2002 (FIG. 20) are set. ), the type name of the data is determined, and type=“xs:”+type name. From the description of 1403 in FIG. 14, it can be seen that the parameters of the registration process are the String type “item_key”, the String type “item_param”, and the String type “item_value”. As a result, the parameters at the time of executing the Web service can be disclosed.

以上で、図13の説明を終了する。
This is the end of the description of FIG. 13.

図14は、BPリクエストWSDL1400の一例を示す図である。図14は、入出力定義404にビジネスプロセスが定義されたアクション項目があり、かつ入出力項目にIO又はI項目が存在する場合のBPリクエストWSDLの一例である。
図15は、BPレスポンス生成のフローチャートの一例を示す図である。
FIG. 14 is a diagram showing an example of the BP request WSDL 1400. FIG. 14 is an example of the BP request WSDL when the input/output definition 404 includes an action item in which a business process is defined and the input/output item includes an IO or I item.
FIG. 15 is a diagram showing an example of a flowchart of BP response generation.

ステップS1501において、プログラム開発装置101は、図27の項目タイプ2701の定義を取得し、項目タイプ2701=「A:アクション」の項目にビジネスプロセス(図27の加工式2703)の定義があるか否か判定する。ある場合はステップS1502に進み、ない場合は図15の処理を終了する。 In step S1501, the program development apparatus 101 acquires the definition of the item type 2701 of FIG. 27, and whether the item of item type 2701=“A: action” has a definition of a business process (modification formula 2703 of FIG. 27). Determine whether. If yes, the process proceeds to step S1502, and if not, the process of FIG. 15 ends.

ステップS1502において、プログラム開発装置101は、WSDLにビジネスプロセス定義を出力する(図16の1601)。具体的には、入出力定義コード名1803とアクションの項目コード名2702を用いて、operation name= 入出力定義コード名1803 +“_exec”+アクションの項目コード名2702 +message= 入出力定義コード名1803 +“_exec”+ アクションの項目コード名2702 +“Response” とする。これにより、登録処理「IO002_WSDL_execINSERT」を外部アプリケーションから利用した時の戻り値を公開できるようになる。 In step S1502, the program development apparatus 101 outputs the business process definition to WSDL (1601 in FIG. 16). Specifically, using the input/output definition code name 1803 and the action item code name 2702, operation name=input/output definition code name 1803+“_exec”+action item code name 2702+message=input/output definition code name 1803 +“_exec”+action item code name 2702 +“Response” This makes it possible to publish the return value when the registration process “IO002_WSDL_execINSERT” is used from an external application.

ステップS1503において、プログラム開発装置101は、図27の次入出力2704の定義を取得し、WSDLに次画面情報を出力する(図16の1602)。具体的には、nextIoの値が空の場合は、画面遷移を行わずに自画面に遷移することを表すものとする。これにより、登録処理「IO002_WSDL_execINSERT」を利用した後に遷移する入出力を公開できるようになる。 In step S1503, the program development apparatus 101 acquires the definition of the next input/output 2704 in FIG. 27 and outputs the next screen information to the WSDL (1602 in FIG. 16). Specifically, when the value of nextIo is empty, it means that the screen is changed to the own screen without being changed. This makes it possible to publish the input/output that transitions after using the registration process “IO002_WSDL_execINSERT”.

ステップS1504において、プログラム開発装置101は、図27の次入出力パラメータ2705の定義を取得し、次入出力パラメータ2705に設定されている変数の数だけ、WSDLに次入出力パラメータ定義を出力する(図16の1603)。これにより、登録処理「IO002_WSDL_execINSERT」を利用した結果、次の画面へどのような引数が渡されるかを公開できるようになる。 In step S1504, the program development apparatus 101 acquires the definition of the next input/output parameter 2705 of FIG. 27, and outputs the next input/output parameter definition to the WSDL by the number of variables set in the next input/output parameter 2705 ( 1603 in FIG. 16). This makes it possible to disclose what argument is passed to the next screen as a result of using the registration process “IO002_WSDL_execINSERT”.

以上で、図15の説明を終了する。
This is the end of the description of FIG.

以上の図9〜図15の処理によってWSDLファイルを生成することにより、プログラムへ引数として入力される項目を定義する入力定義情報やプログラムから処理結果として出力する項目を定義する出力定義情報を管理する必要があるWebアプリケーション開発ツールにおいて、それらの入出力定義情報を用いたWSDLファイルを生成することができないという問題を解決することができる。
つまり、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を容易に生成することができるようになる。
By generating the WSDL file by the processing of FIGS. 9 to 15 described above, the input definition information defining the items input as arguments to the program and the output definition information defining the items output from the program as the processing result are managed. It is possible to solve the problem that the required Web application development tool cannot generate the WSDL file using the input/output definition information.
That is, the Web service definition information can be easily generated using the input/output definition information of the Web application.

図16は、BPレスポンスWSDL1600の一例を示す図である。図16は、入出力定義404にビジネスプロセスが定義されたアクション項目があり、かつ次入出力パラメータ2705が設定されている場合のBPレスポンスWSDLの一例である。 FIG. 16 is a diagram showing an example of the BP response WSDL 1600. FIG. 16 is an example of the BP response WSDL when the input/output definition 404 has an action item in which a business process is defined and the next input/output parameter 2705 is set.

図21は、外部アプリケーションを実行している外部アプリケーションクライアントが、図5の処理により生成されたWebサービスを利用するフローチャートの一例を示す図である。図22は、Webサービスを利用する外部アプリケーションのINPUT画面2200の一例を示す図である。図25は、Webサービスを利用する外部アプリケーションのOUTPUT画面2500の一例を示す図である。 FIG. 21 is a diagram showing an example of a flowchart in which the external application client executing the external application uses the Web service generated by the processing of FIG. FIG. 22 is a diagram showing an example of the INPUT screen 2200 of the external application using the Web service. FIG. 25 is a diagram showing an example of an OUTPUT screen 2500 of an external application that uses a Web service.

ステップS2101において、外部アプリケーションクライアントは、外部アプリケーションのユーザによる検索条件(図22の商品コード2201)の入力を受け付け、検索ボタン2202の押下による処理実行指示を受け付ける。 In step S2101, the external application client receives input of search conditions (product code 2201 in FIG. 22) by the user of the external application, and receives a process execution instruction by pressing the search button 2202.

ステップS2102において、外部アプリケーションクライアントは、外部アプリケーションサーバにリクエストを送信する。 In step S2102, the external application client sends a request to the external application server.

ステップS2103において、外部アプリケーションサーバは、リクエストを受信する。 In step S2103, the external application server receives the request.

ステップS2104において、外部アプリケーションサーバは、Webサービスサーバ(図1のアプリケーションサーバ105。つまり、図5の処理により生成されたWebサービスをデプロイしたサーバ。)にて公開されているgetData処理(図10の1001)を利用すべく、Webサービスサーバに図23のようなリクエストを送信する。具体的には、ステップS2101にて入力を受け付けた検索条件(商品コード2201)の値を用いたパラメータ2301を含むリクエストを送信する。 In step S2104, the external application server is the getData process (FIG. 10 in FIG. 10) published by the web service server (application server 105 in FIG. 1, that is, the server into which the web service generated by the process in FIG. 5 is deployed). In order to use 1001), a request as shown in FIG. 23 is transmitted to the web service server. Specifically, the request including the parameter 2301 using the value of the search condition (product code 2201) input in step S2101 is transmitted.

ステップS2105において、Webサービスサーバは、リクエストを受信する。 In step S2105, the web service server receives the request.

ステップS2106において、Webサービスサーバは、受信したリクエストに含まれるパラメータを用いて、図20のデータモデル定義2000で定義されるテーブルを検索する。具体的には、Webサービスのプログラムに含まれる、Webサービス用の入出力定義画面(入出力)1900の対象データモデル1902と対象条件1903を用いて、検索処理を行う。 In step S2106, the Web service server searches the table defined by the data model definition 2000 of FIG. 20 using the parameters included in the received request. Specifically, the search process is performed using the target data model 1902 and the target condition 1903 of the input/output definition screen (input/output) 1900 for the Web service included in the program of the Web service.

なお、検索対象となるテーブルのカラムは、Webサービスのプログラムに含まれる、データモデル定義2000(図20)に定義されている項目コード2001であり、テーブル(商品マスタテーブル2600)には図26のようなデータが記憶されているものとする。ここでは、対象条件1903に従って、ITEM_KEY=“C101”という検索条件で商品マスタテーブル2600を検索することにより、検索結果としてレコード2603を取得したとする。 The column of the table to be searched is the item code 2001 defined in the data model definition 2000 (FIG. 20) included in the Web service program, and the table (commodity master table 2600) shown in FIG. It is assumed that such data is stored. Here, it is assumed that the record 2603 is acquired as the search result by searching the product master table 2600 under the search condition ITEM_KEY=“C101” according to the target condition 1903.

ステップS2107において、Webサービスサーバは、外部アプリケーションサーバへ図24のようなレスポンス2400を送信する。具体的には、レスポンス2400には、ステップS2106の検索処理にて取得した検索結果である、item_key2401とitem_value2402の値が含まれる。 In step S2107, the Web service server sends a response 2400 as shown in FIG. 24 to the external application server. Specifically, the response 2400 includes the values of item_key 2401 and item_value 2402, which are the search results acquired in the search process of step S2106.

ステップS2108において、外部アプリケーションサーバは、レスポンス2400を受信する。 In step S2108, the external application server receives the response 2400.

ステップS2109において、外部アプリケーションサーバは、受信したレスポンスを用いて、Webサービスの利用結果を表示する画面情報(例えば、HTML等)を生成し、外部アプリケーションクライアントへ画面情報を送信する。具体的には、画面情報には、レスポンス2400に含まれる検索結果が含まれる。 In step S2109, the external application server uses the received response to generate screen information (for example, HTML) that displays the usage result of the Web service, and transmits the screen information to the external application client. Specifically, the screen information includes the search result included in the response 2400.

ステップS2110において、外部アプリケーションクライアントは、画面情報を受信する。 In step S2110, the external application client receives the screen information.

ステップS2111において、外部アプリケーションクライアントは、画面情報を用いて、Webサービスの利用結果を表示する。具体的には、Webサービスの利用した結果、取得できたitem_value2402の値を外部アプリケーションのOUTPUT画面2500(図25)の商品名2501に表示する。 In step S2111, the external application client uses the screen information to display the usage result of the Web service. Specifically, the value of item_value 2402 acquired as a result of using the Web service is displayed on the product name 2501 of the OUTPUT screen 2500 (FIG. 25) of the external application.

また、外部アプリケーションクライアントは、図25の登録ボタン2502の押下を受け付けることにより、外部アプリケーションサーバにリクエストを送信し、外部アプリケーションサーバはWebサービスサーバにて公開されているexecINSERT処理(図14の1401)を利用すべく、Webサービスサーバにリクエストを送信する。この処理は、図21のフローチャートと同様の流れである。 In addition, the external application client transmits a request to the external application server by accepting the press of the registration button 2502 in FIG. 25, and the external application server executes execINSERT processing published on the Web service server (1401 in FIG. 14). Request is sent to the Web service server in order to use. This process has the same flow as the flowchart of FIG.

以上により、外部アプリケーションを実行している外部アプリケーションクライアントが、図5の処理により生成されたWebサービスを利用することができる。 As described above, the external application client executing the external application can use the Web service generated by the processing of FIG.

以上で、図21の説明を終了する。
This is the end of the description of FIG.

図29は、入出力定義作成のフローチャートの一例を示す図である。この処理は、図17や図19のような入出力定義404を作成する処理である。
ステップS2901において、プログラム開発装置101は、入出力定義作成の指示を受け付け、その指示のタイプを判定する(不図示)。新規に作成する場合はステップS2902に進み、既存の入出力定義をコピーして作成する場合はステップS2903に進む。
FIG. 29 is a diagram showing an example of a flow chart of input/output definition creation. This process is a process of creating the input/output definition 404 as shown in FIGS.
In step S2901, the program development apparatus 101 receives an input/output definition creation instruction and determines the type of the instruction (not shown). If it is newly created, the process proceeds to step S2902, and if it is created by copying the existing input/output definition, the process proceeds to step S2903.

ステップS2902において、プログラム開発装置101は、入出力定義404を新規に作成する。ここでは、図17のような入出力タイプ=“IO”の入出力定義404が作成されたとする。 In step S2902, the program development apparatus 101 newly creates the input/output definition 404. Here, it is assumed that the input/output definition 404 of the input/output type=“IO” as shown in FIG. 17 is created.

ステップS2903において、プログラム開発装置101は、コピー元となる既存の入出力定義404の指示を受け付ける。ここでは、Webアプリケーション用の入出力定義404が選択されたとする。Webアプリケーション用の入出力定義404とは、図17のように入出力タイプ=“IO”の入出力定義404である。 In step S2903, the program development apparatus 101 receives the instruction of the existing input/output definition 404 that is the copy source. Here, it is assumed that the input/output definition 404 for the Web application is selected. The input/output definition 404 for the Web application is the input/output definition 404 of the input/output type=“IO” as shown in FIG.

ステップS2904において、プログラム開発装置101は、コピー元として指示された既存の入出力定義404の内容をコピーして、新規の入出力定義404を作成する。すなわち、ステップS2904は、入出力定義情報に基づき、新たな入出力定義情報を生成する処理の一例を示すステップである。 In step S2904, the program development apparatus 101 copies the contents of the existing input/output definition 404 designated as the copy source to create a new input/output definition 404. That is, step S2904 is a step showing an example of a process of generating new input/output definition information based on the input/output definition information.

ステップS2905において、プログラム開発装置101は、ステップS2903にて指示を受け付けたコピー元の入出力定義404と、ステップS2904にて作成したコピー先の入出力定義404とを関連付けて、外部メモリ211に記憶する。すなわち、ステップS2905は、生成された入出力定義情報と、当該入出力定義情報の生成の基となった入出力定義情報とを関連付けて管理する処理の一例を示すステップである。 In step S2905, the program development apparatus 101 associates the input/output definition 404 of the copy source, which received the instruction in step S2903, with the input/output definition 404 of the copy destination created in step S2904, and stores them in the external memory 211. To do. That is, step S2905 is a step showing an example of processing for managing the generated input/output definition information and the input/output definition information that is the basis of the generation of the input/output definition information in association with each other.

ステップS2906において、プログラム開発装置101は、S2902又はS2904にて作成した入出力定義404の設定について、ユーザによる入力を受け付ける。ここでは、Webサービス用の入出力定義406に設定が変更されたとする。Webサービス用の入出力定義406とは、図19のように入出力タイプ1901=“WEB SERVICE”の入出力定義404である。 In step S2906, the program development apparatus 101 receives an input from the user regarding the setting of the input/output definition 404 created in S2902 or S2904. Here, it is assumed that the setting is changed to the input/output definition 406 for the web service. The input/output definition 406 for the Web service is the input/output definition 404 of the input/output type 1901="WEB SERVICE" as shown in FIG.

ステップS2907において、プログラム開発装置101は、ユーザによる入出力定義404の記憶指示を受け付ける。 In step S2907, the program development apparatus 101 receives a user's storage instruction of the input/output definition 404.

ステップS2908において、プログラム開発装置101は、入出力定義404の設定を外部メモリ211に記憶する。 In step S2908, the program development device 101 stores the setting of the input/output definition 404 in the external memory 211.

以上で、図29の説明を終了する。
This is the end of the description of FIG.

図30は、入出力定義編集のフローチャートの一例を示す図である。この処理は、図29にて作成した入出力定義404の設定を編集する処理である。
ステップS3001において、プログラム開発装置101は、入出力定義404の編集を受け付ける。具体的には、図17〜図19の各項目の値について、ユーザの編集を受け付ける。すなわち、ステップS3001は、入出力定義情報の設定の変更を受け付ける処理の一例を示すステップである。
FIG. 30 is a diagram showing an example of a flowchart of input/output definition editing. This process is a process of editing the setting of the input/output definition 404 created in FIG.
In step S3001, the program development apparatus 101 accepts editing of the input/output definition 404. Specifically, the user's editing of the values of the items in FIGS. 17 to 19 is accepted. That is, step S3001 is a step showing an example of a process of accepting a change in the setting of the input/output definition information.

ステップS3002において、プログラム開発装置101は、ステップS3001にて編集を受け付けた入出力定義404の実行形態(入出力タイプ)の値を判定する。入出力タイプ=“IO”(Webアプリケーション用の入出力定義404を意味する)の場合はステップS3003に進み、入出力タイプ=“WEB SERVICE”(Webサービス用の入出力定義406を意味する)の場合はステップS3004に進む。 In step S3002, the program development apparatus 101 determines the value of the execution form (input/output type) of the input/output definition 404 that has been edited in step S3001. When the input/output type=“IO” (means the input/output definition 404 for the Web application), the process proceeds to step S3003, and the input/output type=“WEB SERVICE” (means the input/output definition 406 for the Web service). In this case, the process proceeds to step S3004.

ステップS3003において、プログラム開発装置101は、ステップS3001にて編集を受け付けた入出力定義404に、コピー元又はコピー先として入出力タイプ=“WEB SERVICE”の入出力定義406との関連付けがあるか否かを判定する。ある場合はステップS3005に進み、ない場合は図30の処理を終了する。 In step S3003, the program development apparatus 101 determines whether or not the input/output definition 404 that has been edited in step S3001 is associated with the input/output definition 406 of the input/output type=“WEB SERVICE” as the copy source or the copy destination. Determine whether. If yes, the process proceeds to step S3005, and if not, the process of FIG. 30 ends.

ステップS3004において、プログラム開発装置101は、ステップS3001にて編集を受け付けた入出力定義406に、コピー元又はコピー先として入出力タイプ=“IO”の入出力定義404が関連付けられているかを判定する。関連付けがある場合はステップS3006に進み、関連付けがない場合は図30の処理を終了する。 In step S3004, the program development apparatus 101 determines whether the input/output definition 406 of which the edit is accepted in step S3001 is associated with the input/output definition 404 of the input/output type=“IO” as the copy source or the copy destination. .. If there is an association, the process proceeds to step S3006, and if there is no association, the process of FIG. 30 ends.

ステップS3005において、プログラム開発装置101は、確認メッセージ3111(図31)又は確認メッセージ3112(図31)を表示し、ステップS3003にて関連付けられていると判定されたWebサービス用の入出力定義406を更新するか否かの指示を受け付ける。「OK」の場合はステップS3007に進み、「キャンセル」の場合は図30の処理を終了する。 In step S3005, the program development apparatus 101 displays the confirmation message 3111 (FIG. 31) or the confirmation message 3112 (FIG. 31), and outputs the input/output definition 406 for the Web service determined to be associated in step S3003. An instruction to update or not is accepted. In the case of “OK”, the process proceeds to step S3007, and in the case of “cancel”, the process of FIG. 30 ends.

ステップS3006において、プログラム開発装置101は、確認メッセージ3121(図31)又は確認メッセージ3122(図31)を表示し、ステップS3004にて関連付けられていると判定されたWebアプリケーション用の入出力定義404を更新するか否かの指示を受け付ける。「OK」の場合はステップS3008に進み、「キャンセル」の場合は図30の処理を終了する。 In step S3006, the program development apparatus 101 displays the confirmation message 3121 (FIG. 31) or the confirmation message 3122 (FIG. 31), and outputs the input/output definition 404 for the Web application determined to be associated in step S3004. An instruction to update or not is accepted. In the case of “OK”, the process proceeds to step S3008, and in the case of “cancel”, the process of FIG. 30 ends.

すなわち、ステップS3005及びステップS3006は、設定の変更を受け付けた入出力定義情報が他の入出力定義情報と対応づけて管理されている場合、ユーザに通知する処理の一例を示すステップである。 That is, step S3005 and step S3006 are steps showing an example of the process of notifying the user when the input/output definition information for which the setting change is received is managed in association with other input/output definition information.

ステップS3007において、プログラム開発装置101は、ステップS3003にて関連付けられていると判定されたWebサービス用の入出力定義406の設定を、ステップS3001にて受け付けた編集内容で更新し、外部メモリ211に記憶する。 In step S3007, the program development apparatus 101 updates the setting of the input/output definition 406 for the Web service determined to be associated in step S3003 with the edited content accepted in step S3001, and stores it in the external memory 211. Remember.

ステップS3008において、プログラム開発装置101は、ステップS3004にて関連付けられていると判定されたWebアプリケーション用の入出力定義404の設定を、ステップS3001にて受け付けた編集内容で更新し、外部メモリ211に記憶する。 In step S3008, the program development apparatus 101 updates the setting of the input/output definition 404 for the Web application determined to be associated in step S3004 with the edited content accepted in step S3001, and stores it in the external memory 211. Remember.

以上により、Webアプリケーション用の入出力定義404をコピーしてWebサービス用の入出力定義406を作成した場合、その一方の編集内容をもう一方に反映させることができる。
以上により、Webアプリケーション開発ツールにおいて、Webサービスとして用いられるプログラムを容易に生成する仕組みを提供することができる。
As described above, when the input/output definition 404 for the Web application is copied to create the input/output definition 406 for the Web service, the edited content of one can be reflected in the other.
As described above, it is possible to provide a mechanism for easily generating a program used as a Web service in the Web application development tool.

また、Webアプリケーション開発ツールに慣れ親しんでいた開発者にとって、これまでのWebアプリケーション開発と同様にレイアウトエディタ等を介してWebアプリケーション画面の入出力項目を直感的に追加・変更・削除した後、Webアプリケーション用の入出力定義404をコピーしてWebサービス用の入出力定義406を作成することで、Webサービスとして用いられるプログラムを容易に生成することができるため、Webサービスの開発又はWSDLの記載方法に不慣れな開発者にとってはメリットが大きい。
Also, for developers who are familiar with Web application development tools, after intuitively adding/changing/deleting input/output items on the Web application screen via a layout editor, etc., as in the conventional Web application development, the Web application By creating the input/output definition 406 for the Web service by copying the input/output definition 404 for the Web service, the program used as the Web service can be easily generated. This is a great advantage for inexperienced developers.

〔第2の実施形態〕
第1の実施形態は、入出力定義情報の実行形態に従って、Webアプリケーションの入出力定義情報又はWebサービスの入出力定義情報を生成することによって、Webアプリケーション開発ツールにおいて、Webサービスとして用いられるプログラムを容易に生成する仕組みであり、第2の実施形態は、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を生成することによって、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を生成する仕組みである。
[Second Embodiment]
The first embodiment generates a program used as a web service in a web application development tool by generating input/output definition information of a web application or input/output definition information of a web service according to an execution form of the input/output definition information. The second embodiment is a mechanism for easily generating a Web service definition by using the input/output definition information of the Web application to generate the Web service definition information. This is a mechanism for generating information.

図33〜図34を用いて、第2の実施形態を説明する。なお、第2の実施形態では、第1の実施形態における図6のフローチャートを図33に置き換え、第1の実施形態のステップと同じ処理については、同じステップ番号を付与し説明を省略する。
図33は、第2の実施形態に係るソースコード生成のフローチャートの一例を示す図である。図34は、第2の実施形態に係るWebアプリケーション用の入出力定義画面(入出力)3400の一例を示す図である。
The second embodiment will be described with reference to FIGS. 33 to 34. Note that in the second embodiment, the flowchart of FIG. 6 in the first embodiment is replaced with FIG. 33, and the same steps as those in the first embodiment are given the same step numbers and description thereof is omitted.
FIG. 33 is a diagram showing an example of a flowchart of source code generation according to the second embodiment. FIG. 34 is a diagram showing an example of an input/output definition screen (input/output) 3400 for a Web application according to the second embodiment.

ステップS3301において、プログラム開発装置101は、この入出力定義404を用いて、Webアプリケーション用の入出力定義ソースコードを生成したことを示すフラグをONにし、外部メモリ211に記憶する。 In step S3301, the program development apparatus 101 turns on the flag indicating that the input/output definition source code for the Web application is generated using this input/output definition 404, and stores it in the external memory 211.

ステップS3302において、プログラム開発装置101は、この入出力定義404を用いて、Webサービス用の入出力定義ソースコードを生成するか否かを判定する。すなわち、ステップS3302は、入力定義情報と出力定義情報とを用いて、Webサービスとして用いられるプログラムを生成するか否かを判定する処理の一例を示すステップである。また、ステップS3302は、Webサービスとして用いられるプログラムを生成すると判定した場合は、Webアプリケーションとして用いられるプログラムとWebサービスとして用いられるプログラムとを生成し、Webサービスとして用いられるプログラムを生成しないと判定した場合は、Webアプリケーションとして用いられるプログラムを生成する処理の一例を示すステップである。 In step S3302, the program development apparatus 101 uses the input/output definition 404 to determine whether to generate the input/output definition source code for the Web service. That is, step S3302 is a step showing an example of a process of determining whether or not to generate a program used as a Web service, using the input definition information and the output definition information. In step S3302, when it is determined that the program used as the Web service is generated, it is determined that the program used as the Web application and the program used as the Web service are generated, and the program used as the Web service is not generated. The case is a step showing an example of a process of generating a program used as a Web application.

生成する場合はステップS604に進み、生成しない場合は図33の処理を終了する。なお、この判定は、図34のWebサービスを生成するチェックボックス3402がONであれば、生成すると判定する。 If it is generated, the process proceeds to step S604, and if it is not generated, the process of FIG. 33 is ended. Note that this determination is made to generate if the check box 3402 for generating the Web service in FIG. 34 is ON.

また、チェックボックス3402は、入出力タイプ3401=“IO”(Webアプリケーション用の入出力定義404)の場合のみ表示するようにして、Webアプリケーション用の入出力定義404を用いて、Webサービス定義情報を生成できるようにしてもよい。また、入出力タイプ3401=“IO”以外の場合であっても、入出力定義404を用いてWebサービス定義情報を生成できるものがあれば、チェックボックスを表示するようにしてもよい。 Further, the check box 3402 is displayed only when the input/output type 3401=“IO” (input/output definition 404 for web application), and the web service definition information is displayed using the input/output definition 404 for web application. May be generated. Further, even if the input/output type 3401 is not “IO”, a check box may be displayed as long as the Web service definition information can be generated using the input/output definition 404.

なお、本実施形態においては、チェックボックス3402=ONの場合、Webサービス用の入出力定義406を生成することなく、入出力定義404を用いてWebサービス用の入出力定義ソースコードを生成するとしたが、これに限定するものではなく、入出力定義404をコピーしてWebサービス用の入出力定義406を生成し、Webサービス用の入出力定義ソースコードを生成するとしてもよい。これにより、図29のステップS2903〜ステップS2906のように、コピー元となる既存の入出力定義404の指示を受け付け、入出力タイプ=“WEB SERVICE”に変更するといった手間を省くことができる。 In this embodiment, when the check box 3402=ON, the input/output definition source code for the web service is generated using the input/output definition 404 without generating the input/output definition 406 for the web service. However, the present invention is not limited to this, and the input/output definition 404 may be copied to generate the input/output definition 406 for the Web service and the input/output definition source code for the Web service may be generated. As a result, it is possible to save the trouble of receiving the instruction of the existing input/output definition 404 that is the copy source and changing the input/output type to “WEB SERVICE” as in steps S2903 to S2906 of FIG.

ステップS3303において、プログラム開発装置101は、この入出力定義404を用いて、Webサービス用の入出力定義ソースコードを生成したことを示すフラグをONにし、外部メモリ211に記憶する。 In step S3303, the program development apparatus 101 turns on the flag indicating that the input/output definition source code for the Web service is generated using this input/output definition 404, and stores it in the external memory 211.

以上で、図33の説明を終了する。 This is the end of the description of FIG.

以上により、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を生成する仕組みを提供することができる。つまり、Webアプリケーションの画面の入出力定義情報を用いて、Webサービス定義情報を生成することができないという問題を解決することができる。つまり、Webアプリケーションの画面の入出力定義情報を用いて、Webサービス定義情報又はWebサービスとして用いられるプログラムを生成することにより、Webアプリケーションを容易にWebサービス化したいという課題を解決することができる。 As described above, it is possible to provide the mechanism for generating the Web service definition information by using the input/output definition information of the Web application. That is, it is possible to solve the problem that the Web service definition information cannot be generated using the input/output definition information of the screen of the Web application. That is, by using the input/output definition information of the screen of the Web application to generate the Web service definition information or the program used as the Web service, it is possible to solve the problem of easily converting the Web application into the Web service.

また、Webアプリケーションの開発フェーズにおいてよくある、画面項目の追加・変更・削除は、Webアプリケーション開発ツールのレイアウトエディタ等を介して、Webアプリケーション画面の入出力項目を直感的に追加・変更・削除することで、Webアプリケーションとして用いられるプログラムだけでなく、Webサービスとして用いられるプログラムにも反映されるため、Webサービスとして用いられるプログラムを容易に生成することができる。
In addition, in addition/change/deletion of screen items, which is often used in the web application development phase, intuitively add/change/delete input/output items of the web application screen via the layout editor of the web application development tool. Thus, not only the program used as the Web application but also the program used as the Web service is reflected, so that the program used as the Web service can be easily generated.

〔第3の実施形態〕
第2の実施形態は、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を生成することによって、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を生成する仕組みであり、第3の実施形態は、入出力定義情報から、Webアプリケーションの入出力定義情報又はWebサービス定義情報を生成することによって、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を生成する仕組みである。
[Third Embodiment]
The second embodiment is a mechanism for generating the Web service definition information using the input/output definition information of the Web application, and thus generating the Web service definition information using the input/output definition information of the Web application. The third embodiment is a mechanism for generating the Web service definition information using the input/output definition information of the Web application by generating the input/output definition information of the Web application or the Web service definition information from the input/output definition information. Is.

図35〜図36を用いて、第3の実施形態を説明する。なお、第3の実施形態では、第2の実施形態における図33のフローチャートを図35に置き換え、第2の実施形態のステップと同じ処理については、同じステップ番号を付与し説明を省略する。
図35は、第3の実施形態に係るソースコード生成のフローチャートの一例を示す図である。図36は、第3の実施形態に係るWebアプリケーション用の入出力定義画面(入出力)3600の一例を示す図である。
The third embodiment will be described with reference to FIGS. 35 to 36. Note that in the third embodiment, the flowchart of FIG. 33 in the second embodiment is replaced with FIG. 35, and the same steps as those in the second embodiment are given the same step numbers and description thereof is omitted.
FIG. 35 is a diagram showing an example of a flowchart of source code generation according to the third embodiment. FIG. 36 is a diagram showing an example of an input/output definition screen (input/output) 3600 for a Web application according to the third embodiment.

ステップS3501において、プログラム開発装置101は、既存の入出力定義404に対するユーザの指示を受け付ける。具体的には、図36のWebアプリケーション用の入出力定義名3601の部分で右クリック等の操作を受け付ける。 In step S3501, the program development apparatus 101 receives a user instruction for the existing input/output definition 404. Specifically, an operation such as a right click is received at the input/output definition name 3601 for the Web application in FIG.

ステップS3502において、プログラム開発装置101は、コンテキストメニュー3602を表示し、ユーザによる選択を受け付けて判定する。
「Webアプリケーションソースコードを生成する」3603が選択された場合はステップS603に進み、「Webサービスソースコードを生成する」3604が選択された場合はステップS604に進む。
In step S3502, the program development apparatus 101 displays the context menu 3602 and accepts the selection by the user to make a determination.
If "generate Web application source code" 3603 is selected, the process proceeds to step S603, and if "generate Web service source code" 3604 is selected, the process proceeds to step S604.

以上で、図36の説明を終了する。 This is the end of the description of FIG.

以上により、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を容易に生成する仕組みを提供することができる。つまり、Webアプリケーションの画面の入出力定義情報を用いてWebサービス定義情報又はWebサービスとして用いられるプログラムを生成することにより、Webアプリケーションを容易にWebサービス化したいという課題を解決することができる。
As described above, it is possible to provide a mechanism for easily generating the web service definition information by using the input/output definition information of the web application. That is, it is possible to solve the problem of easily converting a web application into a web service by generating the web service definition information or a program used as the web service by using the input/output definition information of the screen of the web application.

〔第4の実施形態〕
第4の実施形態は、1つの入出力定義情報を、Webアプリケーション用とWebサービス用のように複数の目的のために用いることによって、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を生成する仕組みである。
図37〜図38を用いて、第4の実施形態を説明する。なお、第4の実施形態では、第2の実施形態における図33のフローチャートを図37に置き換え、第1の実施形態及び第2の実施形態のステップと同じ処理については、同じステップ番号を付与し説明を省略する。
[Fourth Embodiment]
In the fourth embodiment, by using one input/output definition information for a plurality of purposes such as for a web application and for a web service, the input/output definition information of the web application is used to generate the web service definition information. Is a mechanism to generate.
The fourth embodiment will be described with reference to FIGS. 37 to 38. Note that in the fourth embodiment, the flowchart of FIG. 33 in the second embodiment is replaced with FIG. 37, and the same steps as those in the first and second embodiments are given the same step numbers. The description is omitted.

図37は、第4の実施形態に係るソースコード生成のフローチャートの一例を示す図である。図38は、第4の実施形態に係るWebアプリケーション用の入出力定義画面(項目一覧)3800の一例を示す図である。第4の実施形態では、図38の3801のように、Webサービスに利用する項目にはチェックを入れ、Webサービスに利用せずWebアプリケーションにのみ利用する項目にはチェックを入れないようにする。 FIG. 37 is a diagram illustrating an example of a source code generation flowchart according to the fourth embodiment. FIG. 38 is a diagram showing an example of an input/output definition screen (item list) 3800 for a Web application according to the fourth embodiment. In the fourth embodiment, like 3801 in FIG. 38, the items used for the Web service are checked, and the items used only for the Web application without using the Web service are not checked.

ステップS3701において、プログラム開発装置101は、ステップS601にて取得した入出力定義404に、Webサービスとして利用する項目があるか否かを判定する。Webサービスとして利用する項目がある場合は、ステップS604(図37)に進み、ステップS701(図7)にてWebサービスに利用する項目(図38の3801)を特定し、ステップS702(図7)にてその特定した項目を用いてWebサービスのインターフェースコードを生成する。Webサービスとして利用する項目がない場合は、ステップS601(図37)に進み、次の入出力定義404を取得する。 In step S3701, the program development apparatus 101 determines whether or not the input/output definition 404 acquired in step S601 has an item to be used as a Web service. If there is an item to be used as a Web service, the process proceeds to step S604 (FIG. 37), the item to be used for the Web service (3801 in FIG. 38) is specified in step S701 (FIG. 7), and step S702 (FIG. 7). At, the interface code of the Web service is generated using the specified item. If there is no item to be used as a Web service, the process advances to step S601 (FIG. 37) to acquire the next input/output definition 404.

すなわち、ステップS3701は、入出力定義情報のうち、Webサービスとして用いられるプログラムの生成時に用いる入出力定義であると判定した入出力定義情報を用いて、Webサービスとして用いられるプログラムを生成する処理の一例を示すステップである。 That is, step S3701 is a process of generating a program used as a Web service by using the input/output definition information determined to be the input/output definition used when generating the program used as the Web service in the input/output definition information. It is a step showing an example.

以上で、図37、図38の説明を終了する。 This is the end of the description of FIGS. 37 and 38.

以上により、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を容易に生成する仕組みを提供することができる。つまり、Webアプリケーションの画面の入出力定義情報を用いてWebサービス定義情報又はWebサービスとして用いられるプログラムを生成することにより、Webアプリケーションを容易にWebサービス化したいという課題を解決することができる。 As described above, it is possible to provide a mechanism for easily generating the web service definition information by using the input/output definition information of the web application. That is, it is possible to solve the problem of easily converting a web application into a web service by generating the web service definition information or a program used as the web service by using the input/output definition information of the screen of the web application.

また、1つの入出力定義情報を、Webアプリケーション用とWebサービス用のように複数の目的のために用いることができるようになるため、Webアプリケーション用の入出力定義情報に項目を追加した場合、対応するWebサービス用の入出力定義情報にも同じ項目を追加しなければならない、といったWebアプリケーションの定義情報とWebサービスの定義情報の管理の煩雑さを解消することができる。よって、Webサービスの開発及び管理が大変という問題を解決することができる。
Further, since one input/output definition information can be used for a plurality of purposes such as for a web application and a web service, when an item is added to the input/output definition information for a web application, It is possible to eliminate the complexity of managing the Web application definition information and the Web service definition information such that the same item must be added to the corresponding input/output definition information for the Web service. Therefore, it is possible to solve the problem that development and management of Web services are difficult.

〔第5の実施形態〕
第1の実施形態は、入出力定義情報の実行形態に従って、Webアプリケーションの入出力定義情報又はWebサービス定義情報を生成することによって、Webアプリケーション開発ツールにおいて、Webサービス定義情報を容易に生成する仕組みであり、第5の実施形態は、複数の入出力定義情報をまとめたリポジトリ(以下、プロジェクトと記す)の実行形態に従って、Webアプリケーションとして用いられるプログラムを生成するか、Webサービスとして用いられるプログラムを生成するかを制御することにより、Webサービスとして用いられるプログラムを容易に生成する仕組みである。
図39〜図40を用いて、第5の実施形態を説明する。なお、第5の実施形態では、第2の実施形態における図33のフローチャートを図39に置き換え、第1の実施形態及び第2の実施形態のステップと同じ処理については、同じステップ番号を付与し説明を省略する。
[Fifth Embodiment]
The first embodiment is a mechanism for easily generating the web service definition information in the web application development tool by generating the input/output definition information or the web service definition information of the web application according to the execution form of the input/output definition information. According to the fifth embodiment, a program used as a Web application is generated or a program used as a Web service is generated according to an execution form of a repository (hereinafter referred to as a project) in which a plurality of input/output definition information is collected. This is a mechanism for easily generating a program used as a Web service by controlling whether it is generated.
The fifth embodiment will be described with reference to FIGS. 39 to 40. Note that in the fifth embodiment, the flowchart of FIG. 33 in the second embodiment is replaced with FIG. 39, and the same steps as those in the first and second embodiments are given the same step numbers. The description is omitted.

図39は、第5の実施形態に係るソースコード生成のフローチャートの一例を示す図である。図40は、第5の実施形態に係るソースコード生成時の確認メッセージの一例を示す図である。
ステップS3901において、プログラム開発装置101は、ソースコード生成の指示を受け付ける。具体的には、WebアプリケーションとWebサービスのどちらのソースコードを生成するかの選択(図40の4001)及びソースコード生成ボタン(図40の4002)の押下を受け付け、「Webアプリケーション」が選択された場合はステップS3902に進み、「Webサービス」が選択された場合はステップS3903に進む。
FIG. 39 is a diagram showing an example of a flowchart of source code generation according to the fifth embodiment. FIG. 40 is a diagram showing an example of a confirmation message at the time of source code generation according to the fifth embodiment.
In step S3901, the program development device 101 receives a source code generation instruction. Specifically, the selection of the source code of the web application or the web service (4001 in FIG. 40) and the pressing of the source code generation button (4002 in FIG. 40) are accepted, and the “web application” is selected. If so, the process advances to step S3902; if “Web service” is selected, the process advances to step S3903.

ステップS3902において、プログラム開発装置101は、RAM202から入出力定義404を取得し、取得した入出力定義404について、それぞれステップS603及びステップS3301を繰り返すことにより、入出力定義404を用いてWebアプリケーション用入出力定義のソースコードを生成する。 In step S3902, the program development apparatus 101 acquires the input/output definition 404 from the RAM 202, and repeats step S603 and step S3301 for the acquired input/output definition 404, thereby inputting the Web application using the input/output definition 404. Generate source code of output definition.

ステップS3903において、プログラム開発装置101は、RAM202から入出力定義404を取得し、取得した入出力定義404について、それぞれステップS604及びステップS3303を繰り返すことにより、Webサービス用入出力定義のソースコードを生成する。 In step S3903, the program development apparatus 101 acquires the input/output definition 404 from the RAM 202, and repeats step S604 and step S3303 for the acquired input/output definition 404 to generate the source code of the Web service input/output definition. To do.

なお、本実施形態においては、図40の4001でWebアプリケーションとWebサービスのどちらのソースコードを生成するかの選択と受け付けるとしたが、これに限定するものではなく、例えば、WebアプリケーションとWebサービスの両方のソースコードを生成するという選択肢があってもよい。この場合、ステップS3902及びステップS3903の両方の処理を実行することより、WebアプリケーションとWebサービスの両方のソースコードを生成する。 Note that in the present embodiment, the selection and acceptance of which of the web application and the web service is to be generated is accepted in 4001 of FIG. 40. However, the present invention is not limited to this. There may be an option to generate both source code of. In this case, the source code of both the web application and the web service is generated by executing the processing of both step S3902 and step S3903.

以上で、図39、図40の説明を終了する。
以上により、プロジェクトの実行形態に従って、Webアプリケーションとして用いられるプログラムを生成するか、Webサービスとして用いられるプログラムを生成するかを制御することにより、Webサービスとして用いられるプログラムを容易に生成することができる。
This is the end of the description of FIGS. 39 and 40.
As described above, the program used as the Web service can be easily generated by controlling whether to generate the program used as the Web application or the program used as the Web service according to the execution form of the project. ..

つまり、第1の実施形態のような個々の入出力定義情報の実行形態に従って、Webアプリケーションの入出力定義情報又はWebサービス定義情報を生成する方法と比べて、第5の実施形態は、プロジェクトの実行形態に従って、プロジェクト全体の入出力定義情報を用いてWebアプリケーションの入出力定義情報又はWebサービス定義情報を一括して生成することが可能であるため、入出力定義情報の管理の煩雑さを解消することができる。
よって、入出力定義情報には複数の定義項目が存在するため、Webサービスの開発者がそれらを誤りなく設定しなければならないため設定ミスが生じやすく、Webアプリケーションとの整合性も取りづらいため、Webサービスの開発及び管理が大変という問題を解決することができる。
That is, as compared with the method of generating the input/output definition information of the Web application or the Web service definition information according to the execution form of the individual input/output definition information as in the first embodiment, the fifth embodiment is According to the execution mode, it is possible to generate the input/output definition information of the Web application or the Web service definition information in a batch using the input/output definition information of the entire project, eliminating the complexity of managing the input/output definition information. can do.
Therefore, since there are a plurality of definition items in the input/output definition information, the developer of the Web service must set them without error, so setting mistakes easily occur, and it is difficult to maintain consistency with the Web application. It is possible to solve the problem that development and management of Web services are difficult.

〔第6の実施形態〕
第1の実施形態(特に、図30及び図31)は、Webアプリケーション用の入出力定義404をコピーしてWebサービス用の入出力定義406を作成した場合、その一方の編集内容をもう一方に反映させることによって、Webアプリケーション開発ツールにおいて、Webサービス定義情報を容易に生成する仕組みであり、第6の実施形態は、Webアプリケーション用の入出力定義404又はWebサービス用の入出力定義406を編集した場合に、同じプロジェクト内の他の入出力定義にその編集内容を反映させることにより、Webサービスとして用いられるプログラムを容易に生成する仕組みである。
[Sixth Embodiment]
In the first embodiment (particularly in FIGS. 30 and 31), when the input/output definition 404 for the Web application is copied to create the input/output definition 406 for the Web service, one of the edited contents is set to the other. This is a mechanism for easily generating the Web service definition information in the Web application development tool by reflecting it. In the sixth embodiment, the Web application input/output definition 404 or the Web service input/output definition 406 is edited. In such a case, the edited contents are reflected in other input/output definitions in the same project to easily generate a program used as a Web service.

図41〜図42を用いて、第6の実施形態を説明する。
図41は、第6の実施形態に係る入出力定義編集のフローチャートの一例を示す図である。図42は、第6の実施形態に係る入出力定義編集時の確認メッセージの一例を示す図である。
The sixth embodiment will be described with reference to FIGS. 41 to 42.
FIG. 41 is a diagram showing an example of a flowchart of input/output definition editing according to the sixth embodiment. FIG. 42 is a diagram showing an example of the confirmation message at the time of editing the input/output definition according to the sixth embodiment.

ステップS4101において、プログラム開発装置101は、入出力定義404の編集を受け付ける。具体的には、図38の各項目の値について、ユーザの編集を受け付ける。すなわち、ステップS4101は、入出力定義情報の設定の変更を受け付ける処理の一例を示すステップである。 In step S4101, the program development apparatus 101 accepts editing of the input/output definition 404. Specifically, the user's editing of the values of the items in FIG. 38 is accepted. That is, step S4101 is a step showing an example of processing for accepting a change in the setting of the input/output definition information.

ステップS4102において、プログラム開発装置101は、ステップS4101にて受け付けた編集内容が「Webサービスとして利用する」チェックボックス3801の値変更か否かを判定し、OFFからONに変更された場合はステップS4103に進み、ONからOFFに変更された場合はステップS4104に進み、変更されなかった場合は図41の入出力定義編集を終了する。 In step S4102, the program development apparatus 101 determines whether or not the edited content received in step S4101 is a change in the value of the “use as Web service” check box 3801. If the edit content is changed from OFF to ON, step S4103. If it is changed from ON to OFF, the process proceeds to step S4104, and if it is not changed, the input/output definition editing of FIG. 41 ends.

ステップS4103において、プログラム開発装置101は、ステップS4102にて「Webサービスとして利用する」チェックボックス3801の値をOFFからONに変更された入出力項目が同プロジェクト内の他の入出力定義404に「Webサービスとして利用する」チェックボックス3801=OFFとして存在するか否かを判定し、存在する場合はステップS4105に進み、存在しない場合は図41の入出力定義編集を終了する。 In step S4103, the program development apparatus 101 changes the value of the “Use as Web service” check box 3801 from OFF to ON in step S4102 to the other input/output definition 404 in the same project. It is determined whether or not the check box 3801=OFF for use as a Web service exists, and if it exists, the process proceeds to step S4105, and if it does not exist, the input/output definition editing of FIG. 41 ends.

例えば、図38の項目コード=“ITEM_KEY”の入出力項目の「Webサービスとして利用する」チェックボックス3801の値をOFFからONに変更された場合、同プロジェクト内の他の入出力定義404に項目コード=“ITEM_KEY”&「Webサービスとして利用する」チェックボックス3801=“OFF”の入力項目が存在するか否かを判定する。 For example, when the value of the “Use as Web service” check box 3801 of the input/output item of item code=“ITEM_KEY” in FIG. 38 is changed from OFF to ON, the item is added to the other input/output definition 404 in the same project. It is determined whether or not there is an input item of code=“ITEM_KEY” & “use as Web service” check box 3801=“OFF”.

ステップS4104において、プログラム開発装置101は、ステップS4104にて「Webサービスとして利用する」チェックボックス3801の値をONからOFFに変更された入出力項目が同プロジェクト内の他の入出力定義404に「Webサービスとして利用する」チェックボックス3801=ONとして存在するか否かを判定し、存在する場合はステップS4106に進み、存在しない場合は図41の入出力定義編集を終了する。 In step S4104, the program development apparatus 101 changes the value of the “Use as Web service” check box 3801 in step S4104 from ON to OFF, and the input/output item is added to another input/output definition 404 in the project. It is determined whether or not the check box 3801=ON for use as a Web service exists, and if it exists, the process advances to step S4106; otherwise, the input/output definition editing of FIG. 41 ends.

例えば、図38の項目コード=“ITEM_VALUE”の入出力項目の「Webサービスとして利用する」チェックボックス3801の値をONからOFFに変更された場合、同プロジェクト内の他の入出力定義404に項目コード=“ITEM_VALUE”&「Webサービスとして利用する」チェックボックス3801=“ON”の入力項目が存在するか否かを判定する。 For example, when the value of the “Use as Web service” check box 3801 of the input/output item of item code=“ITEM_VALUE” in FIG. 38 is changed from ON to OFF, the item is added to the other input/output definition 404 in the same project. It is determined whether or not there is an input item of code=“ITEM_VALUE” & “use as Web service” check box 3801=“ON”.

ステップS4105において、プログラム開発装置101は、確認メッセージ4200(図42)を表示し、ステップS4103にて存在すると判定された他の入出力定義404を更新するか否かの指示を受け付ける。「OK」の場合はステップS4107に進み、「キャンセル」の場合は図30の処理を終了する。 In step S4105, the program development apparatus 101 displays a confirmation message 4200 (FIG. 42) and accepts an instruction as to whether or not to update the other input/output definition 404 determined to exist in step S4103. In the case of "OK", the process proceeds to step S4107, and in the case of "cancel", the process of FIG. 30 ends.

ステップS4106において、プログラム開発装置101は、確認メッセージ4200(図42)を表示し、ステップS4104にて存在すると判定された他の入出力定義404を更新するか否かの指示を受け付ける。「OK」の場合はステップS4108に進み、「キャンセル」の場合は図30の処理を終了する。 In step S4106, the program development apparatus 101 displays the confirmation message 4200 (FIG. 42) and receives an instruction as to whether or not to update the other input/output definition 404 determined to exist in step S4104. In the case of "OK", the process proceeds to step S4108, and in the case of "cancel", the process of FIG. 30 ends.

すなわち、ステップS4105及びステップS4106は、設定の変更を受け付けた入出力定義情報の入出力定義が他の入出力定義情報に存在する場合、ユーザに通知する処理の一例を示すステップである。 That is, step S4105 and step S4106 are steps showing an example of the process of notifying the user when the input/output definition of the input/output definition information for which the setting change is accepted exists in other input/output definition information.

ステップS4107において、プログラム開発装置101は、ステップS4103にて存在すると判定された他の入出力定義404の入出力定義を、ステップS4101にて受け付けた編集内容で更新し、外部メモリ211に記憶する。 In step S4107, the program development apparatus 101 updates the input/output definition of the other input/output definition 404 determined to exist in step S4103 with the edited content accepted in step S4101 and stores it in the external memory 211.

ステップS4108において、プログラム開発装置101は、ステップS4104にて存在すると判定された他の入出力定義404の入出力定義をステップS4101にて受け付けた編集内容で更新し、外部メモリ211に記憶する。 In step S4108, the program development apparatus 101 updates the input/output definition of the other input/output definition 404 determined to exist in step S4104 with the edited content received in step S4101 and stores it in the external memory 211.

以上で、図41の説明を終了する。 This is the end of the description of FIG. 41.

なお、本実施形態においては、入出力項目の編集内容の例として「Webサービスとして利用する」チェックボックス3801の値変更を挙げたが、これに限定するものではなく、入出力項目の他の項目値の変更であってもよい。 In the present embodiment, the value of the “Use as Web service” check box 3801 is changed as an example of the edited contents of the input/output item, but the present invention is not limited to this, and other items of the input/output item are not included. The value may be changed.

以上により、Webアプリケーション用の入出力定義404のWebサービスに係る設定を編集した場合、他の入出力定義404に対して、その編集内容を容易に反映させることができる。
つまり、Webアプリケーションの要件変更に伴い、Webアプリケーションの画面項目の編集する(例えば、Webアプリケーションの画面における既存の入出力項目を新たにWebサービスとしても利用したい)場合、Webアプリケーションの「登録画面」の入出力定義だけでなく、「更新画面」「検索画面」「検索結果画面」など他の画面の入出力定義に対してもWebサービスの入出力定義として利用できるよう反映させなければならず、編集作業が繁雑であるという問題を解決することができる。
As described above, when the setting related to the web service of the input/output definition 404 for the web application is edited, the edited content can be easily reflected on the other input/output definition 404.
That is, when the screen item of the web application is edited (for example, the existing input/output item on the screen of the web application is also desired to be newly used as the web service) along with the change of the requirement of the web application, the “registration screen” of the web application Not only the input/output definition of, but also the input/output definition of other screens such as "update screen", "search screen", and "search result screen" must be reflected so that it can be used as the input/output definition of the Web service It is possible to solve the problem that the editing work is complicated.

また、Webアプリケーションの画面において新たな入出力項目を追加し、その入出力項目をWebサービスとしても利用したい場合も、同様の問題を解決することができる。 Also, when a new input/output item is added to the screen of the web application and the user wants to use the input/output item as a web service, the same problem can be solved.

よって、Webアプリケーション用の入出力定義情報に項目を追加した場合、対応するWebサービス用の入出力定義情報にも同じ項目を追加しなければならない、といったWebアプリケーションの定義情報とWebサービスの定義情報の管理の煩雑さを解消することができる。よって、Webサービスの開発及び管理が大変という問題を解決することができる。 Therefore, when an item is added to the input/output definition information for the Web application, the same item must be added to the corresponding input/output definition information for the Web service. The definition information of the Web application and the definition information of the Web service. The complexity of management of can be eliminated. Therefore, it is possible to solve the problem that development and management of Web services are difficult.

以上により、Webアプリケーション開発ツールにおいて、Webサービスとして用いられるプログラムを容易に生成することができる。また、Webアプリケーションの入出力定義情報を用いて、Webサービス定義情報を容易に生成することができる。つまり、Webアプリケーションの画面の入出力定義情報を用いて、Webサービス定義情報又はWebサービスとして用いられるプログラムを生成することにより、Webアプリケーションを容易にWebサービス化したいという課題を解決することができる。
As described above, the program used as the Web service can be easily generated in the Web application development tool. Further, the Web service definition information can be easily generated by using the input/output definition information of the Web application. That is, by using the input/output definition information of the screen of the Web application to generate the Web service definition information or the program used as the Web service, it is possible to solve the problem of easily converting the Web application into the Web service.

図43は、第1〜6の実施形態に係る定義ファイル一覧画面の一例を示す図である。
定義ファイル一覧4310は、第1の実施形態に係る定義ファイル一覧画面である。第1の実施形態では、Webアプリケーション用の入出力定義404をコピーしてWebサービス用の入出力定義406を作成するため、入出力定義ファイルを4311のようにWebアプリケーション用の場合は“A”、Webサービス用の場合は“S”と表示する。
FIG. 43 is a diagram showing an example of a definition file list screen according to the first to sixth embodiments.
The definition file list 4310 is a definition file list screen according to the first embodiment. In the first embodiment, since the input/output definition 404 for the Web application is copied to create the input/output definition 406 for the Web service, the input/output definition file 4311 is “A” for the Web application. , "S" is displayed for Web services.

定義ファイル一覧4320は、第2〜6の実施形態に係る定義ファイル一覧画面である。第2〜6の実施形態では、Webアプリケーション用の入出力定義404をWebサービス用の入出力定義406として利用するため、入出力定義ファイルを4321のようにWebアプリケーション用の場合は“A”、Webアプリケーション・Webサービスで共用する場合は“AS”と表示する。 The definition file list 4320 is a definition file list screen according to the second to sixth embodiments. In the second to sixth embodiments, since the input/output definition 404 for the Web application is used as the input/output definition 406 for the Web service, the input/output definition file is “A” for the Web application like 4321, When shared by Web application and Web service, "AS" is displayed.

これにより、第1〜6の実施形態において、入出力定義を「Webアプリケーション用」、「Webサービス用」及び「Webアプリケーション・Webサービス共用」で容易に識別することができるため、Webアプリケーション又はWebサービスの開発者による入出力定義の設定ミスや設定不整合による、Webサービスの開発及び管理が大変という問題を解決することができる。
以上で、図43の説明を終了する。
Accordingly, in the first to sixth embodiments, the input/output definition can be easily identified by “for web application”, “for web service” and “shared web application/web service”. It is possible to solve the problem that the development and management of the Web service is difficult due to the setting error or the setting mismatch of the input/output definition by the service developer.
This is the end of the description of FIG. 43.

以上のように、前述した実施形態の機能を実現するプログラムを記録した記録媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(又はCPUやMPU)が記録媒体に格納されたプログラムを読み出し、実行することによっても本発明の目的が達成されることは言うまでもない。 As described above, the recording medium recording the program that realizes the functions of the above-described embodiments is supplied to the system or apparatus, and the computer (or the CPU or MPU) of the system or apparatus stores the program stored in the recording medium. It goes without saying that the object of the present invention can also be achieved by reading and executing.

この場合、記録媒体から読み出されたプログラム自体が本発明の新規な機能を実現することになり、そのプログラムを記録した記録媒体は本発明を構成することになる。 In this case, the program itself read from the recording medium realizes the novel function of the present invention, and the recording medium recording the program constitutes the present invention.

プログラムを供給するための記録媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、DVD−ROM、磁気テープ、不揮発性のメモリカード、ROM、EEPROM、シリコンディスク等を用いることが出来る。 As a recording medium for supplying the program, for example, a flexible disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, DVD-ROM, magnetic tape, non-volatile memory card, ROM, EEPROM, silicon. A disk or the like can be used.

また、コンピュータが読み出したプログラムを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)等が実際の処理の一部又は全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。 Further, not only the functions of the above-described embodiments are realized by executing the program read by the computer, but also the OS (operating system) running on the computer is actually executed based on the instructions of the program. It goes without saying that a case where a part or all of the processing is performed and the functions of the above-described embodiments are realized by the processing is also included.

さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部又は全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。 Furthermore, after the program read from the recording medium is written in the memory provided in the function expansion board inserted in the computer or the function expansion unit connected to the computer, the function expansion board is instructed based on the instruction of the program code. Needless to say, this also includes a case where the CPU or the like included in the function expansion unit performs a part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

また、本発明は、複数の機器から構成されるシステムに適用しても、ひとつの機器から成る装置に適用しても良い。また、本発明は、システムあるいは装置にプログラムを供給することによって達成される場合にも適応できることは言うまでもない。この場合、本発明を達成するためのプログラムを格納した記録媒体を該システムあるいは装置に読み出すことによって、そのシステムあるいは装置が、本発明の効果を享受することが可能となる。 Further, the present invention may be applied to a system including a plurality of devices or an apparatus including a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus. In this case, by reading the recording medium storing the program for achieving the present invention into the system or device, the system or device can enjoy the effects of the present invention.

上記プログラムの形態は、オブジェクトコード、インタプリタにより実行されるプログラムコード、OS(オペレーティングシステム)に供給されるスクリプトデータ等の形態から成ってもよい。 The form of the program may be an object code, a program code executed by an interpreter, script data supplied to an OS (operating system), or the like.

さらに、本発明を達成するためのプログラムをネットワーク上のサーバ、データベース等から通信プログラムによりダウンロードして読み出すことによって、そのシステムあるいは装置が、本発明の効果を享受することが可能となる。なお、上述した各実施形態及びその変形例を組み合わせた構成も全て本発明に含まれるものである。
Furthermore, by downloading and reading a program for achieving the present invention from a server, a database or the like on a network using a communication program, the system or apparatus can enjoy the effects of the present invention. It should be noted that the present invention includes all configurations that combine the above-described embodiments and their modified examples.

101 プログラム開発装置
102 プログラム開発サーバ
103 データベースサーバ
104 アプリケーションクライアント
105 アプリケーションサーバ
106 ネットワーク
101 Program Development Device 102 Program Development Server 103 Database Server 104 Application Client 105 Application Server 106 Network

Claims (7)

Webアプリケーションとして用いられるプログラムを生成する情報処理装置であって、
前記Webアプリケーションの画面を介して入力される項目を定義する入力定義情報と、前記画面に出力する項目を定義する出力定義情報とを入出力定義情報として管理する入出力定義管理手段と、
前記プログラムをWebサービスとして用いるかの選択を受け付ける選択受付手段と、
前記入出力定義管理手段により管理されている入出力定義情報を用いて、前記選択受付手段により受け付けた選択に従って、
Webアプリケーションとして用いられるプログラム及び当該Webアプリケーションの処理結果を表示するための画面を出力するプログラムを生成するか又はWebサービスの利用に必要なインタフェースの定義情報及び当該Webサービスとして用いられるプログラムを生成するかを制御するプログラム生成制御手段と
を備えることを特徴とする情報処理装置。
An information processing apparatus for generating a program used as a Web application,
Input/output definition management means for managing, as input/output definition information, input definition information defining items input via the screen of the Web application and output definition information defining items to be output to the screen.
Selection accepting means for accepting selection of whether to use the program as a Web service,
Using the input/output definition information managed by the input/output definition management means, according to the selection accepted by the selection acceptance means,
A program used as a Web application and a program for outputting a screen for displaying the processing result of the Web application are generated, or interface definition information necessary for using the Web service and a program used as the Web service are generated. An information processing apparatus, comprising: a program generation control unit that controls whether or not.
前記入出力定義管理手段により管理されている入出力定義情報の設定を受け付ける設定受付手段を更に備え、
前記設定受付手段により設定を受け付けた入力定義情報は、前記Webサービスを利用するユーザによって画面から入力される値を表す文字列を含み、
前記設定受付手段により設定を受け付けた出力定義情報は、前記Webサービスを利用した結果、取得された値を表す文字列を含むこと
を特徴とする請求項1に記載の情報処理装置。
Further comprising a setting receiving means for receiving the setting of the input/output definition information managed by the input/output definition managing means,
The input definition information for which the setting has been received by the setting reception unit includes a character string representing a value input from a screen by a user who uses the Web service,
The information processing apparatus according to claim 1, wherein the output definition information whose setting is received by the setting receiving unit includes a character string representing a value obtained as a result of using the Web service.
前記Webアプリケーションとして用いられるプログラム及び前記Webサービスとして用いられるプログラムを生成する生成ルールを記憶する記憶手段を更に備え、
前記プログラム生成制御手段は、
前記選択受付手段により受け付けた選択に従って、前記設定受付手段により設定を受け付けた入力定義情報に含まれる前記Webサービスを利用するユーザによって画面から入力される値を表す文字列及び前記設定受付手段により設定を受け付けた出力定義情報に含まれる前記Webサービスを利用した結果、取得される値を表す文字列のうち少なくとも一方と、前記記憶手段に記憶されているルールを用いて、前記Webサービスの利用に必要なインタフェースの定義情報を生成すること
を備えることを特徴とする請求項2に記載の情報処理装置。
A storage unit that stores a generation rule that generates a program used as the Web application and a program used as the Web service;
The program generation control means,
According to the selection received by the selection receiving unit, a character string representing a value input from a screen by a user who uses the Web service and included in the input definition information whose setting is received by the setting receiving unit, and the setting is set by the setting receiving unit. Is used to use the Web service by using at least one of the character strings representing the values obtained as a result of using the Web service and the rule stored in the storage unit. The information processing apparatus according to claim 2, further comprising: generating definition information of a necessary interface.
前記プログラム生成制御手段は、
前記入出力定義管理手段により管理されている入力定義情報と出力定義情報のうち、前記Webサービスに必要な情報を用いて、前記Webサービスの利用に必要なインタフェースの定義情報を生成すること
を特徴とする請求項1乃至3のいずれか1項に記載の情報処理装置。
The program generation control means,
Among the input definition information and the output definition information managed by the input/output definition management unit, the information necessary for the Web service is used to generate the interface definition information necessary for using the Web service. The information processing device according to any one of claims 1 to 3.
前記入出力定義管理手段により管理されている入出力定義情報に基づき、新たな入出力定義情報を生成する入出力定義生成手段と、
前記入出力定義生成手段により生成された入出力定義情報と、当該入出力定義情報の生成の基となった入出力定義情報とを関連付けて管理する対応付管理手段と、
前記入出力定義管理手段により管理されている入出力定義情報の設定の変更を受け付ける設定変更受付手段と、
前記設定変更受付手段により設定の変更を受け付けた入出力定義情報が前記対応付管理手段により他の入出力定義情報と対応づけて管理されている場合、ユーザに通知する通知手段と
を備えることを特徴とする請求項1乃至4のいずれか1項に記載の情報処理装置。
An input/output definition generating means for generating new input/output definition information based on the input/output definition information managed by the input/output definition managing means,
Correspondence management means for managing the input/output definition information generated by the input/output definition generation means and the input/output definition information on which the input/output definition information is generated in association with each other,
Setting change receiving means for receiving a change in the setting of the input/output definition information managed by the input/output definition managing means,
And a notification unit for notifying the user when the input/output definition information whose setting change has been received by the setting change reception unit is managed in association with other input/output definition information by the association management unit. The information processing apparatus according to any one of claims 1 to 4, which is characterized.
Webアプリケーションとして用いられるプログラムを生成する情報処理装置における処理方法であって、
前記情報処理装置が、
前記Webアプリケーションの画面を介して入力される項目を定義する入力定義情報と、前記画面に出力する項目を定義する出力定義情報とを入出力定義情報として管理する入出力定義管理ステップと、
前記プログラムをWebサービスとして用いるかの選択を受け付ける選択受付ステップと、
前記入出力定義管理ステップにより管理されている入出力定義情報を用いて、前記選択受付ステップにより受け付けた選択に従って、
Webアプリケーションとして用いられるプログラム及び当該Webアプリケーションの処理結果を表示するための画面を出力するプログラムを生成するか又はWebサービスの利用に必要なインタフェースの定義情報及び当該Webサービスとして用いられるプログラムを生成するかを制御するプログラム生成制御ステップと
を実行することを特徴とする処理方法。
A processing method in an information processing apparatus for generating a program used as a Web application, comprising:
The information processing device is
An input/output definition management step of managing, as input/output definition information, input definition information defining items input via the screen of the Web application and output definition information defining items output to the screen;
A selection receiving step of receiving a selection of whether to use the program as a Web service,
Using the input/output definition information managed in the input/output definition management step, according to the selection accepted in the selection acceptance step,
A program used as a Web application and a program for outputting a screen for displaying the processing result of the Web application are generated, or interface definition information necessary for using the Web service and a program used as the Web service are generated. And a program generation control step for controlling the above.
Webアプリケーションとして用いられるプログラムを生成する情報処理装置で実行可能なプログラムであって、
前記情報処理装置を、
前記Webアプリケーションの画面を介して入力される項目を定義する入力定義情報と、前記画面に出力する項目を定義する出力定義情報とを入出力定義情報として管理する入出力定義管理手段と、
前記プログラムをWebサービスとして用いるかの選択を受け付ける選択受付手段と、
前記入出力定義管理手段により管理されている入出力定義情報を用いて、前記選択受付手段により受け付けた選択に従って、
Webアプリケーションとして用いられるプログラム及び当該Webアプリケーションの処理結果を表示するための画面を出力するプログラムを生成するか又はWebサービスの利用に必要なインタフェースの定義情報及び当該Webサービスとして用いられるプログラムを生成するかを制御するプログラム生成制御手段
として機能させることを特徴とするプログラム。
A program that can be executed by an information processing device that generates a program used as a Web application,
The information processing device,
Input/output definition management means for managing, as input/output definition information, input definition information defining items input via the screen of the Web application and output definition information defining items to be output to the screen.
Selection accepting means for accepting selection of whether to use the program as a Web service,
Using the input/output definition information managed by the input/output definition management means, according to the selection accepted by the selection acceptance means,
A program used as a Web application and a program for outputting a screen for displaying the processing result of the Web application are generated, or interface definition information necessary for using the Web service and a program used as the Web service are generated. A program characterized by causing it to function as a program generation control means for controlling such.
JP2017244109A 2016-03-09 2017-12-20 Information processing apparatus, processing method thereof, and program Active JP6730632B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016046333 2016-03-09
JP2016046333 2016-03-09

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2017045390A Division JP6264486B2 (en) 2016-03-09 2017-03-09 Information processing apparatus, processing method thereof, and program

Publications (2)

Publication Number Publication Date
JP2018067344A JP2018067344A (en) 2018-04-26
JP6730632B2 true JP6730632B2 (en) 2020-07-29

Family

ID=59913575

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2017045390A Active JP6264486B2 (en) 2016-03-09 2017-03-09 Information processing apparatus, processing method thereof, and program
JP2017244109A Active JP6730632B2 (en) 2016-03-09 2017-12-20 Information processing apparatus, processing method thereof, and program

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2017045390A Active JP6264486B2 (en) 2016-03-09 2017-03-09 Information processing apparatus, processing method thereof, and program

Country Status (1)

Country Link
JP (2) JP6264486B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7992127B2 (en) * 2004-12-23 2011-08-02 International Business Machines Corporation Method and system of encapsulating web site transactions for computer-aided generation of web services
JP2008134906A (en) * 2006-11-29 2008-06-12 Hitachi Ltd Business process definition generation method, device and program

Also Published As

Publication number Publication date
JP2018067344A (en) 2018-04-26
JP6264486B2 (en) 2018-01-24
JP2017168100A (en) 2017-09-21

Similar Documents

Publication Publication Date Title
JP5128673B2 (en) Application development support apparatus, program, and recording medium
JP2016224923A (en) Method and system for automated generation of user form interface
US11487595B2 (en) API adapter creation device, API adapter creation method, and API adapter creation program
JP6332533B2 (en) Information processing apparatus, processing method thereof, and program
JPWO2016113914A1 (en) Development support system
CN111488148A (en) Webpage source code generation method and device
JP6002302B2 (en) Web application generation system, Web application generation system control method, Web application generation system program, Web application generation device, Web application generation device control method, and Web application generation device program
JP7004930B2 (en) Information processing equipment and its processing method and program
JP7014960B2 (en) Information processing equipment, servers, their processing methods and programs
JP6730632B2 (en) Information processing apparatus, processing method thereof, and program
KR102397494B1 (en) Low code web development and operating system, and service method using of it
JP6697168B2 (en) Information processing apparatus, processing method thereof, and program
JP2020123175A (en) Code management system and code management method
JP6264399B2 (en) Information processing apparatus, processing method thereof, and program
JP6256535B2 (en) Information processing apparatus, processing method thereof, and program
US11061664B2 (en) Code management system and code management method
CN114489607A (en) Cross-stack application processing and page rendering method, device, equipment and storage medium
JP6635104B2 (en) Information processing apparatus, its processing method and program
JP7060788B2 (en) Information processing equipment, information processing equipment control methods, and computer programs
JP4894534B2 (en) Generator service providing system, design information reuse and storage method, and generator service program
JP2019012469A (en) Server, processing method thereof, and program
WO2023162260A1 (en) Environment construction assistance device, system, and method, and computer-readable medium
KR102382703B1 (en) Multi-Channel Integration Platform Authoring Device and Method Thereby
JP6652724B2 (en) Information processing apparatus, information processing apparatus control method, and program
Hodel Integration with Third-Party Tools

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20180703

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20181031

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20190115

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200306

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: 20200602

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200615

R151 Written notification of patent or utility model registration

Ref document number: 6730632

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250