Is the JCP adequately preparing Java for Web services?
A look at the recently released and forthcoming Web services APIs
By Jennifer Orr, JavaWorld.com, 06/21/02
- Digg
- Reddit
- SlashDot
- Stumble
- del.icio.us
- Technorati
- dzone
Earlier this week, Sun Microsystems officially released the newest version of its Java Web Services Developer Pack (JWSDP),
a bundled download of the APIs necessary for building, testing, and deploying Java Web services. New to the release are the
Java API for XML Registries (JAXR) and the Java API for XML Remote Procedure Call (JAX-RPC), both fresh from the Java Community
Process (JCP).
All the APIs necessary for building and deploying Web services in Java will emerge from the JCP. Launched in December 1998
and revamped in 2000, the JCP is the process by which Java evolves and it will play a significant role in Java's future. However,
many question the JCP's efficiency and capability in addressing Web services. Is the JCP adequately preparing Java for Web
services? Perhaps a look at its recently released and forthcoming Web services APIs will give us the answer.
JAXR and JAX-RPC: The newest Web services APIs
In April, the JCP released the final JAXR version, which gives developers an API for building Web services that interact with
standard XML registry specifications, including the two dominant registries: Universal, Description, Discovery, and Integration
(UDDI) and ebXML. Regardless of whether a service has been published in a UDDI registry or an ebXML registry, with JAXR, a
Web service can discover that service and publish its own services to either registry.
"JAXR is targeted to make life easier for the developer, which is true for all our APIs for XML," says Farrukh Najmi, JAXR
specification lead and a Sun staff engineer. "And it starts by the mere fact that the programmer doesn't need to be an XML
expert." The API hides certain details from the programmer, such as validating data, which JAXR automatically handles.
JAXR represents the most crucial API to Web services' adoption says Frank Sommers, JavaWorld's Web Services columnist, and founder and CEO of Autospaces. "It's like search engines," he says. "If people can't find your Webpage, it
doesn't matter what it does, how you created it, or how one can interact with it—people just can't find it. Having searchable
directories allows that discovery to happen, and JAXR lets a Java programmer programmatically interact with Web service registries."
Peter Kacandes, senior product manager for Java XML APIs in the Java software products division at Sun praises JAXR for helping
developers work more efficiently. "You learn JAXR and now you have full access to the full range of both the ebXML standard
and UDDI spec," he says. "With IBM's UDDI4J, for example, programmers have to learn the UDDI4J API, and when they want to
use ebXML, they'd have to use some other specific API."
This ability to leverage multiple underlying standards with one API makes developers more efficient says Sun. JAX-RPC, just
finalized in June, features similar capabilities. JAX-RPC allows developers to build Web applications that incorporate XML-based
RPC (remote procedure call). The RPC mechanism lets a client communicate a remote procedure call to a server. JAX-RPC uses
the Web services standards SOAP (Simple Object Access Protocol), WSDL (Web Services Description Language), and XML Schema,
and defines how to develop and deploy portable and interoperable Web services with Java.
- Digg
- Reddit
- SlashDot
- Stumble
- del.icio.us
- Technorati
- dzone
Resources
- JSR 67, the Java APIs for XML Messaging 1.0
http://www.jcp.org/jsr/detail/67.jsp
- JSR 93, Java API for XML Registries 1.0 (JAXR)
http://www.jcp.org/jsr/detail/93.jsp
- JSR 101, Java APIs for XML-based RPC (JAX-RPC)
http://www.jcp.org/jsr/detail/101.jsp
- JSR 104, XML Trust Service APIs
http://www.jcp.org/jsr/detail/104.jsp
- JSR 105, XML Digital Signature APIs
http://www.jcp.org/jsr/detail/105.jsp
- JSR 106, XML Digital Encryption APIs
http://www.jcp.org/jsr/detail/106.jsp
- JSR 107, JCache—Java Temporary Caching API
http://www.jcp.org/jsr/detail/107.jsp
- JSR 109, Implementing Enterprise Web Services
http://www.jcp.org/jsr/detail/109.jsp
- JSR 110, The Java APIs for WSDL
http://www.jcp.org/jsr/detail/110.jsp
- JSR 155, Web Services Security Assertions
http://www.jcp.org/jsr/detail/155.jsp
- JSR 172, J2ME Web Services Specification
http://www.jcp.org/jsr/detail/172.jsp
- JSR 175, A Metadata Facility for the Java Programming Language
http://www.jcp.org/jsr/detail/175.jsp
- JSR 181, Web Services Metadata for the Java Platform
http://www.jcp.org/jsr/detail/181.jsp
- JSR 183, Web Services Message Security APIs
http://www.jcp.org/jsr/detail/183.jsp
- To get a peek at the wireless Web services JSRs under review, read "Java Readies Itself for Wireless Web Services," Michael
Juntao Yuan and Ju Long (JavaWorld, June 2002)
http://www.javaworld.com/javaworld/jw-06-2002/jw-0621-wireless.html
- The Java Web Services Developer Pack
http://java.sun.com/webservices/downloads/webservicespack.html
- "Next Version of Java Enterprise Platform Delayed," Antone Gonsalves (InformationWeek.com, March 2002)
http://www.informationweek.com/story/IWK20020321S0024
- "Sun May Join Web Services Body," Wylie Wong (ZDNet, May 2002)
http://techupdate.zdnet.com/techupdate/stories/main/0,14179,2864130,00.html
- "WS-I to Expand Board, Sun Peeks Through," Matt Berger (InfoWorld, June 2002)
http://www.idg.net/ic_877275_6134_1-3523.html
- "The Open Road Ahead," Robert McMillan (JavaWorld, April 2002)
http://www.javaworld.com/javaworld/jw-04-2002/jw-0412-opensource.html
- Read more about wireless Web services JSRs in "Is Java Ready for the Future?" Michael Yuan and Ju Long (JavaWorld, June 2002)
http://www.javaworld.com/javaworld/jw-06-2002/jw-0621-wireless.html
- For more on JAXR:
-
- For more articles on Web services, browse the following JavaWorld resources
-
- For more articles on JSRs, browse the Java Community Process section of JavaWorld's Topical Index
http://www.javaworld.com/channel_content/jw-jcp-index.shtml
- For more news articles, browse JavaWorld's Industry News index page
http://www.javaworld.com/news-reviews/jw-nr-industry.shtml
- Discuss how you think the JCP is preparing for Web services in JavaWorld's Enterprise Java discussion
http://forums.idg.net/webx?50@@.ee6b80a
- Sign up for JavaWorld's free weekly Industry News email newsletters
http://www.javaworld.com/jw-subscribe
- You'll find a wealth of IT-related articles from our sister publications at IDG.net