Web service development with Java

ANALYSIS
With acronyms like XML, UDDI, WSDL, and SOAP becoming commonplace. Both Microsoft and Sun have recast their direction to embrace Web services with .NET and Sun ONE. Consequently, it was only a matter of time before developers wanted to dig into these technologies. The latest offering from O'Reilly, Java Web Services, provides a roadmap for Java developers. Sneak peak Get a sneak peak at this book by checking out Chapter 6 on the publisher's Web site.
A little of everything
Web services offer a platform- and language-neutral approach, but developers must choose a language to actually develop a Web service. If Java is your choice, this book attempts to provide every relevant bit of information. Individual chapters focus on the various Web service technologies (with a Java spin): SOAP, WSDL, and UDDI. According to the book, these technologies are the foundations of a Web service. Each chapter includes a good amount of Java code to drive home the message. Where to begin?
The book begins with a brief overview of the concept of Web services and a discussion of factors affecting adoption of the technology. I found the adoption discussion very interesting; it presents other comparable technologies and explains how they were adopted. A discussion of the service-oriented model follows and provides more insight into the why, how, and what of Web services. The acronyms
As I stated earlier, chapters are devoted to SOAP, WSDL, and UDDI. Actually, two chapters cover SOAP; the second chapter focuses on SOAP error handling and misconceptions. Again, this chapter provides valuable information relating to the development of SOAP and how to handle different SOAP versions. The UDDI and WSDL chapters provide introductions and lots of code to get your feet wet. Once these foundation technologies are thoroughly introduced, the core Java technologies are covered. Java enterprise technologies
Microsoft got a jump-start with integrating Web services into the .NET framework. Sun answered with the Java Web Services Developer Pack. It is an all-in-one toolkit containing the necessary technologies for building Web services with Java, including messaging, processing, registry, and deployment tools. The book covers Java API for XML-based RPC (JAX-RPC) and Java API for XML Messaging (JAXM). I was both happy and surprised, because I haven't seen other books covering them. Sadly, the book falls short by omitting the remaining aspects of the toolkit. The main focus is on using SOAP with JAXM and JAX-RPC.

Another chapter is entitled "J2EE and Web Services," but a better title would have been "SOAP and Web Services." The chapter is devoted to discussing how SOAP and J2EE are used together, including approaches to parsing SOAP messages, using RPC, and a lengthy example utilizing Java Message Service (JMS). It concludes with a brief discussion of emerging standards with coverage of the BEA-backed Java Web Service (JWS) initiative. The good, bad, and ugly of interoperability
By far, my favorite section of the book is Chapter 9, which is devoted to the dreamland of interoperability that is lauded by Web service pundits but falls short in the real world. This chapter is a reality check for those who think Web services are the answer to all of our problems. It details many of the pitfalls and problem areas, and introduces the SOAPBuilders discussion group that was created to promote interoperability as SOAP matures. (New versions are released, and yes, these standards are still subject to the issue of different versions.) Another aspect covered in this section is .NET and J2EE Web service interoperability; it's really good stuff. What about security?
The book closes with a brief look at approaches to Web service security, including XML security (such as digital certificates and encryption) as well as SOAP security. Examples are included using Java toolkits from IBM and Phaos. Lather up!
I have always loved O'Reilly books, and I found the information presented in Java Web Services very useful. However, the book focuses its efforts almost entirely on SOAP. There is overlap with other O'Reilly titles like Programming Web Services with SOAP and Java and SOAP. The introductory information on each technology can easily be found in other books (with more depth), but the Java samples and commentary on the technologies is certainly valuable.
Have your say instantly in the Tech Update forum. Find out what's where in the new Tech Update with our Guided Tour. Let the editors know what you think in the Mailroom.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

4 hours ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

6 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

6 hours ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

8 hours ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint
Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

9 hours ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

9 hours ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

10 hours ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

10 hours ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Moley

For Gnome 2 die-hards, it is possible to add icons to the bottom panel (or top top panel, if you prefer) which provide the exact Gnome 2...

11 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
ramwellian

Your comments would seem pretty naive and immature. Your 'solution' appears to be, "gee, let's all just give in to the hackers and give them...

11 hours ago by ramwellian on Cloud computing security: no more oxymoron?
BugStalker

"Interesting thought ... If you installed Win7 as a dual boot on a machine that previously only had Linux, and it wrecked your Linux installation,...

11 hours ago by BugStalker on Windows 7 Declares War on GRUB
whs001

This is an excellent summary of Ubuntu and Mint and the interface differences between them. Most such articles take a very partisan position for...

11 hours ago by whs001 on A tale of two distros: Ubuntu and Linux Mint
Moley

@ewallace. Not so clear. Anyone can obtain the text, for example from here http://www.ustr.gov/webfm_send/2379. I support ACTA so long as it and...

12 hours ago by Moley on ACTA: Facts, misconceptions and questions
45283

I think WinRT is fantastic. I just wish it was an option for people that didn't want to go through Microsoft's App Store with its attendant...

15 hours ago by 45283 on Why Windows 8 needs architectural hygiene for WOA
Burn-IT

Nine people? £30m? Who's back pocket is that lot going in? And IF they say it is for new buildings, what about all the ones the government has...

16 hours ago by Burn-IT on Police set to launch three £30m e-crime hubs
ewallace

Just to be clear, nobody knows what is in the text of ACTA, here is a photograph of the text of ACTA http://twitpic.com/8h9iju as submitted to the...

16 hours ago by ewallace on ACTA: Facts, misconceptions and questions
fgvrg56

Unfortunately main issue is that ASUS is refusing to accept that they make some mistake on this version of asus Transformer prime. 1 - GPS sensor...

17 hours ago by fgvrg56 on Asus Eee Pad Transformer Prime Wi-Fi & GPS problems?
Ben Woods

@Marcus A fair question. Just talked with Archos which said it was working on an announcement for next week....

18 hours ago by Ben Woods on Archos confirms G9 Ice Cream Sandwich update schedule
Marcus Karlsson

Any update on this, considering the claimed "first week of February"?

19 hours ago by Marcus Karlsson via Facebook on Archos confirms G9 Ice Cream Sandwich update schedule
apexwm

Bill Goodrich : Just as al_langevin pointed out, with Windows Server 2008 there is no Services for Macintosh anymore. It's gone, not available....

1 day ago by apexwm on Windows Server 2008 drops the ball for Mac compatibility

Latest in Application Development