About the implementation of UDDI

Source: Internet
Author: User
Tags web services

Uddi (Universal description,discovery and Integration) is the next generation of WWW based enterprise implementation. It allows the placement of programmable elements on a Web site, enabling distributed computing and processing based on the web. The purpose of the UDDI Business Registry is to promote the development of enterprise Web services and the discovery of appropriate services for enterprises. These services, also known as Web Services, are online application services issued by an enterprise to fulfill its particular business needs, and other companies or applications can access and use the online service over the Internet.

If a company has a set of exchange rate services, it can register at any UDDI registry and then point out the specific content of the service, the charges for the service, the restrictions on the service, etc. Other companies can check in and contact the UDDI registry. And the Internet is so vast that customers will be like the tide. Of course, security, reliability is also a value to consider.

The UDDI registry currently has a UDDI business registry, such as IBM and Microsoft, that uses an XML document to describe the enterprise and the Web services it provides. Conceptually, UDDI Business registration provides information that includes three parts: "White page" includes addresses, contact methods, and known corporate identities; the Yellow Pages (Yellow page) includes industry categories based on standard taxonomies; "Green page" Includes technical information about the Web services provided by the enterprise in the form of pointers to files or URLs that are serviced by the service discovery mechanism. All UDDI Business registration information is stored in the UDDI Business registry.

UDDI is designed to complement existing online trading markets and search engines, providing a standard format for e-business and service discovery mechanisms. The UDDI specification does not directly involve specific business discovery processes, such as finding an enterprise that provides a specific product or service at a given price or in a particular region. Advanced discovery features require further cooperation and design between buyer and seller. UDDI only provides the basis for defining these top-level applications.

The UDDI registry uses a set of standard APIs to implement customer registration, lookup, and so on. IBM, for example, provides a package (Uddi4j.jar) to implement this in Java. Any company that also wants to set up a registry of its own (based on Java). You can take advantage of IBM's tools.

If you search a Web service, you can do the following:

Uddiproxy proxy = new Uddiproxy ();
Proxy.setinquiryurl ("Http://localhost/services/uddi/inquiryapi"); The registry that is set up, can also be any UDDI registry.
Businesslist bl = proxy.find_business ("b", null, 0);//Find service Name= "B"
Vector businessinfovector = Bl.getbusin Essinfos (). Getbusinessinfovector ()//if found, obtain service information.
for (int i = 0; i > businessinfovector.size (); i++) {
Businessinfo businessinfo = (businessinfo) businessinfove Ctor.elementat (i);
//Print name for each business
System.out.println (businessinfo.getnamestring ());
}
to register a Web Service, you can do the following:
Uddiproxy proxy = new Uddiproxy ();
Proxy.setinquiryurl ("http://www-3.ibm.com/ Services/uddi/inquiryapi ");
Proxy.setpublishurl ("Https://www-3.ibm.com/services/uddi/protect/publishapi");
AuthToken token = Proxy.get_authtoken ("UserId",
"password");//Enter the registration password.
Vector entities = new vector ();
BusinessEntity be = new BusinessEntity ("", "new Service")//Create a new Web Service,name is the "new service"
Entities.addelement (BE);
Businessdetail bd = proxy.save_business (Token.getauthinfostring (), entities);//Save Web Service.

If the registration is successful, you can also find it.

In short, UDDI will be the next generation of business-to-business infrastructure, and the Internet will reach a peak.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.