Welcome!

Industrial IoT Authors: Pat Romanski, Mark Herring, Derek Weeks, Stackify Blog, Yeshim Deniz

Related Topics: Microservices Expo, Java IoT, Industrial IoT

Microservices Expo: Article

An Overview Of The Java WSDP 1.5

A Rich Set Of Utilities For The Developer

It can be difficult for developers, architects, and managers to keep up with new software packages and releases. This can be especially true with fast moving technologies like Web services. This article provides an overview of the main technologies that comprise the Java Web Services Developer Pack (Java WSDP). For more in-depth knowledge of the WSDP, simply download it and walk through the examples or complete the Java Web Services Tutorial.

In an effort to standardize XML and Web services-related technologies, Sun Microsystems has developed implementations of popular standards and published them under the umbrella title of the WSDP. The toolkit's stated purpose is to simplify the development, testing, and deployment of secure and interoperable Web services. Version 1.5 is the latest release of the WSDP and contains many updates to existing technologies, new features, and a collection of bug fixes. This article will examine the main technologies provided in the WSDP and review their purpose and status.

Downloading/Installing the Java WSDP 1.5
The WSDP can be downloaded freely from Sun's WSDP site at http://java.sun.com/webservices/downloads/webservicespack.html.

On the server side, the WSDP runs within a container (WebSphere, JBoss, WebLogic, SunONE). Sun provides downloads for WSDP-ready containers from its site, including its own Sun Java System Application Server and Tomcat. Since the licensing is free and open, Tomcat is a good place to start. Sun offers a download of Tomcat for Java WSDP at http://java.sun.com/webservices/containers/tomcat_for_JWSDP_1_5.html.

Tomcat 5.0 for Java WSDP is built on Tomcat 5.0.19. The container supports JSP 2.0 and version 2.4 of the Servlet specification.

Related to the WSDP is the JDBC RowSet Implementations 1.0.1 JWSDP 1.5 Co-Bundle, which provides an implementation of a Web service?enabled rowset for remote access to databases. The Co-Bundle can be found at http://java.sun.com/products/jdbc/download.html#rowsetcobundle1_0.

Installing the WSDP is fairly straightforward once you have a container downloaded. One of the most notable weak points of the WSDP (in the opinion of this author) is that the installation is packaged as an executable (.exe) on Windows and is less transparent than most Java install scripts. A standard Ant-based installation would be helpful in porting the WSDP scripts to currently unsupported platforms.

WSDP 1.5 Technology
Below is a short description of the technologies that make up the WSDP 1.5. For each entry the purpose of the toolkit is summarized, the guiding JSRs listed, and the underlying XML specifications noted where applicable.

Sun Java Streaming XML Parser (SJSXP)
The WSDP includes the Sun Java Streaming XML Parser (SJSXP,) which is an implementation of JSR 173. The Streaming API for XML (StAX) found in JSR 173 provides a stream-based API for reading and writing XML documents. The StAX approach is also known as "pull" parsing because it is left to the programmer to pull the next event from the stream via an iterator-based approach. In cases where the current data/events will affect subsequent parsing steps, stream-based code may be easier to write than a typical SAX-based approach and still avoids the inefficiencies of the in-memory DOM-based approach. While pull parsing is not right for every parsing problem, the SJSXP implementation of StAX provides an additional and powerful tool for Java developers. SJSXP is nonvalidating and W3C XML 1.0 is Namespace 1.0 compliant. (See JSR 173: www.jcp.org/en/jsr/detail?id=173; XML Pull Parser: www.extreme.indiana.edu/xgws/xsoap/xpp/.)

XML Digital Signature Version 1.0 EA2
The XML Digital Signature package in the WSDP provides an implementation of JSR 105. JSR 105 provides a standard way for Java developers to access digital signature services and implements the W3C's XML-Signature Syntax and Processing specification. This specification defines the syntax and rules for creating and representing digital signatures associated with digital content (mainly XML). The specification provides support for enveloped and detached signatures and basic keying and management of digital information.

Using the XML Digital Signature APIs found in the WSDP, developers can sign and validate digital content and represent the signatures in an XML format. The signatures provide a standard way to verify that content originated from a known source and was not altered during transmission. The WSDP contains the core classes for using signatures as well as examples and documents. (See JSR 150: www.jcp.org/en/jsr/detail?id=105; XML-Signature Syntax and Processing: www.w3.org/TR/2002/REC-xmldsig-core-20020212/.)

JAXB Version 1.0.4 (Java Architecture for XML Binding)
The Java Architecture for XML Binding (JAXB) project is the implementation of JSR 33 that provides a standard API for automating the mapping between XML documents and Java objects. Using JAXB, a developer can compile a schema into Java classes that provide support for marshaling, unmarshaling, accessing, updating, and validating. The main goal of JAXB is to relieve the developer of these tasks so that they can be more productive and be exposed to fewer XML-oriented issues. JAXB 1.0.4 provides support for a subset of XML Schema and experimental support for RelaxNG. RelaxNG is a simplified XML schema system sponsored by the Oasis group. JAXB is currently integrated with JAX-RPC for easily transporting objects across the wire. JAXB 2.0 (governed under JSR 222) will focus on further integration with JAX-RPC, broader schema support, and underlying use of StAX for XML handling. (See JSR 31: http://jcp.org/en/jsr/detail?id=31; JSR 222: http://jcp.org/en/jsr/detail?id=222; XML Schema Part 1: www.w3.org/TR/xmlschema-1/; XML Schema Part 2: www.w3.org/TR/xmlschema-2/; RelaxNG: www.oasis-open.org/committees/relax-ng/; UBL: www.oasisopen.org/committees/tc_home.php?wg_abbrev=ubl_l.)

JAXP Version 1.2.6_01 (Java API for XML Processing)
The JAXP package (Java API for XML Processing) provides an implementation-neutral way of accessing XML-related tools like SAX2 and DOM Level 2 XML parsers, XSLT processors (via TrAX) and XML utility standards for XBase, XLink, XPath, and XPointer. Developers using JAXP can access implementations of these tools by their interface and keep their code from directly depending on a particular implementation. For example, XML parsers are pluggable and can be switched out to fix bugs, improve speed, or alter the memory profile without a code change or recompilation. The JAXP 1.2 specification is a maintenance release of JAXP 1.1 and adds support for W3C XML Schema. (See JAXP: http://java.sun.com/xml/jaxp; JSR 63: www.jcp.org/en/jsr/detail?id=63; JSR 5: www.jcp.org/en/jsr/detail?id=5; SAX2: www.saxproject.org/; DOM Level 2: www.w3.org/TR/DOM-Level-2-Core/.)

JAXR Version 1.0.7 (Java API for XML Registries)
The Java API for XML Registries (JAXR) provides a uniform facade for accessing XML-based registries and was developed under JSR 93. Registries are useful for organizing, relating, and adding metadata to services and resources. The unifying approach of JAXR is useful because there are several similar and overlapping service registries in the Web services space. The JAXR API provides facilities for establishing connections to, querying, and updating registries. The current JAXR specification includes bindings for UDDI 2.0. Additional registries such as ebXML and eCo Framework can be developed and plugged in in a straightforward manner. (See UDDI: http://uddi.org/pubs/ProgrammersAPI-V2.04-Published-20020719.htm; JSR 93: http://jcp.org/en/jsr/detail?id=93; ebXML: www.oasis-open.org/committees/tc_home.php?wg_abbrev=regrep.)

JAX-RPC Version 1.1.2_01 (Java API for XML-based RPC)
The JAX-RPC project provides a uniform API for building Web services and Web service clients that use remote procedure calls (RPCs) with XML as a transport. JAX-RPC was originally developed under JSR 101 and is currently being developed under JSR 224 for JAX-RPC 2.0. A developer using JAX-RPC can either consume a remote Web service as a client or expose a Web service from the server side. The resulting code is RPC protocol independent. Web service based RPC protocols such as SOAP can be plugged into the JAX-RPC framework as needed. The 2.0 version of JAX?RPC is being increasingly integrated with the 2.0 version of the JAXB specification. (See JSR 101: www.jcp.org/en/jsr/detail?id=101; JSR 224: www.jcp.org/en/jsr/detail?id=224; SOAP: www.w3.org/TR/soap/.)

JDBC RowSet Implementations: Java Web Services Pack v1.5 Co-Bundle
The WSDP Co-Bundle provides a basic JDBC rowset implementation and several disconnected JDBC rowset implementations that can be used to access and update data in a relational database. Several of the rowset implementations provided are disconnected, that is they are not directly connected to the underlying database. The WebRowSet class is disconnected and can marshal and unmarshal itself to/from XML according to the WebRowSet schema. A developer can expose the WebRowSet via Web services and allow clients easy, powerful, and secure access to a remote database. (See Co-Bundle: http://java.sun.com/products/jdbc/download.html#rowsetcobundle1_0.)

WSDP Recap
The WSDP provides a rich set of utilities for the XML and Web services developer. Developers can use the current implementation of the WSDP to build sophisticated Web service implementations in a standard fashion. As the WSDP expands over time to include additional security tools and updated XML-related standards, developers will continue to find it a valuable resource. For the latest information on the WSDP and Sun's Web service efforts, see http://java.sun.com/webservices.

Additional Resources

  • WSDP: http://java.sun.com/webservices/downloads/webservicespack.html
  • WSDP 1.5 Download: http://java.sun.com/webservices/downloads/webservicespack.html
  • Java Web Services Tutorial: http://java.sun.com/webservices/docs/1.5/tutorial/doc/index.html
  • StAX: Java's XML Pull Parser Specification: www.sys-con.com/story/?storyid=45083&DE=1
  • JSR 173: Streaming API for XML: www.jcp.org/en/jsr/detail?id=173
  • XML-Signature Syntax and Processing Specification: www.w3.org/TR/xmldsig-core/
  • JAXP Site: http://java.sun.com/xml/jaxp/
  • JAXR Site: http://java.sun.com/xml/jaxr/
  • JAXB Site: http://java.sun.com/xml/jaxb/
  • WS-I Basic Profile: www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html
  • More Stories By Michael A. Sick

    Michael Sick is the Founder and President of Serene Software, a Jacksonville, Florida firm specializing in Enterprise Architecture (EA) via IT Strategy, IT Governance, IT Budgeting, Service Oriented Architectures (SOA), and IT Legacy Planning services. With over 15 years of experience, he has served as VP Development, Enterprise Architect and Lead Software Architect, while providing expertise to organizations like BAE, Sun Microsystems, Badcock Furniture, Raytheon (Future Combat Systems), the United States Air Force, USDA, BearingPoint, and other firms. Areas of interest include: SOA, IT budget optimization and planning, cloud and distributed computing, and process optimization.

    Comments (0)

    Share your thoughts on this story.

    Add your comment
    You must be signed in to add a comment. Sign-in | Register

    In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


    @ThingsExpo Stories
    Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
    A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, whic...
    Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive ov...
    With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, examined the regulations and provided insight on how it affects technology, challenges the established rules and will usher in new levels of diligence arou...
    In his session at 21st Cloud Expo, Raju Shreewastava, founder of Big Data Trunk, provided a fun and simple way to introduce Machine Leaning to anyone and everyone. He solved a machine learning problem and demonstrated an easy way to be able to do machine learning without even coding. Raju Shreewastava is the founder of Big Data Trunk (www.BigDataTrunk.com), a Big Data Training and consulting firm with offices in the United States. He previously led the data warehouse/business intelligence and B...
    To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. In his session at @BigDataExpo, Jack Norris, Senior Vice President, Data and Applications at MapR Technologies, reviewed best practices to ...
    "Digital transformation - what we knew about it in the past has been redefined. Automation is going to play such a huge role in that because the culture, the technology, and the business operations are being shifted now," stated Brian Boeggeman, VP of Alliances & Partnerships at Ayehu, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
    SYS-CON Events announced today that Synametrics Technologies will exhibit at SYS-CON's 22nd International Cloud Expo®, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Synametrics Technologies is a privately held company based in Plainsboro, New Jersey that has been providing solutions for the developer community since 1997. Based on the success of its initial product offerings such as WinSQL, Xeams, SynaMan and Syncrify, Synametrics continues to create and hone inn...
    "Evatronix provides design services to companies that need to integrate the IoT technology in their products but they don't necessarily have the expertise, knowledge and design team to do so," explained Adam Morawiec, VP of Business Development at Evatronix, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
    The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding busin...
    In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
    Nordstrom is transforming the way that they do business and the cloud is the key to enabling speed and hyper personalized customer experiences. In his session at 21st Cloud Expo, Ken Schow, VP of Engineering at Nordstrom, discussed some of the key learnings and common pitfalls of large enterprises moving to the cloud. This includes strategies around choosing a cloud provider(s), architecture, and lessons learned. In addition, he covered some of the best practices for structured team migration an...
    No hype cycles or predictions of a gazillion things here. IoT is here. You get it. You know your business and have great ideas for a business transformation strategy. What comes next? Time to make it happen. In his session at @ThingsExpo, Jay Mason, an Associate Partner of Analytics, IoT & Cybersecurity at M&S Consulting, presented a step-by-step plan to develop your technology implementation strategy. He also discussed the evaluation of communication standards and IoT messaging protocols, data...
    Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, discussed how they built...
    SYS-CON Events announced today that Evatronix will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Evatronix SA offers comprehensive solutions in the design and implementation of electronic systems, in CAD / CAM deployment, and also is a designer and manufacturer of advanced 3D scanners for professional applications.
    22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
    22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
    DevOps at Cloud Expo – being held June 5-7, 2018, at the Javits Center in New York, NY – announces that its Call for Papers is open. Born out of proven success in agile development, cloud computing, and process automation, DevOps is a macro trend you cannot afford to miss. From showcase success stories from early adopters and web-scale businesses, DevOps is expanding to organizations of all sizes, including the world's largest enterprises – and delivering real results. Among the proven benefits,...
    @DevOpsSummit at Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, is co-located with 22nd Cloud Expo | 1st DXWorld Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait...
    SYS-CON Events announced today that T-Mobile exhibited at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on qua...