JP5863874B2 - Image processing system, Web server, control method and program in image processing system - Google Patents

Image processing system, Web server, control method and program in image processing system Download PDF

Info

Publication number
JP5863874B2
JP5863874B2 JP2014096219A JP2014096219A JP5863874B2 JP 5863874 B2 JP5863874 B2 JP 5863874B2 JP 2014096219 A JP2014096219 A JP 2014096219A JP 2014096219 A JP2014096219 A JP 2014096219A JP 5863874 B2 JP5863874 B2 JP 5863874B2
Authority
JP
Japan
Prior art keywords
request
function
image processing
web server
processing apparatus
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.)
Expired - Fee Related
Application number
JP2014096219A
Other languages
Japanese (ja)
Other versions
JP2014146383A (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 Inc
Original Assignee
Canon 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 Inc filed Critical Canon Inc
Priority to JP2014096219A priority Critical patent/JP5863874B2/en
Publication of JP2014146383A publication Critical patent/JP2014146383A/en
Application granted granted Critical
Publication of JP5863874B2 publication Critical patent/JP5863874B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、Webサーバと、当該Webサーバから提供される画面を表示する画像処理装置とを含む画像処理システムに関する。   The present invention relates to an image processing system including a Web server and an image processing apparatus that displays a screen provided from the Web server.

パーソナルコンピュータ等の情報処理装置がネットワークを介してWebサーバに接続され、Webサーバから提供される操作画面を情報処理装置のWebブラウザに表示する技術が知られている。この場合、情報処理装置のWebブラウザがWebサーバに対して操作画面を要求(リクエスト)する。そして、Webサーバに格納されたWebアプリケーションがWebブラウザからの要求に応えて、Webブラウザに操作画面を表示させるためのHTMLデータをWebブラウザに応答(レスポンス)する。Webブラウザは、受信したHTMLデータを解析し、HTMLデータの記述に基づいた操作画面を表示する。更に、Webブラウザに表示された操作画面を介してユーザが指示を入力すると、入力された指示をWebブラウザがWebサーバに対して通知する。そして、この通知を受けたWebサーバのWebアプリケーションは、入力された指示に従って処理を実行する。   A technique is known in which an information processing apparatus such as a personal computer is connected to a Web server via a network, and an operation screen provided from the Web server is displayed on a Web browser of the information processing apparatus. In this case, the Web browser of the information processing apparatus requests (requests) an operation screen from the Web server. In response to a request from the Web browser, the Web application stored in the Web server responds to the HTML data for displaying the operation screen on the Web browser. The Web browser analyzes the received HTML data and displays an operation screen based on the description of the HTML data. Further, when the user inputs an instruction via the operation screen displayed on the Web browser, the Web browser notifies the input instruction to the Web server. Then, the Web application of the Web server that has received this notification executes processing according to the input instruction.

また、最近では、スキャナやプリンタ等を備えたMFP(Multi Function Peripheral)の中にも、上述のWebブラウザを備えるものがあり、MFPは、上記手順でWebサーバから提供される操作画面をMFPのWebブラウザに表示し、ユーザからの各種指示を受け付ける(例えば、特許文献1)。そして、ユーザにより入力された指示はMFPのWebブラウザによってWebサーバに通知される。この通知を受けたWebサーバは、ユーザから入力された指示内容に従って、MFPに対して各種処理の実行を依頼する。そして、この依頼を受けたMFPは、依頼された処理を実行する。これにより、MFPを操作するための全てのメニューデータをMFPに保持しておく必要がなくなると共に、メニューデータの変更もWebサーバで容易に行うことが可能になる。   Recently, some MFPs (Multi Function Peripherals) equipped with a scanner, a printer, and the like are equipped with the above-described web browser. The MFP displays the operation screen provided from the web server in the above procedure. It displays on a Web browser and receives various instructions from the user (for example, Patent Document 1). The instruction input by the user is notified to the Web server by the Web browser of the MFP. Upon receiving this notification, the Web server requests the MFP to execute various processes in accordance with the instruction content input by the user. Upon receiving this request, the MFP executes the requested processing. Accordingly, it is not necessary to store all menu data for operating the MFP in the MFP, and the menu data can be easily changed on the Web server.

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

一般に、MFPのWebブラウザに表示された操作画面を介して入力された指示に基づいてWebサーバのWebアプリケーションが処理を実行する場合、Webアプリケーションによる処理が終了したことに応じて、新たな操作画面がWebブラウザに表示される。つまり、Webサーバは、Webアプリケーションによる処理が終了した時に、処理の終了を通知する通知画面、或いは次の操作をユーザに行わせるための操作画面のHTMLデータを生成する。そして、生成したHTMLデータを、Webブラウザからのリクエストに対するレスポンスとしてWebブラウザに送信する。一方、PCやMFP等の情報処理装置に搭載されるWebブラウザには、Webサーバに対してリクエストを送信してから、Webサーバからのレスポンスを受け取るまでの制限時間(タイムアウト時間)が設定されているものがある。そして、このタイムアウト時間内にWebサーバからのレスポンスがない場合、Webブラウザは送信したリクエストを無効化する処理(タイムアウト処理)を行う。当該タイムアウト処理により、例えば、送信したリクエストに対するレスポンスを待つことを止め、新たなリクエストの送信が可能な状態となる。このとき、セッション自体を破棄する処理を行って、Webブラウザのリソースを解放する場合もある。   Generally, when a web application of a web server executes a process based on an instruction input via an operation screen displayed on the web browser of the MFP, a new operation screen is displayed in response to the completion of the process by the web application. Is displayed on the Web browser. That is, the Web server generates HTML data of a notification screen for notifying the end of processing or an operation screen for allowing the user to perform the next operation when the processing by the Web application is completed. Then, the generated HTML data is transmitted to the web browser as a response to the request from the web browser. On the other hand, a time limit (timeout time) from when a request is transmitted to the Web server until a response is received from the Web server is set in the Web browser installed in the information processing apparatus such as a PC or MFP. There is something. If there is no response from the Web server within this timeout time, the Web browser performs processing (timeout processing) for invalidating the transmitted request. By the timeout process, for example, waiting for a response to the transmitted request is stopped, and a new request can be transmitted. At this time, a process of discarding the session itself may be performed to release resources of the Web browser.

上述の特許文献1では、MFPのWebブラウザに表示された操作画面を介してユーザが入力指示を行うと、Webブラウザは、その指示に基づくリクエストをWebサーバに送信する一方で、Webサーバは、このリクエストに対するレスポンスとしての処理結果(新たな処理要求)をHTMLデータでWebブラウザに送信する。   In Patent Document 1 described above, when a user gives an input instruction via an operation screen displayed on the Web browser of the MFP, the Web browser transmits a request based on the instruction to the Web server, while the Web server A processing result (new processing request) as a response to this request is transmitted to the Web browser as HTML data.

しかしながら、Webブラウザが操作画面を表示してから、ユーザによる指示が行われずに所定時間を経過すると自動的にタイムアウト処理が実行されてしまい、Webサーバから送信されるレスポンスがMFPのWebブラウザで正常に受信できなくなる。これにより、MFPで実行した処理結果をユーザに通知することができなくなってしまう。   However, after a predetermined time elapses without an instruction from the user after the Web browser displays the operation screen, the timeout process is automatically executed, and the response transmitted from the Web server is normal in the MFP Web browser. Cannot be received. As a result, it becomes impossible to notify the user of the processing result executed by the MFP.

本発明は、上記問題点に鑑みてなされたものであり、機能の実行状況を適切に表示する仕組みを提供するものである。   The present invention has been made in view of the above problems, and provides a mechanism for appropriately displaying the execution status of functions.

上記課題を解決するため、本発明に係る画像処理システムにおける制御方法は、Webサーバと、当該Webサーバが提供する画面を表示する画像処理装置とを含む画像処理システムにおける制御方法であって、前記画像処理装置が、前記画面を介してユーザが機能の実行を指示したことに応じて、当該機能の実行を前記Webサーバに要求する第1の要求工程と前記Webサーバが、前記第1の要求工程における要求に従って前記機能の実行要求を前記画像処理装置に送信する第の送信工程と、前記画像処理装置が、前記第の送信工程で送信された前記実行要求を受信する第の受信工程と、前記画像処理装置が、前記第の受信工程で受信した前記実行要求に基づいて前記機能を実行する実行工程と、前記Webサーバが、前記第1の要求工程における要求に対する応答メッセージに、前記画像処理装置が前記Webサーバから前記機能の実行状況を示す画面を取得するための情報を含めて、前記画像処理装置に送信する第2の送信工程と、前記画像処理装置が、前記第1の送信工程で送信された前記応答メッセージに含められた前記情報を、前記Webサーバから受信する第2の受信工程と、前記画像処理装置が、前記第の受信工程で受信された前記情報に基づいて、前記機能の実行状況を示す画面を前記Webサーバに要求する第2の要求工程と、前記Webサーバが、前記第2の要求工程における要求に従って前記画像処理装置から前記機能の実行状況を取得する取得工程と、前記Webサーバが、前記取得工程で取得された前記機能の実行状況を示す画面を前記画像処理装置に送信する第3の送信工程と、前記画像処理装置が、前記第3の送信工程で送信された前記機能の実行状況を示す画面を受信する第3の受信工程と、を有することを特徴とする。 In order to solve the above problems, a control method in an image processing system according to the present invention is a control method in an image processing system including a Web server and an image processing apparatus that displays a screen provided by the Web server, the image processing apparatus, in response to a user instructs the execution of functions through the screen, a first request step of requesting execution of the function to the Web server, the Web server, the first a first transmission step of transmitting the execution request of the function to the image processing apparatus according to the request in the request step, the image processing apparatus, first receives the you line requests before transmitted in the first transmission step 1 of a receiving step, the image processing apparatus, an execution step of executing the function based on the execution request received by the first receiving step, the Web server, the second A second transmission step of transmitting to the image processing device a response message to the request in the requesting step including information for the image processing device to acquire a screen indicating the execution status of the function from the Web server; A second reception step in which the image processing apparatus receives the information included in the response message transmitted in the first transmission step from the Web server; and the image processing apparatus includes the second A second request step for requesting the Web server to display a screen indicating the execution status of the function based on the information received in the reception step, and the Web server according to the request in the second request step. An acquisition step of acquiring the execution status of the function from the image processing apparatus, and the Web server displays a screen showing the execution status of the function acquired in the acquisition step. A third transmission step for transmitting to the image processing device; and a third reception step for receiving the screen indicating the execution status of the function transmitted in the third transmission step by the image processing device. It is characterized by.

本発明によれば、機能の実行状況を適切に表示する仕組みを提供することができる。   According to the present invention, it is possible to provide a mechanism for appropriately displaying the execution status of functions.

本発明の実施形態1に係る情報処理システムの全体構成を示す図である。It is a figure showing the whole information processing system composition concerning Embodiment 1 of the present invention. MFP101及びWebサーバ102のハードウェア構成を示す図である。2 is a diagram illustrating a hardware configuration of an MFP 101 and a Web server 102. FIG. MFP101及びWebサーバ102のソフトウェア構成を示す図である。2 is a diagram illustrating a software configuration of an MFP 101 and a Web server 102. FIG. 情報処理システムの処理手順を示す図である。It is a figure which shows the process sequence of information processing system. メニュー画面及び機能実行指示画面の一例を示す図である。It is a figure which shows an example of a menu screen and a function execution instruction screen. パラメータ及びHTMLデータの一例を示す図である。It is a figure which shows an example of a parameter and HTML data. Webアプリケーション410の処理手順を示す図である。It is a figure which shows the process sequence of the Web application 410. FIG. 実施形態2に係るWebアプリケーション410の処理手順を示す図である。It is a figure which shows the process sequence of the Web application 410 which concerns on Embodiment 2. FIG. HTMLデータの一例を示す図である。It is a figure which shows an example of HTML data. 実施形態4に係るMFP101及びWebサーバ102のソフトウェア構成を示す図である。FIG. 10 illustrates a software configuration of an MFP 101 and a Web server 102 according to a fourth embodiment. 情報処理システムの処理手順を示す図である。It is a figure which shows the process sequence of information processing system. 機能実行スクリプトの一例を示す図である。It is a figure which shows an example of a function execution script.

以下、図面を参照して本発明の実施の形態を詳細に説明する。なお、以下の実施形態は特許請求の範囲を限定するものでなく、また、実施形態で説明されている特徴の組み合わせの全てが発明の解決手段に必須のものとは限らない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. It should be noted that the following embodiments do not limit the scope of the claims, and all combinations of features described in the embodiments are not necessarily essential to the solution means of the invention.

<実施形態1>
本実施形態1に係る情報処理装置は、例えば、スキャナ機能やプリンタ機能等を備えたMFPであり、Webサーバから提供される操作画面を表示するためのWebブラウザを備える。本実施形態1では、Webブラウザから定期的にWebサーバへアクセスを行うことで、Webブラウザのタイムアウトを防止する例を説明する。
<Embodiment 1>
The information processing apparatus according to the first embodiment is, for example, an MFP having a scanner function, a printer function, and the like, and includes a Web browser for displaying an operation screen provided from a Web server. In the first embodiment, an example will be described in which a web browser is prevented from being timed out by periodically accessing the web server from the web browser.

[情報処理システムのハードウェア構成(図1、図2)]
本実施形態1に係る情報処理システムは、MFP101と、MFP101とLAN110等のネットワークで接続されたWebサーバ102とを備える。MFP101とWebサーバ102とは、互いに通信可能に構成される。
[Hardware configuration of information processing system (FIGS. 1 and 2)]
The information processing system according to the first embodiment includes an MFP 101 and a Web server 102 connected to the MFP 101 via a network such as a LAN 110. The MFP 101 and the Web server 102 are configured to be able to communicate with each other.

(MFP101のハードウェア構成(図2の2a))
MFP101は、原稿画像を入力するためのスキャナ部221、画像を出力するためのプリンタ部220、ユーザが所望の操作を行うための操作部219及びMFP110全体の動作を制御する制御部210を備える。制御部210は、CPU211、ROM212、RAM213、HDD214及び各種インターフェースを備える。
(Hardware configuration of MFP 101 (2a in FIG. 2))
The MFP 101 includes a scanner unit 221 for inputting a document image, a printer unit 220 for outputting an image, an operation unit 219 for a user to perform a desired operation, and a control unit 210 for controlling the overall operation of the MFP 110. The control unit 210 includes a CPU 211, a ROM 212, a RAM 213, an HDD 214, and various interfaces.

CPU211は、ROM212に記憶された制御プログラムを読み出して読取制御や送信制御等の各種制御を行う。RAM213は、CPU211のメインメモリ、ワークエリア等の一時記憶領域として用いられる。HDD214は、画像データや各種プログラム、或いは後述する各種情報テーブルを記憶する。操作部I/F215は、操作部219と制御部210とを接続する。操作部219は、タッチパネル機能を有する液晶表示部やキーボード等を備える。   The CPU 211 reads out a control program stored in the ROM 212 and performs various controls such as reading control and transmission control. The RAM 213 is used as a temporary storage area such as a main memory or work area for the CPU 211. The HDD 214 stores image data, various programs, or various information tables described later. The operation unit I / F 215 connects the operation unit 219 and the control unit 210. The operation unit 219 includes a liquid crystal display unit having a touch panel function, a keyboard, and the like.

MFP101は、後述するWebブラウザ機能を更に備え、このWebブラウザは、Webサーバ102から受信したHTMLデータを解析し、受信したHTMLデータの記述に基づく操作画面を操作部219の液晶表示部に表示する。   The MFP 101 further includes a Web browser function to be described later. This Web browser analyzes the HTML data received from the Web server 102 and displays an operation screen based on the description of the received HTML data on the liquid crystal display unit of the operation unit 219. .

プリンタI/F216は、プリンタ部220と制御部210とを接続する。プリンタ部220で印刷すべき画像データはプリンタI/F216を介して制御部210から転送され、プリンタ部220において記録媒体上に印刷される。スキャナI/F217は、スキャナ部221と制御部210とを接続する。スキャナ部221は、原稿上の画像を読み取って画像データを生成し、スキャナI/F217を介して制御部210に入力する。ネットワークI/F218は、MFP101の制御部210をLAN110に接続する。ネットワークI/F218は、LAN110上の外部装置(例えば、Webサーバ102)に画像データや情報を送信したり、LAN110上の外部装置から各種情報を受信したりする。   The printer I / F 216 connects the printer unit 220 and the control unit 210. Image data to be printed by the printer unit 220 is transferred from the control unit 210 via the printer I / F 216 and printed on a recording medium by the printer unit 220. The scanner I / F 217 connects the scanner unit 221 and the control unit 210. The scanner unit 221 reads an image on a document to generate image data, and inputs the image data to the control unit 210 via the scanner I / F 217. A network I / F 218 connects the control unit 210 of the MFP 101 to the LAN 110. The network I / F 218 transmits image data and information to an external device (for example, the Web server 102) on the LAN 110, and receives various types of information from the external device on the LAN 110.

(Webサーバ102のハードウェア構成(図2の2b))
Webサーバ102は、Webサーバ102全体の動作を制御する制御部310を備える。制御部310は、CPU311、ROM312、RAM313、HDD314及びネットワークI/F315を備える。
(Hardware configuration of Web server 102 (2b in FIG. 2))
The Web server 102 includes a control unit 310 that controls the operation of the entire Web server 102. The control unit 310 includes a CPU 311, ROM 312, RAM 313, HDD 314, and network I / F 315.

CPU311は、ROM312に記憶された制御プログラムを読み出して各種制御処理を実行する。RAM313は、CPU311のメインメモリ、ワークエリア等の一時記憶領域として用いられる。HDD314は、画像データや各種プログラム、或いは後述する各種情報テーブルを記憶する。ネットワークI/F315は、制御部310(Webサーバ102)をLAN110に接続する。ネットワークI/F315は、LAN110上の他の装置との間で各種情報を送受信する。   The CPU 311 reads out the control program stored in the ROM 312 and executes various control processes. The RAM 313 is used as a temporary storage area such as a main memory or work area for the CPU 311. The HDD 314 stores image data, various programs, or various information tables described later. The network I / F 315 connects the control unit 310 (Web server 102) to the LAN 110. The network I / F 315 transmits and receives various information to and from other devices on the LAN 110.

[情報処理システムのソフトウェア構成(図3)]
(MFP101のソフトウェア構成)
MFP101は、Webブラウザ440及びサービスプロバイダ450を備える。各機能部は、MFP101のCPU211が制御プログラムを実行することにより実現される。
[Software configuration of information processing system (Fig. 3)]
(Software configuration of MFP 101)
The MFP 101 includes a web browser 440 and a service provider 450. Each functional unit is realized by the CPU 211 of the MFP 101 executing a control program.

Webブラウザ440は、通信部441、解析部442及び画面表示部443を有する。通信部441は、HTTPプロトコルに従ってWebアプリケーション410のプレゼンテーション部411と通信する。より具体的には、通信部441は、Webブラウザ440で表示する操作画面をWebアプリケーション410に対して要求する。更に、通信部441は、Webブラウザ440で表示した操作画面を介してユーザが入力するための情報をWebアプリケーション410に対するリクエストとして送信する。また、通信部441は、Webアプリケーション410から送信されるレスポンス(処理結果)を受信する。   The web browser 440 includes a communication unit 441, an analysis unit 442, and a screen display unit 443. The communication unit 441 communicates with the presentation unit 411 of the Web application 410 according to the HTTP protocol. More specifically, the communication unit 441 requests the Web application 410 for an operation screen to be displayed on the Web browser 440. Further, the communication unit 441 transmits information to be input by the user via the operation screen displayed on the Web browser 440 as a request to the Web application 410. Further, the communication unit 441 receives a response (processing result) transmitted from the Web application 410.

解析部442は、Webアプリケーション410から通信部441が受信したレスポンスを解析する。HTMLデータには、HTMLデータや、Webブラウザ440に表示すべき操作画面の内容を示す記述が含まれる。画面表示部443は、HTMLデータの解析結果に基づいて、操作部219に操作画面を表示する。   The analysis unit 442 analyzes the response received by the communication unit 441 from the Web application 410. The HTML data includes HTML data and a description indicating the content of the operation screen to be displayed on the Web browser 440. The screen display unit 443 displays an operation screen on the operation unit 219 based on the analysis result of the HTML data.

サービスプロバイダ450は、通信部451及びジョブ生成部452を有する。通信部451は、後述のWebアプリケーション410のロジック部412から処理依頼を受け付ける。ジョブ生成部452は、通信部451が受け付けた処理依頼を受け取り、依頼された処理を実行するためのジョブを生成して実行する。   The service provider 450 includes a communication unit 451 and a job generation unit 452. The communication unit 451 receives a processing request from the logic unit 412 of the Web application 410 described later. The job generation unit 452 receives the processing request accepted by the communication unit 451, and generates and executes a job for executing the requested processing.

(Webサーバ102のソフトウェア構成)
Webサーバ102は、Webアプリケーション410を有する。Webアプリケーション410は、Webサーバ102のCPU311が制御プログラムを実行することにより実現される。
(Software configuration of Web server 102)
The web server 102 has a web application 410. The web application 410 is realized by the CPU 311 of the web server 102 executing a control program.

Webアプリケーション410は、Webブラウザ440からリクエストとして送信される情報を受信し、受信した情報に基づいて処理を実行する。処理結果は、Webアプリケーション410からWebブラウザ440に対してレスポンスとして送信される。   The web application 410 receives information transmitted as a request from the web browser 440, and executes processing based on the received information. The processing result is transmitted from the Web application 410 to the Web browser 440 as a response.

Webアプリケーション410は、プレゼンテーション部411及びロジック部412を有する。プレゼンテーション部411は、MFP101の通信部441と通信し、通信部441から送信されるリクエストを受信する。次に、プレゼンテーション部411は、受信したリクエストをロジック部412へ通知し、ロジック部412からの応答を待つ。ロジック部412からの応答データを受け取ったプレゼンテーション部411は、応答データの内容に従ってMFP101のWebブラウザ440で表示すべき操作画面に対応するHTMLデータをレスポンスとして送信する。MFP101のWebブラウザ440に表示された操作画面を介して入力された情報は、リクエストとして通信部441から送信される。   The web application 410 includes a presentation unit 411 and a logic unit 412. The presentation unit 411 communicates with the communication unit 441 of the MFP 101 and receives a request transmitted from the communication unit 441. Next, the presentation unit 411 notifies the received request to the logic unit 412 and waits for a response from the logic unit 412. The presentation unit 411 that has received the response data from the logic unit 412 transmits, as a response, HTML data corresponding to the operation screen to be displayed on the Web browser 440 of the MFP 101 according to the content of the response data. Information input via the operation screen displayed on the Web browser 440 of the MFP 101 is transmitted from the communication unit 441 as a request.

ロジック部412は、プレゼンテーション部411から通知されるリクエストに応じて各種処理を実行すると共に、MFP101に対して処理の実行を依頼する。具体的には、MFP101のプリンタ部220による印刷処理の実行や、スキャナ部221による読み取り処理の実行、或いはネットワークI/F218を介した送信処理の実行を依頼する。   The logic unit 412 executes various processes in response to a request notified from the presentation unit 411 and requests the MFP 101 to execute the processes. Specifically, a request is made to execute print processing by the printer unit 220 of the MFP 101, execute read processing by the scanner unit 221, or execute transmission processing via the network I / F 218.

MFP101に対して処理の実行を依頼する場合、ロジック部412は、MFP101のサービスプロバイダ450の通信部451と通信する。そして、ロジック部412は、MFP101により実行された処理結果をMFP101の通信部451から受信する。   When requesting the MFP 101 to execute processing, the logic unit 412 communicates with the communication unit 451 of the service provider 450 of the MFP 101. The logic unit 412 receives the processing result executed by the MFP 101 from the communication unit 451 of the MFP 101.

[情報処理システムの処理手順(図4)]
まず、MFP101のWebブラウザ440がユーザの操作により起動される。Webブラウザ440は、Webアプリケーション410に対してメニュー画面のリクエストを行う(S501)。リクエストを受けたWebアプリケーション410は、Webブラウザ440にメニュー画面のレスポンスを返す(S502)。
[Processing procedure of information processing system (FIG. 4)]
First, the Web browser 440 of the MFP 101 is activated by a user operation. The web browser 440 makes a menu screen request to the web application 410 (S501). Upon receiving the request, the Web application 410 returns a menu screen response to the Web browser 440 (S502).

Webブラウザ440は、受信したメニュー画面(例えば、図5の600)を表示する(S503)。図5において、601乃至604がMFP101のどの機能を利用するかをユーザが選択するためのボタンである。ユーザが利用すべき機能を選択すると、Webブラウザ440は、ユーザにより押下されたボタンに対応した機能画面のリクエストをWebアプリケーション410に対して行う(S504)。リクエストを受けたWebアプリケーション410は、Webブラウザ440に機能画面のレスポンスを返す(S505)。   The web browser 440 displays the received menu screen (for example, 600 in FIG. 5) (S503). In FIG. 5, buttons 601 to 604 are buttons for the user to select which function of the MFP 101 is to be used. When the user selects a function to be used, the Web browser 440 makes a request for a function screen corresponding to the button pressed by the user to the Web application 410 (S504). Upon receiving the request, the Web application 410 returns a response of the function screen to the Web browser 440 (S505).

次に、Webブラウザ440は、受信した機能実行指示画面(例えば、図5の700)を表示する(S506)。図5の700に示す機能実行指示画面は、MFP101のスキャナ部221を用いて原稿上の画像を読み取ることにより生成した画像データをLAN110上のFTPサーバに送信することを指示するためのものである。この例では、画像データをPDFフォーマットで生成し、「test.pdf」というファイル名を付与することが設定された状態となっている。701は機能の実行を指示する実行ボタンである。   Next, the Web browser 440 displays the received function execution instruction screen (for example, 700 in FIG. 5) (S506). A function execution instruction screen 700 shown in FIG. 5 is used to instruct to transmit image data generated by reading an image on a document using the scanner unit 221 of the MFP 101 to an FTP server on the LAN 110. . In this example, image data is generated in the PDF format and a file name “test.pdf” is set to be assigned. Reference numeral 701 denotes an execution button for instructing execution of a function.

ユーザが実行ボタン701を押下することにより機能の実行を指示すると、Webブラウザ440(第1の送信手段)は、Webアプリケーション410に対して機能の実行をリクエストする(すなわち、第1の処理要求データを送信する)(S507)。リクエストを受け取ったWebアプリケーション410は、サービスプロバイダ450に対して機能の実行をリクエストする(S508)。S508では、例えば、図6の801に示すパラメータを用いて、サービスプロバイダ450に対して指示を行う。このパラメータは、実行機能として「FTP送信」を、送信するファイル名には「test.pdf」、ファイル形式は「PDF」とS506でWebブラウザ440に表示した機能事項指示画面を介して、ユーザにより入力指示された値がそれぞれ設定される。また、送信先にはFTPサーバのアドレスとフォルダのパスが設定される。最後に、応答モードでは、Webアプリケーション410からのリクエストに対してサービスプロバイダ450が応答するタイミングを設定する。この例では、「即時」が設定されており、サービスプロバイダ450は、機能の実行が全て終了するのを待たずに即時にレスポンスを返すことになる。このパラメータで機能の実行を指示されたサービスプロバイダ450は、機能画面の表示を行う(S509)。   When the user instructs execution of the function by pressing the execution button 701, the Web browser 440 (first transmission unit) requests the Web application 410 to execute the function (that is, the first processing request data). (S507). The Web application 410 that has received the request requests the service provider 450 to execute the function (S508). In S508, for example, the service provider 450 is instructed using the parameters indicated by reference numeral 801 in FIG. The parameters are “FTP transmission” as the execution function, “test.pdf” as the file name to be transmitted, “PDF” as the file format, and the function item instruction screen displayed on the Web browser 440 in S506 by the user. The input instructed values are set respectively. Further, an FTP server address and a folder path are set as the transmission destination. Finally, in the response mode, the timing at which the service provider 450 responds to the request from the Web application 410 is set. In this example, “immediate” is set, and the service provider 450 returns a response immediately without waiting for the completion of the execution of all functions. The service provider 450 instructed to execute the function with this parameter displays the function screen (S509).

更に、サービスプロバイダ450は、パラメータ801に応じたジョブの生成を行い、ジョブを一意に識別するID(識別データ)を発行する(S510)。そして、サービスプロバイダ450は、発行したジョブIDをレスポンスとしてWebアプリケーション410に対して返す(S511)。なお、本レスポンスはS508で指定された通り、ジョブの実行完了を待たずに即座に実行する。   Furthermore, the service provider 450 generates a job according to the parameter 801 and issues an ID (identification data) that uniquely identifies the job (S510). Then, the service provider 450 returns the issued job ID as a response to the Web application 410 (S511). Note that this response is executed immediately without waiting for completion of job execution, as specified in S508.

サービスプロバイダ450は、Webアプリケーション410にレスポンスを返した後も引き続き、S510で生成したジョブの処理を実行する(S512)。ここでは、例えば、スキャナ部等の機能制御、実行中画面やエラー画面、原稿セット等のユーザへの処理依頼画面の表示・更新、エラーリカバリー後の再開や原稿セット後のスキャン開始指示等のユーザ操作のジョブに関する一連の処理を全て実行する。更に、ジョブの処理が終了した後、S509で表示した機能画面を終了してブラウザの画面に戻す。   The service provider 450 continues to execute the job generated in S510 after returning a response to the Web application 410 (S512). Here, for example, functions such as function control of the scanner unit, execution / error screen, display / update of processing request screen to the user such as document set, restart after error recovery, scan start instruction after document set, etc. Executes a series of processes related to the operation job. Further, after the job processing is completed, the function screen displayed in S509 is terminated and the screen is returned to the browser screen.

一方、Webアプリケーション410は、S511で取得したジョブIDを記録する(S513)。更に、Webアプリケーション410は、Webブラウザ440にレスポンスを返す(S514)。   On the other hand, the Web application 410 records the job ID acquired in S511 (S513). Further, the Web application 410 returns a response to the Web browser 440 (S514).

上記処理によれば、Webブラウザ440がS507で機能実行リクエストを行った後、S514で最初のレスポンスを受け取るまでの一連の処理が即座に実行される。これにより、Webブラウザ440は、ジョブの実行終了を待たずにレスポンスを得ることができるため、タイムアウトを防止することができる。しかし、これまでの処理だけではジョブの処理結果をWebブラウザ440に表示することによりユーザに提示することができない。これ以降の処理では、ジョブの処理結果をWebブラウザ440に表示するための処理に関して述べる。   According to the above processing, after the Web browser 440 makes a function execution request in S507, a series of processing until the first response is received in S514 is immediately executed. As a result, the Web browser 440 can obtain a response without waiting for the end of execution of the job, thereby preventing a timeout. However, the job processing result cannot be presented to the user by displaying it on the Web browser 440 only by the processing so far. In the subsequent processing, processing for displaying job processing results on the Web browser 440 will be described.

図6の901、902は、S514でレスポンスするHTMLデータの一例である。HTML901のheadタグ内にmetaタグ903として、「<meta http−equiv=”refresh”content=”5”>」を埋め込んでいる。これは、5秒後に現在表示しているページを再読込するように指示するタグである。すなわち、このHTMLデータは、S514のレスポンスのタイミングを規定した設定データを含んでいる。   901 and 902 in FIG. 6 are examples of HTML data that responds in S514. In the head tag of the HTML 901, “<meta http-equiv =“ refresh ”content =“ 5 ”>” is embedded as a meta tag 903. This is a tag that instructs to reload the currently displayed page after 5 seconds. That is, the HTML data includes setting data that defines the response timing of S514.

Webブラウザ440は、HTML901を表示すると同時にmetaタグの解釈を行う(S515)。Webブラウザ440(第2の送信手段)は、metaタグの指示内容に従い、5秒後に画面更新のリクエスト(第2の処理要求データ)をWebアプリケーション410に送信する(S516)。904は画面に表示するコンテンツを記述する領域で、ジョブの処理状況に応じて任意の画面をWebアプリケーション410によって入れることができる。本例では「実行中です・・・」という表示を行う。   The Web browser 440 displays the HTML 901 and simultaneously interprets the meta tag (S515). The Web browser 440 (second transmission unit) transmits a screen update request (second processing request data) to the Web application 410 after 5 seconds in accordance with the instruction content of the meta tag (S516). Reference numeral 904 denotes an area for describing content to be displayed on the screen, and an arbitrary screen can be entered by the Web application 410 according to the job processing status. In this example, the message “Running ...” is displayed.

HTML902のbodyタグ905に「onload=“setTimeout(‘location.reload()’,5000;”」を埋め込んでいる。これはHTMLが読み込まれたときに実行されるJava(登録商標)Scriptで、5秒後に現在表示しているページを再読込する処理である。906は、904と同様に、画面に表示するコンテンツを記述する領域で、ジョブの処理状況に応じて任意の画面をWebアプリケーション410によって入れることができる。本例では「実行中です・・・」という表示を行う。HTML901とHTML902とは、互いに手法が異なるが同様の処理が実現される。   “Onload =“ setTimeout ('location.reload () ′, 5000; ”” is embedded in the body tag 905 of the HTML 902. This is a Java (registered trademark) script executed when the HTML is read. 906 is an area for describing the content to be displayed on the screen in the same way as 904. An arbitrary screen is displayed by the Web application 410 according to the job processing status. In this example, the display is “execution in progress.” Although HTML 901 and HTML 902 have different methods, similar processing is realized.

S516で画面更新のリクエストを受信したWebアプリケーション410は、S513で記録したジョブIDをパラメータとして、サービスプロバイダ450に対してジョブステータス取得要求を行う(S517)。サービスプロバイダ450(取得手段)は、渡されたジョブIDで示されるジョブのステータスを取得する。ジョブのステータスとは、例えば、実行中・正常終了・キャンセル終了等の処理状態を示すものである。ステータスを取得したサービスプロバイダ450(第3の送信手段)は、Webアプリケーション410に対して取得したステータスをレスポンスとして返す(S518)。   Upon receiving the screen update request in S516, the Web application 410 makes a job status acquisition request to the service provider 450 using the job ID recorded in S513 as a parameter (S517). The service provider 450 (acquisition means) acquires the status of the job indicated by the passed job ID. The job status indicates, for example, a processing state such as executing, normal end, or cancel end. The service provider 450 (third transmission unit) that acquired the status returns the acquired status as a response to the Web application 410 (S518).

ジョブステータスを受信したWebアプリケーション410は、処理内容に応じてWebブラウザ440に返信する画面のHTMLデータを作成する。図7はその処理を示すフローチャートである。Webアプリケーション410は、取得したジョブ処理ステータスが上記3パターン(すなわち、実行中・正常終了・キャンセル終了)のいずれであるかをチェックする(S1001)。ステータスが正常終了の場合には正常終了の画面生成を行う(S1002)。ステータスがキャンセル終了の場合にはキャンセル終了の画面生成を行う(S1003)。ステータスが実行中の場合は、実行中の画面生成を行う(S1004)。S1004で生成する実行中画面は、図6の901や902に該当する。   The Web application 410 that has received the job status creates HTML data for a screen that is sent back to the Web browser 440 according to the processing content. FIG. 7 is a flowchart showing the processing. The Web application 410 checks whether the acquired job processing status is the above three patterns (that is, executing, normal end, or cancel end) (S1001). If the status is normal end, a normal end screen is generated (S1002). If the status is “cancel end”, a cancel end screen is generated (S1003). If the status is being executed, the screen being executed is generated (S1004). The in-execution screen generated in S1004 corresponds to 901 and 902 in FIG.

S519乃至S523の処理は、S1004の実行中画面が生成された後の動作であり、S514乃至S516の処理手順と同様である。ジョブステータスが正常終了やキャンセル終了であった場合には、Webアプリケーション410は、Webブラウザ440に終了画面HTMLのレスポンスを返す(S524)。最後に、Webブラウザ440は、受信した終了画面を表示し(S525)、一連の処理を終了する。   The processing from S519 to S523 is the operation after the execution screen of S1004 is generated, and is the same as the processing procedure from S514 to S516. If the job status is normal end or cancel end, the Web application 410 returns a response of the end screen HTML to the Web browser 440 (S524). Finally, the Web browser 440 displays the received end screen (S525) and ends a series of processing.

S517乃至S525で説明したように、MFP101がジョブを処理している間はWebブラウザ440からWebアプリケーション410に対して定期的に画面更新の要求を行うことでジョブの最新ステータスを取得することが可能となる。これにより、ジョブのステータスが終了になった段階でユーザに終了画面を提示することができる。   As described in S517 to S525, while the MFP 101 is processing a job, it is possible to acquire the latest status of the job by periodically requesting a screen update from the Web browser 440 to the Web application 410. It becomes. Thus, an end screen can be presented to the user when the job status is ended.

以上述べた通り、本実施形態1によれば、WebブラウザでMFPの操作を行っている際、タイムアウト処理が発生することを回避することができ、タイムアウトによりユーザの操作が継続できなくなることを回避することができる。   As described above, according to the first embodiment, it is possible to avoid the occurrence of timeout processing when the MFP is operated with a Web browser, and to prevent the user operation from being continued due to the timeout. can do.

<実施形態2>
本実施形態2は、実施形態1に対してWebアプリケーション410の動作が一部異なる。実施形態1では、Webブラウザ440はWebアプリケーション410の指示内容に従って一定時間経過後にWebアプリケーション410に画面更新のリクエストを行う。このため、ジョブ処理終了からWebブラウザ440に処理終了結果を表示するまでの間に多少のタイムラグがある。また、実施形態1では、Webブラウザ440からのリクエスト頻度を増やすことによりタイムラグを小さくすることができるが、これは通信の負荷増大やWebアプリケーション410とサービスプロバイダ450の処理負荷の増大を招いてしまう。
<Embodiment 2>
The second embodiment is partially different from the first embodiment in the operation of the Web application 410. In the first embodiment, the Web browser 440 makes a screen update request to the Web application 410 after a predetermined time has elapsed in accordance with the instruction content of the Web application 410. For this reason, there is a slight time lag between the end of job processing and the display of the processing end result on the Web browser 440. In the first embodiment, the time lag can be reduced by increasing the frequency of requests from the Web browser 440, but this leads to an increase in communication load and an increase in processing load on the Web application 410 and the service provider 450. .

これに対して、本実施形態2では、Webブラウザ440はWebアプリケーション410に対して即座にリクエストを行う。リクエストを受けたWebアプリケーション410は、Webブラウザ440のタイムアウトが発生しない時間の範囲でその応答を保留する。Webアプリケーション410は、Webブラウザ440へのレスポンスを保留している間に、サービスプロバイダ450に対して定期的に処理ステータスを問い合わせる。Webアプリケーション410は、ジョブの処理ステータスが終了に変化するか、保留時間が満了した場合にのみWebブラウザ440へのレスポンスを行う。上記処理により、タイムアウトの発生を防止するだけでなく、Webブラウザ440でジョブ終了結果の画面を即座に表示することが可能となる。   On the other hand, in the second embodiment, the Web browser 440 makes a request to the Web application 410 immediately. Receiving the request, the Web application 410 holds the response within a time range in which the Web browser 440 does not time out. The web application 410 periodically inquires of the service provider 450 about the processing status while holding a response to the web browser 440. The web application 410 responds to the web browser 440 only when the job processing status changes to end or when the holding time has expired. The above processing not only prevents the occurrence of timeout, but also enables the web browser 440 to immediately display the job end result screen.

図8は、Webブラウザ440からWebアプリケーション410に対してS516と同様の画面更新のリクエストが送信された場合の、Webアプリケーション410の処理を示すフローチャートである。まず、Webアプリケーション410は、Webブラウザ440のリクエストから一定時間経過したか否かを判定する(S1101)。なお、一定時間とは、Webブラウザ440のタイムアウトが発生しない時間である。すなわち、この時間は、タイムアウト時間よりも短く、かつ、タイムアウト時間内にWebサーバからの応答データを受信可能な範囲で定められる。例えば、Webブラウザ440のタイムアウト時間が5分の場合には、タイムアウト時間内である5分未満の時間にしておく。一定時間経過していなければ、Webアプリケーション410は、サービスプロバイダ450からジョブのステータスを取得して、取得したジョブ処理ステータスが上記3パターン(すなわち、実行中・正常終了・キャンセル終了)のいずれであるかをチェックする(S1102)。ジョブのステータスが実行中の場合には、S1101の処理に戻る。ステータスが正常終了の場合には、正常終了の画面生成を行う(S1103)。ステータスがキャンセル終了の場合には、キャンセル終了の画面生成を行う(S1104)。S1101でWebブラウザ440のリクエストから一定時間経過している場合には、実行中画面の生成を行う(S1105)。   FIG. 8 is a flowchart showing processing of the Web application 410 when a screen update request similar to S516 is transmitted from the Web browser 440 to the Web application 410. First, the Web application 410 determines whether or not a certain time has elapsed since the request from the Web browser 440 (S1101). The fixed time is a time during which the web browser 440 does not time out. That is, this time is shorter than the timeout time and is determined within a range in which response data from the Web server can be received within the timeout time. For example, when the time-out time of the Web browser 440 is 5 minutes, the time is set to less than 5 minutes within the time-out time. If the predetermined time has not elapsed, the Web application 410 acquires the job status from the service provider 450, and the acquired job processing status is any of the above three patterns (that is, executing, normal end, cancel end). Is checked (S1102). If the job status is being executed, the process returns to S1101. If the status is normal end, normal end screen generation is performed (S1103). If the status is “cancel end”, a cancel end screen is generated (S1104). If a predetermined time has elapsed since the request from the Web browser 440 in S1101, a running screen is generated (S1105).

図9の1201、1202は、S1105で生成される実行中画面のHTMLデータの一例である。HTML1201のheadタグ内にmetaタグ1203として、「<meta http−equiv=”refresh” content=”0”>」を埋め込んでいる。これは0秒後に現在表示しているページを再読込するように指示するタグである。Webブラウザ440は、HTML1201を表示すると同時にmetaタグの解釈を行い、即座に画面更新のリクエストをWebアプリケーション410に送信する。1204は904と同様である。   Reference numerals 1201 and 1202 in FIG. 9 are examples of HTML data of the screen being executed generated in S1105. “<Meta http-equiv =“ refresh ”content =“ 0 ”>” is embedded as a meta tag 1203 in the head tag of the HTML 1201. This is a tag that instructs to reload the currently displayed page after 0 seconds. The web browser 440 displays the HTML 1201 and interprets the meta tag at the same time, and immediately transmits a screen update request to the web application 410. 1204 is the same as 904.

HTML1202のbodyタグ1205に「onload=“location.reload()”」を埋め込んでいる。これはHTMLが読み込まれたときに実行されるJava(登録商標)Scriptで、現在表示しているページを再読込する処理である。1206は904と同様である。HTML1201とHTML1202とは、互いに手法が異なるが同様の処理が実現される。   In the body tag 1205 of the HTML 1202, “onload =“ location. "reload ()" "is embedded. This is Java (registered trademark) Script executed when HTML is read, and is a process of re-reading the currently displayed page. 1206 is the same as 904. Although HTML 1201 and HTML 1202 are different in method, the same processing is realized.

以上述べた通り、本実施形態2によれば、実施形態1の効果に加えて、ユーザに対して即座に処理結果を表示することが可能となる。   As described above, according to the second embodiment, in addition to the effects of the first embodiment, the processing result can be immediately displayed to the user.

<実施形態3>
上記実施形態2では、Webブラウザ440からのリクエスト保留処理をWebアプリケーション410が行ったが、本実施形態3では、当該リクエスト保留処理をサービスプロバイダ450で実施する点で異なる。サービスプロバイダ450で保留処理を実施することで、Webアプリケーション410とサービスプロバイダ450との間の通信を減らすことが可能となる。更に、Webアプリケーション410は、保留処理の実装が不要となるため作成が容易になる。
<Embodiment 3>
In the second embodiment, the Web application 410 performs the request hold process from the Web browser 440. However, the third embodiment is different in that the request hold process is performed by the service provider 450. By performing the hold process in the service provider 450, it is possible to reduce communication between the Web application 410 and the service provider 450. Furthermore, the Web application 410 is easy to create because it is not necessary to implement a hold process.

本実施形態3では、Webアプリケーション410がサービスプロバイダ450に対してジョブステータス取得を行うS517及びS522(図4参照)において、パラメータに保留時間を設定し、リクエストを行う。ジョブステータス取得要求を受けたサービスプロバイダ450は、実施形態2(図8参照)と同様の処理を行う。サービスプロバイダ450は、リクエストを受けて設定された時間が経過するか、ジョブが終了するかのいずれかの終了条件を満たすまでジョブステータスを監視し、該終了条件を満たした場合にWebアプリケーション410にレスポンスを返す。   In the third embodiment, in S517 and S522 (see FIG. 4) in which the Web application 410 obtains the job status from the service provider 450, the suspension time is set in the parameter and a request is made. Upon receiving the job status acquisition request, the service provider 450 performs the same processing as in the second embodiment (see FIG. 8). The service provider 450 monitors the job status until a set time elapses upon receipt of the request or until the end of the job is satisfied. When the end condition is satisfied, the service provider 450 notifies the Web application 410. Returns a response.

以上述べた通り、本実施形態3によれば、実施形態2の効果に加え、Webアプリケーション410とサービスプロバイダ450との間で行われるジョブステータスを取得するための通信を減らすことが可能となる。   As described above, according to the third embodiment, in addition to the effects of the second embodiment, it is possible to reduce communication for acquiring a job status between the Web application 410 and the service provider 450.

<実施形態4>
上記実施形態1では、Webアプリケーション410がサービスプロバイダ450に対してリクエストを送信したが、本実施形態4では、Webブラウザ440へのレスポンスにサービスプロバイダ450への処理実行を指示するスクリプトを埋め込んで処理を実行させる点で異なる。
<Embodiment 4>
In the first embodiment, the Web application 410 transmits a request to the service provider 450. However, in the fourth embodiment, a script for instructing the service provider 450 to execute processing is embedded in the response to the Web browser 440. It is different in that it is executed.

本実施形態4は、ファイヤウォールの設定によって、サービスプロバイダ450がMFP側で待ち受けポートを開いても、ファイヤウォールの外のWebアプリケーション410からコネクションが張れないような制限のある通信環境であっても、実現可能に構成される。   In the fourth embodiment, even if the service provider 450 opens a standby port on the MFP side due to the setting of the firewall, even in a communication environment with restrictions such that a connection cannot be established from the Web application 410 outside the firewall. Configured to be feasible.

なお、本実施形態4では、Webブラウザ440が直接MFP101の処理を実行するため、Webブラウザ440のタイムアウトは発生しない。しかし、この構成でもWebブラウザ440とWebアプリケーション410は定期的に通信を行う必要がある。   In the fourth embodiment, since the web browser 440 directly executes the processing of the MFP 101, the web browser 440 does not time out. However, even in this configuration, the Web browser 440 and the Web application 410 need to communicate regularly.

これは、一般的にWebアプリケーション410は、同一のWebブラウザからの一定時間内のリクエストは、一連の処理であるという関連付けを行っているためである。この関連付けにより、ジョブIDの記録による順次処理やリクエスト毎のログイン処理の省略を実現することができる。Webブラウザ440からWebアプリケーション410へのリクエストが一定時間無くなると、これらの関連付けが失われるため、処理を継続することができなくなってしまう。   This is because the web application 410 generally associates requests within a certain time from the same web browser as a series of processes. By this association, it is possible to realize the omission of the sequential processing by recording the job ID and the login processing for each request. If there is no request from the Web browser 440 to the Web application 410 for a certain period of time, these associations are lost, and the process cannot be continued.

[情報処理システムのソフトウェア構成(図10)]
基本的な構成は、図4と同様であるため、図4と異なる点のみを説明する。まず、Webアプリケーション410のロジック部412は、実施形態1では、サービスプロバイダ450の通信部451と直接通信を行ってジョブの実行を行ったが、本実施形態4では、ジョブを実行する機能実行スクリプトを生成する処理を行う。生成された機能実行スクリプトは、Webアプリケーション410からWebブラウザ440にレスポンスとして返される。次に、Webブラウザ440にはスクリプト実行部1301が追加される。スクリプト実行部1301は、Webアプリケーション410から受信した機能実行スクリプトを解釈し、サービスプロバイダ450に対してジョブの実行指示を行う。
[Software configuration of information processing system (FIG. 10)]
Since the basic configuration is the same as that in FIG. 4, only the differences from FIG. 4 will be described. First, the logic unit 412 of the Web application 410 executes a job by directly communicating with the communication unit 451 of the service provider 450 in the first embodiment, but in this fourth embodiment, a function execution script that executes the job. Process to generate. The generated function execution script is returned from the Web application 410 to the Web browser 440 as a response. Next, a script execution unit 1301 is added to the Web browser 440. The script execution unit 1301 interprets the function execution script received from the Web application 410 and instructs the service provider 450 to execute the job.

[情報処理システムの処理手順(図11)]
S1401乃至S1407は、実施形態1のS501からS507までの処理(図4参照)と同様である。S1407で機能実行のリクエストを受信したWebアプリケーション410は、リクエストに応じた機能実行スクリプトを生成し、生成された機能実行スクリプトをWebブラウザ440に応答する(S1408)。
[Processing procedure of information processing system (FIG. 11)]
S1401 to S1407 are the same as the processing from S501 to S507 in the first embodiment (see FIG. 4). Upon receiving the function execution request in S1407, the Web application 410 generates a function execution script corresponding to the request, and responds the generated function execution script to the Web browser 440 (S1408).

ここで、図12の1501を用いて、Webアプリケーション410が生成した機能実行スクリプトの一例について説明する。<ScanToFtp response=“0”>は、FTP送信のジョブを即時応答モードで実行することを示す。<Location>タグではジョブを実行した後、JobIdをパラメータとして<GetURL>タグのページへリクエストを送信するように設定している。<Settings>タグ以下は機能を実行するための設定であり、パラメータ801と同様である。   Here, an example of a function execution script generated by the Web application 410 will be described using 1501 in FIG. <ScanToFtp response = "0"> indicates that the FTP transmission job is executed in the immediate response mode. The <Location> tag is set to transmit a request to the page of the <GetURL> tag using JobId as a parameter after executing the job. Below the <Settings> tag is a setting for executing the function, which is the same as the parameter 801.

Webブラウザ440は、受け取った機能実行スクリプトを解析し、サービスプロバイダ450へ機能実行のリクエストを出す(S1409)。S1410乃至S1414は、実施形態1のS508からS512までの処理と同様である。   The Web browser 440 analyzes the received function execution script and issues a function execution request to the service provider 450 (S1409). S1410 to S1414 are the same as the processing from S508 to S512 of the first embodiment.

S1413で機能実行応答を受け取ったスクリプト実行部1301は、Webブラウザ440に応答する(S1415)。更に、Webブラウザ440は、図12の1501の<Location>タグの設定に従い、Webアプリケーション410に画面更新のリクエストを行う(S1416)。   Receiving the function execution response in S1413, the script execution unit 1301 responds to the Web browser 440 (S1415). Furthermore, the Web browser 440 makes a screen update request to the Web application 410 in accordance with the setting of the <Location> tag 1501 in FIG. 12 (S1416).

画面更新のリクエストを受信したWebアプリケーション410は、ジョブIDを記録する(S1417)。更に、Webアプリケーション410は、Webブラウザ440にレスポンスを返す(S1418)。   The Web application 410 that has received the screen update request records the job ID (S1417). Further, the Web application 410 returns a response to the Web browser 440 (S1418).

上記処理によれば、Webアプリケーション410がS1408でWebブラウザ440に最後のレスポンスを行った後、S1416で次のリクエストを受け取るまでの一連の処理は即座に実行される。よって、Webアプリケーション410は、ジョブの実行終了を待たずにリクエストを得ることができるため、タイムアウトを防止することができる。   According to the above processing, after the Web application 410 sends the last response to the Web browser 440 in S1408, a series of processing until the next request is received in S1416 is immediately executed. Therefore, the Web application 410 can obtain a request without waiting for the completion of job execution, and thus can prevent timeout.

しかし、これまでの処理だけではジョブの処理結果をWebブラウザ440に表示し、ユーザに提示することができない。これ以降の処理では、ジョブの処理結果をWebブラウザ440に表示するための処理に関して述べる。   However, the job processing result cannot be displayed on the Web browser 440 and presented to the user only by the processing so far. In the subsequent processing, processing for displaying job processing results on the Web browser 440 will be described.

まず、図12の1601を用いて、S1418でWebブラウザに送信される機能実行スクリプトの一例について説明する。<GetJobStatus response=“20”>は、ジョブのステータス取得を20秒間の保留時間を持って実行することを示す。<Location>タグではジョブが終了した後、JobStatusをパラメータとして<GetURL>タグのページへリクエストを送信するように設定されている。<Settings>タグ以下は、機能を実行するための設定であり、ステータスを取得するジョブのJobIdが指定される。   First, an example of a function execution script transmitted to the Web browser in S1418 will be described using 1601 in FIG. <GetJobStatus response = “20”> indicates that job status acquisition is executed with a hold time of 20 seconds. The <Location> tag is set to transmit a request to the page of the <GetURL> tag using JobStatus as a parameter after the job is completed. Below the <Settings> tag are settings for executing the function, and JobId of the job for acquiring the status is specified.

S1418では図12で示す機能実行スクリプト1601をWebブラウザ440にレスポンスとして返す。Webブラウザ440は、受け取った機能実行スクリプトを解析し、サービスプロバイダ450へジョブステータス取得のリクエストを行う(S1419)。ジョブステータス取得のリクエストを受け取ったスクリプト実行部1301は、サービスプロバイダ450からジョブステータスを取得する(S1420、S1421)。スクリプト実行部1301は、図12の1601で設定された20秒間の保留時間の間か、ジョブが終了するまでジョブのステータス取得を繰り返し、Webブラウザ440へレスポンスを返す(S1422)。なお、本処理は実施形態2及び実施形態3で行った保留処理と同様である。S1422でジョブステータスを受け取ったWebブラウザ440は、図12の1601の<Location>タグの設定に従い、Webアプリケーション410に画面更新のリクエストを送信する。Webアプリケーション410は、リクエストに含まれるジョブのステータスが終了でなければS1418乃至S1423と同様の処理をS1424乃至S1429で行う。ジョブのステータスが終了であった場合には、終了画面のHTMLデータをWebブラウザ440にレスポンスする(S1430)。Webブラウザ440は、受信した終了画面を表示し(S1431)、一連の処理を終了する。   In step S1418, the function execution script 1601 shown in FIG. 12 is returned to the web browser 440 as a response. The Web browser 440 analyzes the received function execution script and makes a request for job status acquisition to the service provider 450 (S1419). Receiving the job status acquisition request, the script execution unit 1301 acquires the job status from the service provider 450 (S1420, S1421). The script execution unit 1301 repeats acquiring the job status during the 20-second hold time set in 1601 of FIG. 12 or until the job is completed, and returns a response to the Web browser 440 (S1422). This process is the same as the hold process performed in the second and third embodiments. Upon receiving the job status in S1422, the Web browser 440 transmits a screen update request to the Web application 410 in accordance with the <Location> tag setting 1601 in FIG. If the status of the job included in the request is not completed, the Web application 410 performs the same processing as S1418 to S1423 in S1424 to S1429. If the job status is “end”, the HTML data on the end screen is returned to the Web browser 440 (S1430). The web browser 440 displays the received end screen (S1431) and ends the series of processes.

S1418乃至S1431で説明したように、MFP101でジョブが実行中の間はWebブラウザ440からWebアプリケーション410に対して定期的に画面更新の要求を行うことでジョブの最新ステータスを取得することが可能となる。これにより、ジョブのステータスが終了になった段階でユーザに終了画面を提示することができる。   As described in S1418 through S1431, while the job is being executed in the MFP 101, it is possible to acquire the latest status of the job by periodically requesting the screen update from the Web browser 440 to the Web application 410. Thus, an end screen can be presented to the user when the job status is ended.

以上述べた通り、本実施形態4によれば、他の実施形態1乃至3と同様にタイムアウト処理が発生することを回避することができ、タイムアウトによりユーザの操作が継続できなくなることを回避することができる。   As described above, according to the fourth embodiment, it is possible to avoid the occurrence of a timeout process as in the other first to third embodiments, and to prevent the user's operation from being continued due to the timeout. Can do.

<他の実施形態>
本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
<Other embodiments>
The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (11)

Webサーバと、当該Webサーバが提供する画面を表示する画像処理装置とを含む画像処理システムにおける制御方法であって、
前記画像処理装置が、前記画面を介してユーザが機能の実行を指示したことに応じて、当該機能の実行を前記Webサーバに要求する第1の要求工程と、
前記Webサーバが、前記第1の要求工程における要求に従って前記機能の実行要求を前記画像処理装置に送信する第の送信工程と、
前記画像処理装置が、前記第の送信工程で送信された前記実行要求を受信する第の受信工程と、
前記画像処理装置が、前記第の受信工程で受信した前記実行要求に基づいて前記機能を実行する実行工程と、
前記Webサーバが、前記第1の要求工程における要求に対する応答メッセージに、前記画像処理装置が前記Webサーバから前記機能の実行状況を示す画面を取得するための情報を含めて、前記画像処理装置に送信する第2の送信工程と、
前記画像処理装置が、前記第1の送信工程で送信された前記応答メッセージに含められた前記情報を、前記Webサーバから受信する第2の受信工程と、
前記画像処理装置が、前記第の受信工程で受信された前記情報に基づいて、前記機能の実行状況を示す画面を前記Webサーバに要求する第2の要求工程と、
前記Webサーバが、前記第2の要求工程における要求に従って前記画像処理装置から前記機能の実行状況を取得する取得工程と、
前記Webサーバが、前記取得工程で取得された前記機能の実行状況を示す画面を前記画像処理装置に送信する第3の送信工程と、
前記画像処理装置が、前記第3の送信工程で送信された前記機能の実行状況を示す画面を受信する第3の受信工程と、
を有することを特徴とする制御方法。
A control method in an image processing system including a Web server and an image processing apparatus that displays a screen provided by the Web server,
A first request step in which the image processing apparatus requests the Web server to execute the function in response to the user instructing the function to be executed via the screen;
A first transmission step in which the Web server transmits an execution request for the function to the image processing apparatus in accordance with a request in the first request step;
The image processing apparatus includes a first reception step of receiving you line requests before transmitted in the first transmission step,
An execution step wherein the image processing apparatus, to perform the function based on the execution request received by the first receiving step,
The Web server includes in the response message for the request in the first request step information including information for the image processing apparatus to obtain a screen showing the execution status of the function from the Web server. A second transmission step of transmitting;
A second reception step in which the image processing apparatus receives the information included in the response message transmitted in the first transmission step from the Web server;
A second requesting step in which the image processing device requests the Web server to display a screen indicating the execution status of the function based on the information received in the second receiving step;
An acquisition step in which the Web server acquires an execution status of the function from the image processing device in accordance with a request in the second request step;
A third transmission step in which the Web server transmits a screen indicating the execution status of the function acquired in the acquisition step to the image processing device;
A third reception step in which the image processing apparatus receives a screen indicating the execution status of the function transmitted in the third transmission step;
A control method characterized by comprising:
前記画像処理装置が、前記第3の受信工程で受信された前記機能の実行状況を示す画面を表示する表示工程をさらに有することを特徴とする請求項1に記載の制御方法。   The control method according to claim 1, wherein the image processing apparatus further includes a display step of displaying a screen indicating an execution status of the function received in the third reception step. 前記画像処理装置が前記Webサーバから前記機能の実行状況を取得するための情報は、前記画像処理装置が前記Webサーバから前記機能の実行状況を取得するためのタイミングを示す情報であることを特徴とする請求項1または2に記載の制御方法。   The information for the image processing apparatus to acquire the execution status of the function from the Web server is information indicating the timing for the image processing apparatus to acquire the execution status of the function from the Web server. The control method according to claim 1 or 2. 前記第3の送信工程では、前記取得工程で取得された前記機能の実行状況を示す画面と、前記画像処理装置が前記Webサーバから前記機能の実行状況を示す画面を取得するための情報を送信することを特徴とする請求項1乃至3のいずれか1項に記載の制御方法。   In the third transmission step, a screen indicating the execution status of the function acquired in the acquisition step and information for the image processing apparatus to acquire a screen indicating the execution status of the function from the Web server are transmitted. The control method according to any one of claims 1 to 3, wherein: 前記画像処理装置が、前記第3の受信工程で受信された前記情報に基づいて、前記機能の実行状況を示す画面を前記Webサーバに要求する第3の要求工程をさらに有することを特徴する請求項4に記載の制御方法。   The image processing apparatus further includes a third requesting step of requesting a screen indicating the execution status of the function from the Web server based on the information received in the third receiving step. Item 5. The control method according to Item 4. 前記画像処理装置のWebブラウザが、前記第1の要求工程と、前記第の受信工程と、前記第2の要求工程と、前記第3の受信工程とを実行し、
前記画像処理装置のサービスプロバイダが、前記第の受信工程と、前記実行工程とを実行する
ことを特徴とする請求項1乃至5のいずれか1項に記載の制御方法。
A web browser of the image processing apparatus executes the first request step, the second reception step, the second request step, and the third reception step;
The control method according to any one of claims 1 to 5, wherein a service provider of the image processing apparatus executes the first reception step and the execution step.
前記機能は、原稿の画像を読み取って生成した画像データを送信する機能であることを特徴とする請求項1乃至6のいずれか1項に記載の制御方法。   7. The control method according to claim 1, wherein the function is a function of transmitting image data generated by reading an image of a document. 前記実行状況は、前記機能の正常終了、キャンセルによる終了、及び実行中の少なくとも1つを含むことを特徴とする請求項1乃至7のいずれか1項に記載の制御方法。   The control method according to claim 1, wherein the execution status includes at least one of normal termination of the function, termination due to cancellation, and execution. Webサーバと、当該Webサーバが提供する画面を表示する画像処理装置とを含む画像処理システムであって、
前記画像処理装置は、
前記画面を介してユーザが機能の実行を指示したことに応じて、当該機能の実行を前記Webサーバに要求する第1の要求手段と、
前記第1の要求手段による要求に従って前記Webサーバから送信される前記機能の実行要求を受信する第の受信手段と、
前記第の受信手段によって受信された前記実行要求に基づいて前記機能を実行する実行手段と、
前記第1の要求手段による要求に対する応答メッセージに含められた、前記画像処理装置が前記Webサーバから前記機能の実行状況を示す画面を取得するための情報を、前記Webサーバから受信する第2の受信手段と、
前記第の受信手段によって受信された前記情報に基づいて、前記機能の実行状況を示す画面を前記Webサーバに要求する第2の要求手段と、
前記第2の要求手段による要求に従って前記Webサーバから送信された前記機能の実行状況を示す画面を受信する第3の受信手段と、を有し、
前記Webサーバは、
前記第1の要求手段による要求に従って前記機能の実行要求を前記画像処理装置に送信する第の送信手段と、
前記第1の要求手段による要求に対する前記応答メッセージに前記情報を含めて、前記画像処理装置に送信する第2の送信手段と、
前記第2の要求手段による要求に従って前記画像処理装置から前記機能の実行状況を取得する取得手段と、
前記取得手段によって取得された前記機能の実行状況を示す画面を前記画像処理装置に送信する第3の送信手段と、を有する
ことを特徴とする画像処理システム。
An image processing system including a Web server and an image processing apparatus that displays a screen provided by the Web server,
The image processing apparatus includes:
First request means for requesting the Web server to execute the function in response to the user instructing the function to be executed via the screen;
First receiving means for receiving an execution request of the function to be transmitted from the Web server in accordance with a request by the first requesting means,
Executing means for executing said function on the basis of said received execution request was by the first receiving means,
A second information received from the Web server, which is included in a response message to the request by the first request unit, for the image processing apparatus to acquire a screen indicating the execution status of the function from the Web server. Receiving means;
Based on the information received by the second receiving means, second request means for requesting the Web server to display a screen showing the execution status of the function;
Third receiving means for receiving a screen indicating the execution status of the function transmitted from the Web server in accordance with a request by the second request means;
The web server
A first transmission means for transmitting an execution request of the function to the image processing apparatus according to the request by the first requesting means,
Second transmission means for including the information in the response message to the request by the first request means and transmitting the information to the image processing apparatus;
Acquisition means for acquiring the execution status of the function from the image processing apparatus according to the request by the second request unit,
An image processing system comprising: a third transmission unit configured to transmit a screen indicating the execution status of the function acquired by the acquisition unit to the image processing apparatus.
Webサーバによって提供される画面を介してユーザが機能の実行を指示したことに応じて、当該機能の実行を前記Webサーバに要求する第1の要求手段と、
前記第1の要求手段による要求に従って前記Webサーバから送信される前記機能の実行要求を受信する第の受信手段と、
前記第1の受信手段によって受信された前記実行要求に基づいて前記機能を実行する実行手段と、を有する画像処理装置と通信可能なWebサーバであって、
前記第1の要求手段による要求に従って前記機能の実行要求を前記画像処理装置に送信する第の送信手段と、
前記第1の要求手段による要求に対する応答メッセージに、前記画像処理装置が前記Webサーバから前記機能の実行状況を示す画面を取得するための情報を含めて、前記画像処理装置に送信する第2の送信手段と、
前記第の送信手段によって送信された前記情報に基づいて前記画像処理装置から送信される、前記機能の実行状況を示す画面の要求を受信する第3の受信手段と、
前記第3の受信手段によって受信された要求に従って前記画像処理装置から前記機能の実行状況を取得する取得手段と、
前記取得手段によって取得された前記機能の実行状況を示す画面を前記画像処理装置に送信する第3の送信手段と、
を有することを特徴とするWebサーバ。
First request means for requesting the Web server to execute the function in response to the user instructing the function to be executed via a screen provided by the Web server;
First receiving means for receiving an execution request of the function to be transmitted from the Web server in accordance with a request by the first requesting means,
An execution means for executing the function based on the execution request received by the first reception means ; and a Web server capable of communicating with an image processing apparatus,
A first transmission means for transmitting an execution request of the function to the image processing apparatus according to the request by the first requesting means,
A second response message sent to the image processing device including information for the screen to obtain the execution status of the function from the Web server in a response message to the request from the first requesting unit; A transmission means;
Third receiving means for receiving a screen request indicating the execution status of the function , transmitted from the image processing device based on the information transmitted by the second transmitting means;
Obtaining means for obtaining an execution status of the function from the image processing device in accordance with the request received by the third receiving means;
Third transmission means for transmitting a screen showing the execution status of the function acquired by the acquisition means to the image processing apparatus;
A Web server characterized by comprising:
コンピュータを請求項10に記載のWebサーバの各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the Web server of Claim 10.
JP2014096219A 2014-05-07 2014-05-07 Image processing system, Web server, control method and program in image processing system Expired - Fee Related JP5863874B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014096219A JP5863874B2 (en) 2014-05-07 2014-05-07 Image processing system, Web server, control method and program in image processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014096219A JP5863874B2 (en) 2014-05-07 2014-05-07 Image processing system, Web server, control method and program in image processing system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2009291405A Division JP2011134018A (en) 2009-12-22 2009-12-22 Information processor, information processing system, control method, and program

Publications (2)

Publication Number Publication Date
JP2014146383A JP2014146383A (en) 2014-08-14
JP5863874B2 true JP5863874B2 (en) 2016-02-17

Family

ID=51426502

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014096219A Expired - Fee Related JP5863874B2 (en) 2014-05-07 2014-05-07 Image processing system, Web server, control method and program in image processing system

Country Status (1)

Country Link
JP (1) JP5863874B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4403135B2 (en) * 2005-03-17 2010-01-20 株式会社リコー Web service utilization system
JP4759436B2 (en) * 2005-05-20 2011-08-31 株式会社リコー Image handling apparatus, image processing system, image processing control method, and image processing control program
JP4868955B2 (en) * 2006-06-22 2012-02-01 株式会社リコー Image processing apparatus, information processing apparatus, server apparatus, display control system, and display control method

Also Published As

Publication number Publication date
JP2014146383A (en) 2014-08-14

Similar Documents

Publication Publication Date Title
JP2011134018A (en) Information processor, information processing system, control method, and program
JP5743671B2 (en) Information processing apparatus and control method thereof
JP5995525B2 (en) System, image forming apparatus, server, and control method thereof
JP5539043B2 (en) Information transmitting apparatus, information transmitting apparatus control method, and computer program
JP5441646B2 (en) Printing apparatus, printing method, and printing program
JP6011167B2 (en) Communication relay program and communication relay device
US9244640B2 (en) Image processing apparatus, image processing method, web server, control method for the same, and storage medium
US8533262B2 (en) Information processing apparatus, and control method of information processing apparatus, and program
US10949152B2 (en) Printing apparatus capable of cancelling print job based on user operation, control method for printing apparatus, and storage medium
US8610912B2 (en) Image processing apparatus, information processing apparatus, methods for controlling the apparatuses, and storage medium storing program allowing the instruction of the processing to be executed next without waiting for the completion of cooperative processing and allows checking of the processing status of cooperative processing being executed
US9658805B2 (en) Information processing apparatus, system, storage medium, and information processing method for establishing communication path
JP2012063944A (en) Printing system, control method, client terminal, print server, and program
US8937728B2 (en) Image processing apparatus, server apparatus, methods for controlling displays of the apparatuses, and storage medium
JP5711518B2 (en) Information processing apparatus, control method thereof, and program
US20130132599A1 (en) Information processing apparatus, method for controlling information processing apparatus, and storage medium
JP2014128934A (en) Information processing device and information processing method
JP2012119751A (en) Image processing device, image processing device control method, and program
US8976389B2 (en) Printing apparatus for transmitting information printing method thereof, and storage medium
JP5620674B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP2016115198A (en) Printing system, print out device, and program
JP2015005082A (en) Image forming apparatus, control method and program for image forming apparatus
JP5863874B2 (en) Image processing system, Web server, control method and program in image processing system
JP2017021690A (en) Image formation system
JP2009278387A (en) Cooperation system
US9571677B2 (en) Image processing apparatus and non-transitory computer readable medium

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140606

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140606

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150624

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150629

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150828

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151222

R151 Written notification of patent or utility model registration

Ref document number: 5863874

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees