UDDI(Universal Discovery, Description and Integration),是組成網路服務(Web Service)的基本技術之一,主要用來辨識並建立網路服務的目錄,以方便取得網路服務與相關資訊。但由於目前UDDI技術尚未完全成熟,網路服務搜尋上的正確性不佳,並且在取得網路服務相關資訊後,必須自行實作網路服務客戶端程式等使用上的不便。在本論文中,我們設計了一套網路服務的分類與搜尋方式。並建立GUI(Graphic User Interface)介面幫助網路服務客戶端取得並使用網路服務類型應用程式。 在網路服務的分類方面,因為WSDL(Web Service Description Language)繼承了XML(eXtension Markup Language)結構化語言和可自訂標籤的特性,因此我們可以根據網路服務的性質建立分類樹,並依據分類樹制定WSDL的分類標籤定義。在搜尋方式上,使用XML DOM(Document Object Model) Parser剖析WSDL檔案,根據分類樹的階層,以寬度為優先的搜尋法,將剖析出的資料以字串比對的方式,找出正確的網路服務資訊。在GUI介面建立方面,以使用者容易了解的圖形化介面,代替複雜的客戶端程式實作。網路服務程式提供者將提供客戶端程式,系統將其包裝後,以監聽器的型態等候請求,當使用者透過GUI介面提出請求後,監聽器則代為喚起遠端的網路服務應用程式。使用監聽器的好處,是將使用者介面與客戶端程式分開,以提供更大的彈性,透過統一的包裝程式,可以到程式碼再利用的目的。 最後,以旅遊代理公司為例,實作網路服務搜尋系統。根據實驗結果發現,由於WSDL延伸標籤簡易明確的分類,有效的提高了搜尋的正確度。並且,實作GUI網路服務的操作介面,透過簡易的操作介面,達到使用網路服務類型的應用程式,直接與便利的效果。
UDDI(Universal Description, Discovery and Integration) is one of the key technologies of web services. UDDI is used to recognize web services and build web service catalogs, so that a user can search related information on line. But it is not easy to search the desired web services on Internet. It is also inconvenient to build the client-side applications for a web service after receiving the service specification. In this thesis, we designed and implemented a system for web services classification and search. A graphic user interface is also provided. Since, WSDL(Web Service Description Language)is described in XML and thus inherits the characteristics of XML, which is in structural form and can be used to define new tags. We build the classification tree according to the properties of web services, and then extend WSDL tags in terms of the classification tree. To search a service, the WSDL document was parsed by an XML DOM(Document Object Model)parser, to find the web services specified. Breadth-first search is used to look for answers which are compared with the query using string comparison. A user-friendly GUI is provided for client-side applications, which are packed as listeners. These listeners will invoke web services after receiving client requests. One advantage of using listener is the separation of graphic user interface from client-side applications. This will result in more extensible and more reusable code. Finally, we use a travel agent as an example to implement a sample web service search system. By using a simple and explicit classification, the system is able to retrieve the correct web services. And the graphical interface can help a user to invoke a web service more directly and conveniently.