1. Field of the Invention
The present invention generally relates to operation definition information producing techniques and, more particularly, to a method, an apparatus and a program for producing operation definition information which defines operations of a client when using services, a recording medium storing such an operation definition producing program and a data structure of such operation definition information.
2. Description of the Related Art
In recent years, a server (hereinafter, referred to as a Web service server), which provides various kinds of services such as authentication service or equipment management service to clients as Web service, has attracted attention. The Web service server performs a call of the Web service and transmission and reception of data according to a protocol of XML (extensible Markup Language) base, which is represented, for example, by SOAP (Simple Object Access Protocol).
Additionally, a client (hereinafter referred to as a Web service client) using Web service calls the Web service by using SOAP after acquiring information regarding methods and parameters, which the Web service has, according to WSDL (Web Service Description Language). The WSDL is information which is needed when using the Web service, and designates a data-description method for acquiring the information regarding the methods and parameters of the Web service. That is, the Web service client acquires the I/F specification of the Web service according to the WSDL (for example, refer to Patent Document 1).
Patent Document 1: Japanese Laid-Open Patent Application No. 2004-30360
The Web service client 100 using Web service contains an application 110 and a network I/F 120. The application 110 contains a U/I (user interface) 111, an operation definition part 112 and a WSDL processing part 113.
Moreover, the Web service server 200, which offers the Web service, contains a network I/F 210 and a Web service execution part 220. The service discovery 300, which manages the Web service, contains a service management part 310 and a storage part 320 in which WSDL is stored.
A user who operates the Web service client 100 designates the Web service to use among the Web services. In steps S5-S6, the Web service client 100 acquires the information regarding the Web service designated by the user (for example, a Web service name, an IP address of the Web service server 200, WSDL, etc.) from the service discovery 300.
As mentioned above, the Web service client 100 acquires the WSDL of the Web service selected by the user as indicated in the sequence chart shown in
However, although the WSDL defines the I/F specification of the Web service, the WSDL does not define an operation of the Web service client when using the Web service. Therefore, there is a problem in that the Web service client 100 cannot respond when a method of offering Web services is changed, a new function is added or a new Web service is added.
For example, the operation of the Web service client 100 when using the Web service is previously coded in the operation definition part 112. Therefore, there is a problem in that the Web service client 100 must correct the operation definition part 112 when the method of offering the Web service is changed, a new function is added and a new Web service is added.
It should be noted that the above-mentioned Patent Document 1 discloses production of a dedicated API (Application Program Interface) on a substitutional server in accordance with the acquired WSDL so that the Web service client uses the Web service through the dedicated API. That is, the operation of the Web service client when using the Web service is not defined.
It is a general object of the present invention to provide an operation definition information producing technique in which the above-mentioned problems are eliminated.
A more specific object of the present invention is to provide operation definition information producing method and apparatus that can easily produce operation definition information which can define an operation of a client when using services.
In order to achieve the above-mentioned objects, there is provided according to one aspect of the present invention an operation definition information producing method for producing operation definition information that defines an operation of a client when using service in a system in which a server providing the service and the client using the service are connected by a network, the operation definition information producing method comprising: a defining step of causing a user to define a state of the client when using the service and an operation in the state; and a producing step of producing the operation definition information that defines the operation of the client when using the service from the state of the client when using the service and the operation in the state that are defined by the user.
In the operation definition information producing method according to the present invention, the producing step may include: a step of analyzing an operation of the client when using the service in accordance with the state of the client when using the service and the operation in the state that are defined by the user; and a step of producing the operation definition information that defines the operation of the client when using the service in accordance with a result of analysis in the analyzing step.
In the operation definition information producing method, the defining step may cause the user to visually define the state of the client when using the service and the operation in the state. The defining step may cause the user to define the state of the client when using the service and the operation in the state by using a state transit diagram. The defining step may cause the user to define the state of the client when using the service and the operation in the state by using a sequence diagram. The defining step may cause the user to define the state of the client when using the service and the operation in the state by using a table.
In the operation definition information producing method according to the present invention, the producing step may cause the user to edit the operation definition information that has already been produced. The producing step may produce the operation definition information including a state definition part, a method definition part and a state transition condition definition part. The producing step may produce the operation definition information of an operation of the client when using the service by a fundamental group, an alternative group and an exceptional group.
Additionally, there is provided according to another aspect of the present invention an operation definition information producing method for producing operation definition information that defines an operation of a client when using service in a system in which a server providing the service and the client using the service are connected by a network, the operation definition information producing method comprising: a defining step of causing a user to define an action of the client when using the service and an operation in the action; and a producing step of producing the operation definition information that defines the action of the client when using the service from the action of the client when using the service and the operation in the action that are defined by the user.
Additionally, there is provided according to anther aspect of the present invention an operation definition information producing apparatus for producing operation definition information that defines an operation of a client when using service in a system in which a server providing the service and the client using the service are connected by a network, the operation definition information producing apparatus comprising: defining means for causing a user to define a state of the client when using the service and an operation in the state; and producing means for producing the operation definition information that defines the operation of the client when using the service from the state of the client when using the service and the operation in the state that are defined by the user.
Further, there is provided according to another aspect of the present invention an operation definition information producing program that causes a computer, which produces operation definition information that defines an operation of a client when using service in a system in which a server providing the service and the client using the service are connected by a network, to function as: defining means for causing a user to define a state of the client when using the service and an operation in the state; and producing means for producing the operation definition information that defines the operation of the client when using the service from the state of the client when using the service and the operation in the state that are defined by the user.
Additionally, there is provided according to another aspect of the present invention a computer readable recording medium storing an operation definition information producing program that causes a computer, which produces operation definition information that defines an operation of a client when using service in a system in which a server providing the service and the client using the service are connected by a network, to function as: defining means for causing a user to define a state of the client when using the service and an operation in the state; and producing means for producing the operation definition information that defines the operation of the client when using the service from the state of the client when using the service and the operation in the state that are defined by the user.
Further, there is provided according to another aspect of the present invention a data structure of operation definition information that defines an operation of a client when using service in a system in which a server providing the service and the client using the service are connected by a network, wherein the operation of the client when using the service is expressed by a state definition part, a method definition part and a state transition condition definition part.
According to the present invention, the operation definition information producing method, apparatus, and program can easily produce the operation information that can easily produce the operation definition information that can define the operation of the client when using the service in accordance with addition or changes in the service provided by the server. Additionally, the recording medium storing the operation definition information and the data structure of the operation definition information are provided.
Other objects, features and advantages of the present invention will become more apparent from the following detailed description when read in conjunction with the accompanying drawings.
A description will now be given, with reference to the drawings, of an embodiment of the present invention. It should be noted that, in the following description, operation definition information, which defines an operation of a Web service client when using a Web service, is referred to as scenario.
The application 110 using the Web service includes an application 110 and a network I/F 120. The application 110 includes a U/I 111, a WSDL processing part 113 and a scenario processing part 114. The application 110 connects to the network through the network I/F 120.
Moreover, the Web service server 200, which offers the Web service, includes a network I/F 210, a Web service execution part 220 and a scenario management part 230. The Web service execution part 220 and a scenario management part 23 connect to the network through the network I/F 210. The service discovery 300, which manages the Web service, includes a service management part 310 and a storage part 320 which stores WSDL.
Moreover, the scenario producing device 400, which produces a scenario, includes an application 410 and a network I/F 420. The application 410 includes a U/I 411, an editor control part 412, a data analysis part 413, an XML generation part 414 and a storage part 415 in which scenario is stored and managed. The application 410 is connected to a network through the network I/F 420. It should be noted that the scenario produced y the scenario producing device 400 defines operations of the Web service client 100 when using the Web service.
Besides the structure shown in
The scenario producing device 400 of
The PC terminal 500 includes an application 510 and a network I/F 520. The application 510 includes a U/I 511 and an editor control part 512. The request processing part 416 of the scenario producing device 400 can receive an instruction from the PC terminal 500.
The scenario producing device 400 of
The scenario management server 600 includes a storage part 610 and a network I/F 620. The storage part 610 is connected to the network through the network I/F 620. The application 410 of the scenario producing device 400 can cause the scenario management server 600 to store and manage the scenario.
The scenario producing device 400 of
The PC terminal 500 includes an application 510 and a network I/F 520. The application 510 includes a U/I 511 and an editor control part 512. The request processing part 416 of the scenario producing device 400 is capable of receiving instructions from the PC terminal 500.
The scenario management server 600 includes a storage part 610 and a network I/F 620. The storage part 610 is connected to the network through the network I/F 620. The application 410 of the scenario producing device 400 can cause the scenario management server 600 to store and manage the scenario.
The scenario producing device 400 of
The input device 1001 consists of a keyboard, a mouse, etc., and is used to input various operation instructions. The display device 1002 consists of a display or the like so as to display various windows, data, etc. The interface device 1008 is an interface for connecting to the network, and consists of a modem, a router, etc.
The scenario producing program, which controls the scenario producing device is provided by a recording medium 1004 such as a CD-ROM. The recording medium 1004 which store the scenario producing program is loaded to the drive device 1003, and the scenario producing program is installed in the auxiliary memory device 1005 through the drive device 1003.
The recording medium 1004, which stores the scenario producing program, can be various types of recording medium such as a recording medium storing information optically, electrically or magnetically such as a CD-ROM, a flexible disk, magneto-optical disk (MO), etc., or a semiconductor memory storing information electrically such as a ROM, a semiconductor memory, etc.
Moreover, the scenario producing program may be stored in a recording medium of other computers connected to the network through the interface device 1008. A scenario producing program stored in a recording medium of other computers is downloaded via the interface device 1008, and is installed in the auxiliary memory device 1005. The auxiliary memory device 1005 stores the installed scenario producing program and various files required for execution of the scenario producing program. The memory device 1006 reads and stores the scenario producing program from auxiliary memory 1005 at the time of running.
The operation processing device 1007 realizes the application 410 and the network I/F 420 of the scenario producing device 400 by various processes according to the scenario producing program stored in the memory device 1006. It should be noted that the PC terminal 500 and the scenario management server 600 are realizable by a computer having the hardware structure shown in
A description will be given below of a process performed be the scenario producing device according to the present invention. It should be noted that the following description uses the structure of the scenario producing device 400 of
The application 410 of the scenario producing device 400 has an editor function for producing a state transition diagram. In step S11, a user produces a state transition diagram by using the editor function of the application 410. Specifically, when the user gives an instruction to run the editor function, the editor control part 412 of the application 410 show a user of a state transition diagram producing screen 2000 as shown in
A user selects parts necessary for producing the state transition diagram such as an icon 2010 representing a state or an icon 2011 representing a state transition from the parts selection column, and produces the state transition diagram in the work column by using the selected parts. The editor control part 412 displays the state transition diagram according to the operations of the user on the work column 2002.
If the icon 2010 representing the state displayed on the work column 2002 is selected, the editor control part 412 presents the user of a state setting screen 2100 such as shown in
Moreover, if the icon 2011 representing the state transition currently displayed on the work column 2002 is selected, the editor control section 412 present the user of a state transition setting screen 2200 which can set a method, a parameter, a value and an option as shown in
The state transition setting screen 2200 of
By using the above-mentioned editor function, a user can produce the state transition diagram such as shown in
In step S12, the data analysis part 413 analyzes the state transition diagram produced in step S11. That is, in step S12, the operations of the Web service client 100 when using the Web service is analyzed in viewpoint of a state, a method to use and a state transition condition. In step S13, the XML generation part 414 produces a scenario based in accordance with a result of the analysis in step S12.
Moreover,
Therefore, the scenario producing device 400 can produce the scenario described in XML as shown in
Although the user is caused to produce a state transition diagram so as to produce the scenario from the state transition diagram in the scenario producing device 400 according to the first embodiment, the user may be caused to produce a sequence diagram so as to produce the scenario.
The application 410 of the scenario producing device 400 has an editor function for producing a sequence diagram. In step S21, a user produces a sequence diagram using the editor function of the application 410. Specifically, when the user issues and instruction to run the editor function, the editor control part 412 of the application 410 present a sequence diagram such as shown in
A user selects necessary parts such as an icon from the parts selection column 2401 so as to produce the sequence chart in the work column 2402. The editor control part 412 displays the sequence diagram according to the operation of the user in the work column 2402. For example, if the user selects an icon 2410 representing an actor from the parts selection column 2401 and drags it into the work column 2402, the editor control part 412 indicates the dragged icon 2410 as a module in the work column 2402, and displays a dotted line under the icon 2410. Additionally, when the user selects an icon 2430 representing a device management service from the service list display column 2403 and drags it into the work column 2402, the editor control part 412 indicates the dragged icon 2430 as a module in the work column 2402 and displays a dotted line under the icon 2430.
If the icon 2411 representing the state displayed in the work column 2402 is selected, the editor control part 412 presents the state transit setting screen, in which a method, a parameter, a value and an option is selectable, to the user.
By using the above-mentioned editor function, a user can produce a sequence diagram as shown in
The sequence diagram of
Proceeding to step S22, the editor control part 412 produces a state transition diagram as shown in
Step S31 “manager authentication” of
By using the above-mentioned editor function, a user can produce a state transition diagram as shown in
Moreover,
It should be noted
In the flowchart of
The scenario producing apparatus 400 is capable of directly producing a scenario described in XML such as shown in
Although a user is caused to produce a state transition diagram and the scenario is produced from the state transition diagram in the scenario producing device 400 according to the first embodiment, a user can be caused to produce a state transition table and a scenario can also be produce from the state transition table.
The application 410 of the scenario producing device 400 has the editor function for producing a state transition table. A user produces a state transition table using the editor function of the application 410. By using the editor function, the user can produce the state transition table as shown in
The state transition diagram as shown in
(Use of the Scenario)
The scenario produced in the above-mentioned first through third embodiments is sent from the XML generation part 414 and stored in the storage part 415. Then, the scenario stored in the storage part 415 is registered into the scenario management part 230 of the Web service server 200 through the network I/F 420, the network and the network I/F 210. It should be noted that the scenario stored in the storage part 415 may be registered into the storage part 320 of the service discovery 300 through the network I/F 420, the network and the service management part 310.
Moreover, the scenario producing equipment 400 may be provided with a function to cause a user to edit the scenario stored in the storing part 415. In such as case, a new scenario can be produced by a user editing an existing scenario.
As mentioned above, since the Web service client 100 can acquire and use the scenario, in which operations of the Web service client 100 when using the Web service, is defined from the scenario management part 230 of the Web service server 200 or the storage part 320 of the service discovery 300, the operation when using the service can be easily responded to addition or change in the Web service.
The present invention is not limited to the specifically disclosed embodiments, and variations and modifications may be made without departing from the scope of the present invention.
The present application is based on Japanese priority applications, No. 2004-255902 filed Sep. 2, 2004 and No. 2005-240304 filed Aug. 22, 2005, the entire contents of which are hereby incorporated herein by reference.
Number | Date | Country | Kind |
---|---|---|---|
2004-255902 | Sep 2004 | JP | national |
2005-240304 | Aug 2005 | JP | national |