Presentation is loading. Please wait.

Presentation is loading. Please wait.

DISCO UDDI -Sandeep Gadde. C ONTENTS : Web Services What is DISCO? Disco Client Utilities Disco Redirects Dynamic Discovery UDDI UDDI as a better DISCO.

Similar presentations


Presentation on theme: "DISCO UDDI -Sandeep Gadde. C ONTENTS : Web Services What is DISCO? Disco Client Utilities Disco Redirects Dynamic Discovery UDDI UDDI as a better DISCO."— Presentation transcript:

1 DISCO UDDI -Sandeep Gadde

2 C ONTENTS : Web Services What is DISCO? Disco Client Utilities Disco Redirects Dynamic Discovery UDDI UDDI as a better DISCO UDDI Repository UDDI Binding Information UDDI Programmer’s API UDDI - Lite

3 W EB S ERVICES Web services are automated information services that are conducted over the Internet, using standardized technologies and formats/protocols that simplify the exchange and integration of large amounts of data over the Internet. Web services platform elements are SOAP, UDDI, WSDL. Web services use XML to code and decode data, SOAP to transport data.

4 C ONT.. Web Services basically uses HTTP and SOAP to make business data available on the web and executes remote function calls.

5 S AMPLE W EB S ERVICE namespace WebService1 { [WebService(Namespace = "http://tempuri.org/")] public class Service1 : System.Web.Services.WebService { [WebMethod] public string HelloWorld() { return "Hello World"; } [WebMethod] public int add(int a, int b) { return a+b; }

6 DISCO Web Services discovery is the process of locating and interrogating web service descriptions, which is a preliminary step for accessing a web service. Discovery file is an XML document with a.disco extension and holds the Web Services information.

7 S AMPLE DISCO FILE Service1.disco \MyService (root dir) Service1.asmx web.config Service1.disco \bin simpleMath.dll complexMath.dll

8 D ISCO CLIENT UTILITIES There are 2 types of client utilities to discover a WebService. - disco.exe tool - Add web ref feature in visual studio.net disco.exe tool is a command line utility provided by microsoft sdk and it is used as follows. c:\>disco.exe

9 C ONT.. An output file with name results.discomap is created that contains information about web services discovered at specified URL. It also downloads all the.disco and.wsdl documents that were discovered. Wsdl.exe is the utility to generated web service proxies from WSDL documents or the.discomap files generated by disco.exe.

10 C ONT.. results.discomap

11 C ONT.. Add web reference feature in visual studio.net

12 C ONT..

13

14 D ISCO REDIRECTS Disco Redirects help to redirect to disco file, if the user doesn’t know the exact address of the disco file. Disco provide hints in the default page of root directory If the root's default page is an HTML document, you can use the LINK tag to redirect the client to the.disco file:

15 C ONT.. If the root's default page is an XML document, you can use the xml-stylesheet processing instruction to accomplish the same thing:

16 D YNAMIC DISCOVERY Dynamic discovery is discovering web services dynamically To enable dynamic discovery, a.vsdisco file like the one shown here must be placed in the desired root. Requests for.vsdisco files are handled by System.WebServices.Discovery.DiscoveryRequestHandler namespace, which dynamically generates a DISCO document based on the resources found in the target root directory.

17 UDDI Universal Description, Discovery and Integration (UDDI) is a specification for building distributed databases that enable interested parties to “discover” each other’s Web services. Provides easy discovery, sharing, and reuse of Web services and other programmable resources.

18 UDDI AS A BETTER DISCO UDDI goes beyond DISCO by defining how to interact with a full-fledged Web Service information repository. UDDI specification consists of a programmer’s API along with an XML schema definition of supporting data structures and messages.

19 UDDI R EPOSITORY UDDI repositories contain information about businesses, services, and service bindings as well as additional metadata for categorization purposes. UDDI uses white pages, yellow pages, and green pages to organize information

20 C ONT.. White pages include business name, contact info. Yellow pages include categories based on standard taxonomies. Green pages include the technical specifications and references.

21 UDDI B INDING I NFORMATION UDDI registry contains 4 main types of information: Business, Services, Binding Templates and tModels. Business-Name, Contact Info, Technical Info of the service. Service-Technical/Business descriptions & categorizations. Each service also exposes binding template info that describes how to connect to and communicate with the given service.

22 UDDI P ROGRAMMER ’ S API UDDI Programmer’s API is divided as Inquiry API and Publishing API. Inquiry API: Provides operations for retrieving information from the registry. Publishing API: Provides operations for publishing information to the registry.

23 I NQUIRY API NameDescription Find_businessThis locates information about one or more businesses. Find_serviceThis locates services within a registered businessEntity. Find_bindingThis locates bindings within a registered businessService. Get_businessDetailThis gets businessEntity information for one or more businesses. Get_business DetailExtThis gets extended businessEntity information. Get_serviceDetailThis gets full details for a set of registered businessServices. Get_bindingDetailThis gets bindingTemplate information for making service requests. Get_tModelDetailThis gets details for a set of registered tModels.

24 EXAMPLE The following code illustrates how to perform a business lookup by the company's name. XXX

25 C ONT.. The result of the find_business operation is the info about its services XXX Empowering people through great software... UDDI Web Services ………….

26 P UBLISHING API NameDescription get_authTokenRequests an authentication token from an operator site. get_registeredInfoRequests information currently managed by the user. save_businessRegisters/updates a businessEntity. save_serviceRegisters/updates a businessService. save_bindingRegisters/updates a bindingTemplate. save_tModelRegisters/updates a tModel. delete_businessDeletes a businessEntity from the registry. delete_serviceDeletes a businessService from the registry. delete_bindingDeletes a bindingTemplate from the registry. delete_tModelDeletes a tModel from the registry. discard_authTokenDiscards an existing authentication token.

27 EXAMPLE fd3c7a44-118f-413a-a2e3-473a Developmentor Services the developer by...

28 UDDI-L ITE Microsoft has come up with UDDI-Lite recently, a compromise between DISCO and UDDI. The idea behind this sample was to provide a centralized web service repository that would be easy to maintain, and would integrate with all of the existing.NET DISCO- based tools.

29 C ONT.. To implement UDDI-Lite -Web Services are stored in SQL Server DB. -ASP.NET front end to register and unregister Web Services. When client requests.vsdisco file, it automatically generates information stored in SQL Server by mapping requests using System.Web.UI.PageHandlerFactory class.

30 C ONT..

31 S AMPLE CODE TO IMPLEMENT UDDI-L ITE <% SqlConnection conn = new SqlConnection("data source=localhost;initial catalog=uddilite;user id=sa;pwd="); conn.Open(); try { SqlCommand cmd = new SqlCommand("select contract, documentation from contracts"); cmd.Connection = conn; IDataReader reader = null; reader = cmd.ExecuteReader(); while (reader.Read()) { %> " docRef=" " /> <% } } finally { conn.Close(); } %>

32 C ONCLUSION DISCO is ultimately limited by the type and depth of the information that it provides. Microsoft has been heavily involved in the development of UDDI, which is receiving a lot of attention. The bottom line is that DISCO works today and it can help us to get more out of.NET Web Services with little effort. For the future, look for UDDI developments.

33 R EFERENCES ay4/wsuddi.ppt

34 T HANK YOU


Download ppt "DISCO UDDI -Sandeep Gadde. C ONTENTS : Web Services What is DISCO? Disco Client Utilities Disco Redirects Dynamic Discovery UDDI UDDI as a better DISCO."

Similar presentations


Ads by Google