The present invention relates to a method and apparatus for providing web services by which the performance of web services is improved and exchanges of a large quantity of messages are effectively supported.
Web services are provided by three main entities i.e., a web services requestor, a web services provider, and a web services registry, and use an extensible markup language (XML)-based simple object access protocol (SOAP) and a web service description language (WSDL). Web services use XML-based protocols based on various transfer protocols such as a hypertext transfer protocol (HTTP), a file transfer protocol (FTP), a simple mail transfer protocol (SMTP), etc. The size of XML-based message is several to tens of times larger than that of conventional binary type protocols. In processing of the XML, an XML message is analyzed to check validity thereof, and information desiring in an application is generated as an accessible type of data in an XML parser. Such XML processing time greatly deteriorates web services.
To improve the performance of web services, a binary XML approach that reduces the size of the XML message by changing the XML message into a binary type message is under development.
The present invention provides a method and apparatus for providing preference-based web services by which the performance of web services is improved and exchanges of a large quantity of messages are effectively supported in a mobile environment.
According to an aspect of the present invention, there is provided a method of providing web services using preference information, the method comprising: preparing the preference information, which pre-describes information required by a web services provider, to provide web services requested by a web services requestor; the web services requester requesting the web services for the web services provider; and the web services provider interacting with the preference information when messages are exchanged between the web services requestor and the web services provider to provide the requested web services, to minimize the number of messages exchanged between the web services requester and the web services provider.
According to another aspect of the present invention, there is provided an apparatus for providing web services using preference information, the apparatus comprising: a preference generator receiving from a web services requester information necessary for providing web services to generate preference information; a preference storage unit storing the generated preference information; a message processor receiving a message from the web services requester and converting the received message into data in a format suitable for a web services protocol; and a preference processor making the web services provider interact with the preference information when messages are exchanged between the web services requestor and the web services provider to provide web services requested from the web services requester, to minimize the number of messages exchanged between the web services requester and a web services provider.
The present invention minimizes interactions between a web services requestor and an intermediary using preference information estimated from WS-CDL files, thereby efficiently improving the performance of web services.
The above and other features and advantages of the present invention will become more apparent by describing in detail embodiments thereof with reference to the attached drawings in which:
The present invention will now be described more fully with reference to the accompanying drawings in which embodiments of the present invention are shown.
Interface information including a web service description language (WSDL) regarding web services provided by the web services provider 12 is published to the web services registry 10. The web services requester 11 finds the desired web services in the web services registry 10, and receives interface information required to use the web services. The web services requestor 11 receives desired web services from the web services provider 12 using the interface information. The web services registry 10, the web services requester 11, and the web services provider 12 use a simple object access protocol (SOAP)-based message. A lot of interactions 13 occur between the web services requestor 11 and the web services provider 12. In such a case, SOAP-based messages are exchanged.
The ordinary web services use extensible markup language (XML)-based SOAP messages, which take a lot of time to transmit and process messages. In particular, since a data transmission speed and computing power of mobile devices in mobile web services are quite lower than those of general PCs, frequent exchange of SOAP messages 25 between the web services requester 21 and the web services provider 22 results in deterioration of the web services. Also, web services provided in a home networking environment based on information-using appliances or a ubiquitous environment using a variety of small devices have similar problems to the mobile web services. Research for applying the web services to the home networking environment and the ubiquitous environment has been recently conducted, such that the web services can be likely applied to the entire IT environment.
An intermediary 33 includes preference information 36 that pre-describes information required by the web services provider 32 when the web services provider 32 provides the web services requested by the web services requestor 31. If the web services requester 31 requests the web services to the web services provider 32, the web services provider 32 performs interactions 37 with the preference information 36 when messages are exchanged between the web services requester 31 and the web services provider 32 in order to provide the desired web services, so that the number of exchanges of messages 35 between the web services requester 31 and the web services provider 32 is minimized.
The types of preference-based message exchanges illustrated in
The WS-CDL is an XML-based language that describes detailed information on interactions between web services-based entities. The preference information 46 is generated based on the WSDL, which describes information on messages exchanged between the entities described in WS-CDL files and web services interface information on the entities.
The mobile device 61 generates and stores the preference information 66 of desired web services and provides the preference information 66 along with web services provided by the web services provider 62, if necessary, thereby minimizing the number of messages exchanged between the mobile device 61 and the web services provider 62.
The intermediary 83 includes a variety of WS-CDL application modules to be shared with the web services requestor 81, requests the preference information used to interact with the web services provider 82 to the web services requestor 81 and generates the preference information. The intermediary 83 executes the web services using the preference information, and provides a result obtained by executing the web services to the web services requestor 81, thereby minimizing interactions between the web services requestor 81 and the intermediary 83/web services provider 82.
Since most mobile devices do not support web services protocols such as the SOAP, the HTTP, etc., it is necessary to convert messages between the web services protocol and a general mobile network protocol. The message processor 833 receives a message from a mobile device using the web services and converts the received message into a format suitable for the target.
In particular, since mobile devices have limited hardware/software resources, an interaction interface is important. Therefore, the intermediary 83 further includes a profile storage unit 835 that stores profile information of mobile devices such as the size and the resolution of a display panel, a software platform version, a browser type and version, etc., and a profile processor 834 provides the mobile devices with the message suitably converted for a device of the web services requestor 81 based on the profile information of a device of the web services requester 81.
Meanwhile, since the mobile network costs a great deal and has a slow data speed, its requires a compression/binary conversion mechanism, and since the mobile device has a low network connection as compared with a wired environment, it requires a caching mechanism.
The present invention can also be embodied as computer readable code on a computer readable recording medium. The computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and carrier waves. The computer readable recording medium can also be distributed network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. The exemplary embodiments should be considered in descriptive sense only and not for purposes of limitation. Therefore, the scope of the present invention is defined not by the detailed description of the invention but by the appended claims, and all differences within the scope of the present invention will be construed as being included in the present invention.
As described above, the present invention minimizes interactions between a web services requestor and an intermediary using preference information estimated from WS-CDL files, thereby efficiently improving the performance of web services.
Also, the present invention minimizes the number of preference-based messages exchanged between the web services requestor and a web services provider, thereby overcoming deterioration caused by frequent exchanges of XML messages. The present invention can be applied to web services in almost all fields, including a mobile web services environment and a ubiquitous web services environment.
Number | Date | Country | Kind |
---|---|---|---|
10-2004-0104919 | Dec 2004 | KR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/KR05/03434 | 10/14/2005 | WO | 6/13/2007 |