Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by Community: Java Web Services and XML

• Adopt a JSR  • Embedded  • GlassFish  
• Global Education and Learning  • Identity Management  • IoT  
• Java Communications  • Java Desktop  • Java Enterprise  
• Java Patterns  • Java Tools  • Java User Groups  
• Java Web Services and XML  • JavaFX  • JCP  
• JDDAC  • Jini  • JXTA  
• Mac Java  • NetBeans  • Open JDK  
• Portlet  • Robotics  • Sun Grid  
• Sun RFID and Sensor  • [no association]  


Java Web Services and XML

I just found that there's a project on SourceForge that provides a Java API to invoke Google desktop search. The reason I'm writing about this is that because it's using JAXB. Yay!
on Sep 12, 2005
This is a continution from here. 404: That's what I'm getting when trying to browse a service endpoint from a virtual directory in IIS manager. I filed a bug on MSDN Product Feedback Center and hopefully will hear back a response. I've tried installing and re-installing WinFX Runtime and SDK multiple times (trying to rule out installation errors) but in vain. A text file in the same virtual...
on Sep 8, 2005
FastInfoset implementats SAX and StAX interfaces. This allows any XML technologies to be used with FastInfoset provided that they support either SAX or StAX. So it's generally that easy. For example, the following code creates a StAX XMLStreamReader from a file encoded in the FastInfoset format: import com.sun.xml.fastinfoset.stax.*;InputStream in = new BufferedInputStream(new FileInputStream...
on Sep 6, 2005
I got Windows Longhorn Vista Beta1 through MSDN subscription and decided to upgrade my Windows XP+SP2. The Sys-admins in my company were prompt to help me configure that. I got tempted to setup Windows Communication Framework (codename Indigo) on this machine. So I tried installing Visual Studio 2005 Beta2. I was expecting a smooth VS installation but history repeats itself (different...
on Sep 2, 2005
The annotation processor in JAX-WS 2.0 has been using wildcards to specify the list of annotations that can be processed. For example, the list of supported annotations was initialized as: static {  Collection<String> types = new HashSet<String>();  types.add("javax.jws.*");  types.add("javax.jws.soap.*");  types.add(...
on Sep 1, 2005
Friday has always been a good time for making performance improvements for me, for some reason. Today, its target was javax.xml.datatype.XMLGregorianCalendar class. One of our internal benchmark identified this as a hotspot for JAXB, because when a schema uses xs:dateTime or some such datatype, we're binding it to XMLGregorianCalendar. So I looked at its parsing code and the printing code. On...
on Aug 26, 2005
Ryan and I launched another service to make it easy to own a project in java.net. One of the things that we didn't like about java.net is the mailing list moderation policy. To protect lists from spam, you need to mark a list as "moderated" to indicate that the posting can be only done by subscribers. But if you do this, and someone sends a message to a list without subscribing, they won't get...
on Aug 25, 2005
When you are working with JAXB-bound classes, it's sometimes convenient to be able to parse those JAXB annotations by yourself. For example, some people are interested in implementing a subset of XPath engine on top of JAXB beans; Some other people are interested in writing a Swing JTable adapter for JAXB objects. When doing this kind of stuff, you'd like to know answers for questions like "does...
on Aug 18, 2005
Web Services Addressing Working Group advanced Core and SOAP Binding to Candidate Recommendation. As per W3C recommendation track process, the director will now call for implementations to gather implementation experience. Earlier the WG decided to have 4 implementations complete of mandatory features, of which 2 will also implement all optional features. These 4 vendors will provide feedback to...
on Aug 17, 2005
The initial version of the JAXB RI unmarshaller was written for 1.0 for more than 2 years ago, and that was based on my experience working with a databinding tool called RELAXNGCC. The idea was to build a push-down automaton by using XML events as alphabets. This was very flexible, in that it can capture most of the RELAX NG grammar (such as a choice between attributes, or a choice between an...
on Aug 16, 2005
ID/IDREF has been with XML since its very first day. It works nicely with databinding tools, because it's easy to do a type analysis with ID/IDREF In this regard, key/keyref in XML Schema is much worse --- in general it's not even possible to determine how a given key/keyref constraint maps to which field/method of an object. ID/IDREF is great, but it is sometimes too simple. For example,...
on Aug 15, 2005
Nowadays many Java tools need to access HTTP resources. For example, Ant has a <get> task, Maven needs to download jar files, javadoc needs to locate package-list from a remote site, JAX-WS's WsImport reads WSDL from a remote website, and JAXB's schema compiler does the same for schema files. The list could go on forever. So first let's look at how these tools support proxies? Ant With Ant...
on Aug 10, 2005
I think the SOA hype is essentially a realization. The IT industry has realized that today's cutting edge technology is tomorrow's legacy. And that systems we create today ought to work with systems to be developed in the future. So how do we ensure that today's systems can be best utilized tomorrow ? Decompose the system into reusable components: We can selectively use parts of the system...
on Aug 9, 2005
Sun's Web Services and XML group has openings in the USA (West and East coast), India (Bangalore) and in the Czech Republic (Prague). Check out Eduardo's blog for more details. I've been with this group since it's inception (that's why biased) but it has been fun all along. Our group catapulted Sun to the top spot in Web Services toolkits and am very proud of it. You can make a difference!...
on Aug 4, 2005
Good commenting always make it easier to understand the source code (although people have different opinions about what exactly is good comments.) As such, one of the things we've been doing is to make sure that the JAXB RI source code is well commented. This is mostly done by javadoc, which is good for describing lower-level details of the code. It's also nice for a project to have a higher-...
on Aug 3, 2005
WSDL 1.1, section 3.7 defines SOAP header fault as: The optional headerfault elements which appear inside soap:header and have the same syntax as soap:header) allows specification of the header type(s) that are used to transmit error information pertaining to the header defined by the soap:header. The SOAP specification states that errors pertaining to headers must be returned in headers, and...
on Aug 1, 2005
Well, I kind of know the XML code inside out ;-), so I knew beforehand that a SAX parser closes the stream it reads. So I just mostly wrote a simple program to confirm the socket behavior. Also, I think I know about TCP probably more than average developers. That probably have helped, too. Mostly I just verified that calling socket.getInputStream().close() brings down the whole connection. This...
on Jul 22, 2005
Asynchronous JavaScript and XML (AJAX) is an increasingly popular technology that enables HTML pages to asynchronously make calls to the server from which the pages were loaded and fetch XML documents. You can then update the XML documents by means of JavaScript to revise the Document Object Model (DOM). A recent article that I cowrote with two Sun engineers, Asynchronous Rendering of Portlet...
on Jul 15, 2005
Yesterday, one of the JAXB users sent me an e-mail, asking for how to solve the problem he faced. The scenario was like this; you have a client and a server, and you want a client to send an XML document to a server (through a good ol' TCP socket), then a server sends back an XML document. A very simple use case that should just work. The problem he had is that unless the client sends the "EOS...
on Jul 15, 2005
The JAXB RI distribution ships with xjc.sh and xjc.bat for invoking XJC from a command prompt. JWSDP also has xjc.sh and xjc.bat, but their contents are different. I'm sure these files are there for a reason, but personally, I hate those scripts. Here are why. One, it's hard to set the JVM parameters, even though sometimes you need to increase the VM memory size to have XJC compile a large...
on Jul 14, 2005