Web services programming tips and tricks: Roundtrip issues in Java coding conventions
33468Web services programming tips and tricks: Roundtrip issues in Java coding conventionshttp://www-106.ibm.com/developerworks/xml/library/ws-tip-roundtrip2.html?ca=dgr-xw766ws-tip-roundtriThe Java APIs for XML-Based Remote Procedure Call (JAX-RPC) protocol (see Resources) is Java-centric, not WSDL-centric. It contains a fairly elaborate set of rules for mapping WSDL names to Java-friendly names which follow the Java coding conventions. This is good because JAX-RPC users will be Java programmers. In fact, they may not even care that your Web service is a Web service. They probably do not know or care about WSDL and XML, and all the quirks that they bring to the table. All they may care about is that they can write Java code to call your service and expect the JAX-RPC APIs for your service to look familiar; in other words, to follow Java coding conventions.XML > Tips and Tutorials > Introduction to XMLOct 17, 2006
The Java APIs for XML-Based Remote Procedure Call (JAX-RPC) protocol (see Resources) is Java-centric, not WSDL-centric. It contains a fairly elaborate set of rules for mapping WSDL names to Java-friendly names which follow the Java coding conventions. This is good because JAX-RPC users will be Java programmers. In fact, they may not even care that your Web service is a Web service. They probably do not know or care about WSDL and XML, and all the quirks that they bring to the table. All they may care about is that they can write Java code to call your service and expect the JAX-RPC APIs for your service to look familiar; in other words, to follow Java coding conventions.
XML (eXtensible Markup Language) is not a programming language. Like HTML (and sharing a common parentage - but that's another story), XML is a means of 'marking up' the content of a document using elements (sometimes referred to as tags) to mark the beginning and end of sections of information.
The fact that you're reading this column tells me that you're at least mildly interested in XML data binding. Just a short year ago, that would have led me to define what data binding is, go into the concepts involved, and generally be boring for several pages worth of article text. However, it isn't a year ago -- it's 2004, and data binding seems to have sunk into the consciousness of almost every XML and Java? developer working in the industry today.
If you have some familiarity with HTML, you have some concept of what markup language is. If you write a plain text file, it is composed of simple ASCII characters and nothing more. When a program (such as notepad) is used to display the file, all characters in the text file will be displayed using the same font size, type, and boldness. There are no special display characteristics to this type of file.
Operating systems -- and in particular their GUIs -- maintain structured, persistent data through a variety of mechanisms and in a variety of formats. Windows versions used INI files, then moved to a binary (and unified) registry; eariler versions of Mac OS had resource forks in the file system and a desktop file for its Finder; Linux and other UNIX-like systems typically used dotted, hidden files in home directories, with configuration detailed in dozens of incompatible ways between window managers and applications.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.