Java Tutorial - Java Scipt : Java and Web Services

Java Tutorial - Java Scipt :

Java and Web Services


Web services are implemented through the platform-independent andlanguage-independent standards. Indeed, the existence of Web services standards is already giving rise to more interoperable systems. Established Internet
leaders, such as Google and Amazon.com, are opening up access to their systems through SOAP and WSDL. As J2EE developers, it would benefit us to be able to use and write Web services in a Java-centric manner. Luckily for us, there is support for working with Web services at all those levels.

Most Java Web services will be developed using the JAX-RPC API. JAX-RPC is a Java API designed for working with XML-based Web services. In particular, it handles the forward and reverse mapping from Java objects to their
platform-independent counterparts. The forward mapping maps an existing Web service into the equivalent Java interface. The reverse mapping takes a Java object and generates the necessary framework to expose it as a platformindependent Web service.

Using JAX-RPC will improve productivity and drop the entry barrier to working with Java Web services. JAX-RPC is the best choice for most scenarios. Best of all, we can reasonably expect that JAX-RPC will be available because it will be required as a part of the upcoming J2EE 1.4 specification.