Java Web Services and XML
We've been working hard to get Project Tango's initial source access
ready in time for
Good news. We did it! Go to
to try it out. We are still in the early stages so now is a good time
to get involved and help shape the code.
If you are in the mood to read more about Project Tango right now go
on May 16, 2006
Hot off the press on blueprints.dev.java.net are two examples for orchestrating Web services with the Business Process Execution Language (BPEL). They illustrate how to implement synchronous or asynchronous Web-service interactions, complete with design details.
Be sure to check them out!
on May 15, 2006
We are pleased to announce that the JAX-WS 2.0 Final Realease of the reference implementation is finally available on java.net.
It has been a long haul to get to this point and the JAX-WS teams would like to thank everyone that kicked the tires and gave us valuable feedback to make JAX-WS a success.
We look forward to making the next release even better.
The JAX-WS project is part of the...
on May 9, 2006
I actually didn't know when it happened, but apparently JAXB 2.0 (JSR-222) final approval ballot has passed, without any "no" vote. This means that the expert group voted OK to release JAXB 2.0 at last.
So I should be able to post the JAXB RI 2.0 release version shortly.
on May 3, 2006
JAX-WS provides a pluggable framework to extend the runtime processing capabilities through handlers. Handlers are message interceptors that can do pre-processing/post-processing of the messages to complement your Web Service. JAX-WS defines two types of handlers, logical handlers and protocol handlers. Protocol handlers are specific to a protocol and may access or change the protocol specific...
on May 1, 2006
I made improvements to the java.net maven repository daemon, so that more Sun jars can be posted.
Following JAXB jars in the maven repository, we pushed SAAJ and JAX-WS API jar and the RI to the maven repository.
POMs of those jars are written in haste, so if you find any mistake (in particular in its dependencies), please let me know so that we can fix it.
I hope you Maven users out there...
on Apr 28, 2006
Since XML is a textual format, binary blobs must be represented as characters when embedded in an XML document. A popular encoding that permits this embedding is known as base64 encoding, and it corresponds to the XML Schema data type xsd:base64Binary. In a Web services toolkit that supports a binding framework, as it is the case in JAX-WS, a value of this type must be encoded before transmission...
on Apr 28, 2006
I have created an object to pass dynamic data to and from Web Services. I am blogging it because I want to know how others feel about this type of object.
Versioning of Web Services is difficult with many different factors to consider, which is beyond the scope of this blog. Lets say it is safe to say that you need to make Web Services backwards compatible for as long as possible. To do...
on Apr 26, 2006
Sometimes, Invoking Web Services require exchange of additional information or metadata. This metadata forms the context of message exchange. Few of the common questions I hear while creating Web Services using JAX-WS are, how do I convey this metadata with other parts of the application and how do I configure the binding to behave in a certain way.
The good thing, JAX-WS has made all this very...
on Apr 22, 2006
I downloaded and installed Glassfish
build. This is the first time I'm downloading and installing Glassfish on my
machine so here is my experience so far.
Ignoring the installation instructions (with a "I know it"
attitude) and realizing the downloaded bundle extension is ".jar"
I ran the install command as:
java -jar glassfish-installer-9.0-b42....
on Apr 20, 2006
JSR 224 (JAX-WS) was approved yesterday! You can view the result on the
The Java Community Process(SM) Program - JSRs: Java Specification Requests - results
JAX-WS is part of the Glassfish Project
on Apr 18, 2006
People often get confused about why their sub-classes are not used by JAXB when they read an XML document that uses @xsi:type into Java objects. This question was asked in the forum (I don't think this is the first time but I can't find a reference.)
The first thing you should do, and this applies not only to this issue but all the other unmarshalling related issues, is to register a...
on Apr 17, 2006
Project Tango is a Sun initiative focused on delivering interoperable Web services technologies. Web Services Interoperability Technology (WSIT) is an open-source implementation of next generation Web services technologies that deliver interoperability between Java EE and .Net to help you build, deploy, and maintain Composite Applications for your Service Oriented Architecture. It is focused on...
on Apr 16, 2006
John Yates wrote an great article on JAX-WS. He does a very good job of describing the architecture of JAX-WS and how to use JAX-WS. He shows how a Web Service and be published with JAX-WS and then creating a client for that Web Service. You can even download his code to try for yourself.
Check out his article at DevX.
on Apr 13, 2006
The JAX-RPC sources for Glassfish are now on Java.net. The JAX-RPC sources used to be hosted in the jax-rpc-sources project on java.net but the jax-rpc-sources repostitory was never used actively and the sources were rarely updated.
As of today, all JAX-RPC development will use the cvs repository under the JAX-RPC project on Java.net. The direct link to the sources is
on Apr 13, 2006
Often, the only JAXB customizations that you need to use are globalBindings and schemaBindings so that, for example, you can set a package, etc.
Now, specifying these cusotmiztions inline in schema is pretty straight-forward, but doing so externally (which you have to do if you don't want to change the schema) is more work. Normally, the way you specify these bindings externally is to write...
on Apr 6, 2006
The Sun Java Streaming XML Parser (SJSXP) FCS version 1.0 is now available in binary and source forms from Java.net. This parser is an implemenation of JSR 173, submitted to the JCP by BEA. We liked this parser and the StAX API so much that we've made it a key component of our Web services stack in Glassfish.
The Streaming API for XML (StAX) essentially turns the SAX processing model upside down...
on Apr 6, 2006
Welcome Bhakti to blogosphere.
And quite an impressive way to start the blog by explaining the WS-Reliable
Messaging protocol, defining stack and developer responsibilities in Project
Tango, delivery vehicle and updates from the WCF
WS-Reliable Messaging source and binaries will be available on java.net
with support for Glassfish.
Technorati: Web Services
on Mar 31, 2006
In the real world, challenges are encountered in delivering messages. There can be network/connection problems.
Consequently, messages can be lost or delivered out of order. Web
Services Reliable Messaging (WS RM) provides a mechanism to ensure a layer of reliability between potentially unreliable or intermittently connected
It provides an interoperable protocol that...
on Mar 31, 2006
WS-I Testing Tools determine conformance with WS-I
Basic Profile 1.1 (BP 1.1) and Simple
SOAP Binding Profile 1.0 (SSBP 1.0). The testing tools download bundle comes
with two tools that facilitate the
process, they are Monitor and Analyzer. The bundle comes with a
command-line version of these tools but for easier integration with Ant
build scripts, ant
tasks for these tools is available here....
on Mar 29, 2006