Chapter 7. JAXR
JAX-RPC and SAAJ are enabling technologies that allow companies to create electronic business applications that exchange information using XML and SOAP. WSDL (see Chapter 5) is the means by which a developer finds out about the interface provided by a web service. As you saw in Chapter 6, once you have a WSDL definition for a service, you can quickly create the client-side stubs that an application needs in order to communicate with it using JAX-RPC. The remaining question is, given that your business needs to find a provider for a specific service, how do you go about locating businesses that offer that service, evaluate their offerings, and, if appropriate, fetch the WSDL definition for the service itself? The answer lies in the XML-based registriesthat are currently being established on the Internet.
A registry contains information that allows businesses to discover and make use of the services of potential corporate electronic partners. A business might want to deal directly with another party (purchasing components or other services from that company), or perhaps, it may intend to add value to the other party’s offerings—for example, by providing a specialized interface to the other’s web service, such as the one offered by Amazon.com.
A provider company submits an entry to a registry and categorizes it in various ways that will make it easier to find. The submitting company might include in its registry entries links to technical specifications that describe ...
Get Java Web Services in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.