Slashdot Mirror


Java Web Services in a Nutshell

milaf writes "Surprisingly many people have absolutely wrong ideas about Web Services. I think that the hype and perceived simplicity of everything having to do with the Web are to blame. Well, that, and the wide-spread 'confidence through ignorance' among us." Read on for milaf's review of the O'Reilly-published Java Web Services in a Nutshell, which he says displaces hype with good information. Java web services in a nutshell author Kim Topley pages 642 publisher O'Reilly rating 9/10 reviewer Alex ISBN 0596003994 summary Excellent book on Web Services for Java developers, related standards and technologies

I expected this book to be similar to other "Nutshell" books that I like and am familiar with: a very accurate and concise description of the domain, followed by a huge API reference. Well, I was pleasantly surprised: this book reads more like a tutorial, yet it is a reference in the sense that you can easily read its parts independently, and its index is quite useful and complete.

The book covers all technologies necessary for defining, implementing, and deploying Web Services for both client and server sides:

  • WSDL (Web Services Definition Language), the XML-based interface definition language (and more); CORBA folks: this is your IDL for the Web Services platform, only not as easily read or understood. Not to worry: there are GUI-based editors for this thing, many of them are free. Plus the book explains WSDL format and structure in a great detail.
  • JAXR, a client-side interface for extraction of business and service information from the compliant Web Service registries.
  • JAX-RPC (two chapters: basic and advanced); at the application level this technology is similar to CORBA using Java.
  • JAXM, a high level standard-based generic interface to messaging that is implemented by a messaging provider. It offers the benefits of asynchronous messaging, robust message delivery, and message profiles (use of SOAP message headers).
  • SAAJ is a low-level Java interface to SOAP; under the hood some of the mentioned technologies use it.

For each of these technologies the author dedicates enormous effort to showing intricate but very relevant technical details without obscuring the big picture. There is a necessary but not overwhelming amount of Java code and XML. You will be able to reuse the examples since they are very clear.

The book has a chapter on Web Services tools and configuration files. This is a very helpful chapter: the business of defining deployment descriptors by hand is a messy job; presence of this chapter makes the job a bit easier. A small but helpful API reference may be found at the end of the volume.

If you need to understand the details of how to build, implement, and deploy Web Services, you will not be disappointed. There is absolutely no hype in this book! Considering the topic, nowadays this alone is an achievement.

Web Services technology is not the "Web Stuff," it is not related to browsing the WWW, and it does not pertain to the services offered by the WWW vendors (unless Web Services is what they sell). It is a fast-growing technology for programming in the distributed computing environment. Judging by the hype and money being spent on it by the leading powerhouses, it is going to be very prolific and important technology in the near future. Want to know more? -- Read the book!

You can purchase Java Web Services in a Nutshell from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

25 of 91 comments (clear)

  1. A page-widening review on Slashdot. by Anonymous Coward · · Score: 4, Funny

    What next? A duplicate article posting?

    1. Re:A page-widening review on Slashdot. by pope1 · · Score: 4, Funny

      slashdot dosen't post duplicate articles,
      they are just experimenting with RAID:

      Redundant Articles Interleaving Daily

      That way, just in case you miss something important
      because a lot of stories are being posted, you can catch it later w/o having to back track.

      Be very afraid if they try and test thier RAID5 setup, where theres a SCO article at the top of the site that just never goes away, for parity.

      --
      /* * pope1 */
  2. Web Services? by _Sharp'r_ · · Score: 3, Informative

    I wish they had managed to call it something besides "Web Services" when it doesn't have a lot to do with the "World Wide Web". That's been the biggest point of confusion I've found trying to explain web services to semi-technical people.

    The services part hasn't been much better than the Web part, but at least it's mostly fitting.

    The book reviewed is a pretty good overview. I just wish they had spent more time on typical internal corporate uses and tools to convert/interact with existing legacy software products.

    You can find some similar related books at BUR - Web Services/Soap. I am looking forward to the days when standards like this combined with older stuff like XML and CSS make combining and processing data from disparete sources becomes a lot easier than it typically is now!

    --
    The party of stupid and the party of evil get together and do something both stupid and evil, then call it bipartisan.
    1. Re:Web Services? by Directrix1 · · Score: 2, Interesting

      Well, its damned easy on java if you use AltRMI.

      --
      Occam's razor is the blind faith in the natural selection of least resistance and in universal oversimplification. -- EF
    2. Re:Web Services? by molarmass192 · · Score: 2, Funny

      Problem is we're running out of names in IT. If not Web Services then what?

      Network Services ... taken
      Remote Services ... taken
      Shared Services ... taken
      Pluggable Services ... taken
      Grid Services ... taken


      We need a new name, something that's kinda "Net" but not used yet. How about "Scattered" or "Decentralized", or are those taken too? I think a good acronym would have been less confusing and more importantly would result in fewer questions.

      Anyhow, a lot of words just to say "I agree", the "Web" portion just serves to confuse the folks who approve the budgets.

      --

      Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws-Plato
  3. Re:Just gimme the gist of it.. by stratjakt · · Score: 4, Funny

    Mebbe I'll review "HTML formatting in a Nutshell" for them.

    --
    I don't need no instructions to know how to rock!!!!
  4. JAXM: Dead or Alive? by livinglegend5000 · · Score: 5, Interesting
    When I attended the JavaOne conference in June I asked one of the speakers/JAX-RPC developers from Sun why the JAXM (Java API for XML Messaging) was not included in the latest release of the Java Web Services Developers Pack (1.2). She said that it was because the JAXM library was not developmentally mature, which really concerns me since I have 5 production application using JAXM. She recommended using JAX-RPC (Remote Procedure Calls) instead, which I've been researching.

    So, I found it interesting that the author has chosen to include JAXM in his book. I have no beef against JAXM, it works as stated. But the threat of abandoned developments concerns me... Does JAXM have some life left in it yet? Does the author know something we don't?

  5. New projects i am working on with O'Reilly: by pope1 · · Score: 4, Funny

    libTurtle SDK on the Half Shell.
    WINE in a Cask.
    The freshmeat.net Handbook from the Butcher.

    I love all the silly food/drink references we deal with every day in the IT field.

    --
    /* * pope1 */
  6. Re:Just gimme the gist of it.. by Trigun · · Score: 2, Funny

    You think that they'll get the hint?

    Where's your damned 'Preview' Button now?

  7. Nice review...not by infinii · · Score: 2, Insightful

    Wow, why bother typing out that review when you could have just posted a link to ORA's description. ;)

    Can anyone explain the differences between "Java Web Services in a Nutshell" and "Java Web Services" both published by O'Reilly? Look very similar with the latter probably a bit outdated seeing as it was published March 2002. Is this Nutshell book just a rehash of the other book but with updated API's?

  8. Original review without the page-widening by Anonymous Coward · · Score: 3, Informative

    I expected this book to be similar to other "Nutshell" books that I like and am familiar with: a very accurate and concise description of the domain, followed by a huge API reference. Well, I was pleasantly surprised: this book reads more like a tutorial, yet it is a reference in the sense that you can easily read its parts independently, and its index is quite useful and complete.

    The book covers all technologies necessary for defining, implementing, and deploying Web Services for both client and server sides:

    * WSDL (Web Services Definition Language), the XML-based interface definition language (and more); CORBA folks: this is your IDL for the Web Services platform, only not as easily read or understood. Not to worry: there are GUI-based editors for this thing, many of them are free. Plus the book explains WSDL format and structure in a great detail.
    * JAXR, a client-side interface for extraction of business and service information from the compliant Web Service registries.
    * JAX-RPC (two chapters: basic and advanced); at the application level this technology is similar to CORBA using Java.
    * JAXM, a high level standard-based generic interface to messaging that is implemented by a messaging provider. It offers the benefits of asynchronous messaging, robust message delivery, and message profiles (use of SOAP message headers).
    * SAAJ is a low-level Java interface to SOAP; under the hood some of the mentioned technologies use it.

    For each of these technologies the author dedicates enormous effort to showing intricate but very relevant technical details without obscuring the big picture. There is a necessary but not overwhelming amount of Java code and XML. You will be able to reuse the examples since they are very clear.

    The book has a chapter on Web Services tools and configuration files. This is a very helpful chapter: the business of defining deployment descriptors by hand is a messy job; presence of this chapter makes the job a bit easier. A small but helpful API reference may be found at the end of the volume.

    If you need to understand the details of how to build, implement, and deploy Web Services, you will not be disappointed. There is absolutely no hype in this book! Considering the topic, nowadays this alone is an achievement.

    Web Services technology is not the "Web Stuff," it is not related to browsing the WWW, and it does not pertain to the services offered by the WWW vendors (unless Web Services is what they sell). It is a fast-growing technology for programming in the distributed computing environment. Judging by the hype and money being spent on it by the leading powerhouses, it is going to be very prolific and important technology in the near future. Want to know more? -- Read the book!

  9. Heh by teslatug · · Score: 3, Funny

    I have to go buy a side-scrolling mouse, brb

  10. What books for NON-JAVA web services? by crankyspice · · Score: 4, Insightful

    I have to implement a set of web services here on (I know, I know, not my choice) MS SQL 2000 Server. I have the option of using ASP (gack), Perl, or PHP, or any combination thereof. At first, probably mostly HTTP GET and POSTs, but eventually we'll implement SOAP.

    What books (O'Reilly?), if any, are a 'must have' for this type of work, and these tools? I know my way around PHP reasonably well, Perl at a not-quite-amateur-not-quite-pro level, and ASP / Java not at all. I've got two months, give or take, so I don't want to take the time to get up to speed on a whole new language.

    Any first-hand recommendations would be much appreciated; I've got to order books today (found out yesterday)...

    Argh.

    THANKS!!!

    --
    geek. lawyer.
    1. Re:What books for NON-JAVA web services? by crankyspice · · Score: 2, Informative

      Yeah, but I know PHP and Perl, and I've got ~ 2 months to fully implement and get working with external providers, so, I'd rather not learn Java at this stage...

      --
      geek. lawyer.
    2. Re:What books for NON-JAVA web services? by monsterzero2003 · · Score: 2, Informative
      O'Reilly "Programming Web Services with XML-RPC" is a pretty good starter. It has php, python, perl chapters in addition to Java.

      I know in some eyes XML-RPC is looked at the idiot cousin of SOAP but it works and in my opinion is a lot easier. (I believe Redhat uses it as part of their "up2date" software updating facility). Particularly nice is being able to write the XML-RPC server in Python (or any of the other supported languages) while accessing it via a php client (though you can do the XML-RPC server in php too). Also - Wrox's Professional PHP4 XML (misleading name somewhat) has extensive chapters and examples of using XML-RPC with PHP. And code is available via their web site too (as is the above O'Reily book)

      If the "XML" part of "XML-RPC" fills you with trepidation you should know that you the XML is really all under the covers and there is no need to create dtd's, etc.

      A good place to get the started with XML-RPC first visit www.xml-rpc.com.

  11. Well, I now know what not to buy by kfg · · Score: 2, Insightful

    "I expected this book to be similar to other "Nutshell" books that I like and am familiar with:
    a very accurate and concise description of the domain, followed by a huge API reference."

    Which is exactly what I'm looking for when buying a Nutshell book and expect to get.

    "this book reads more like a tutorial"

    Which is precisely what I don't want when buying a Nutshell book.

    Thanks for the review, you may have saved me grave diappointment.

    KFG

  12. Ahem. by American+AC+in+Paris · · Score: 4, Insightful
    Surprisingly many people have absolutely wrong ideas about Web Services. I think that the hype and perceived simplicity of everything having to do with the Web are to blame. Well, that, and the wide-spread 'confidence through ignorance' among us.

    Y'know, Web Services may--may--be an absolutely wonderful thing, but this review has done slightly less than nothing to convince me otherwise. I'll readily admit that I look askance at Web Services because all I read or hear about them comes from four-color glossies loaded with as many new acronyms as hyperbolic business-speak. I will admit that I know next to nothing about these services from the technical standpoint, and I will further acknowledge that if I were to read these books, I could very well be won over by them.

    That said, this review did absolutely nothing to make me want to pick these books up. The main body of your review consists of bulleted list of acronyms that does little more than define them by using other, more commonly recognized acronyms. You then go on to tell us that it's a good book without giving us any reasons beyond a nebulous "the author dedicates enormous effort to showing intricate but very relevant technical details without obscuring the big picture". Well, gosh, that sums up just about any technical manual worth it's salt, man! What makes this one special? What about this book is going to fix the "wrong ideas" I have about Web Services?

    You talk about how the book contains no hype (I do hope you appreciate the irony of ending that sentence with an exclamation point, by the way.) You then close the review with "Judging by the hype and money being spent on it by the leading powerhouses, it is going to be very prolific and important technology in the near future." If you're trying to correct misconceptions about Web Services, I can only assume that you want more and more technical people to view Web Services as the Fad-Of-The-Week for PHB's worldwide and not a useful, powerful technology.

    This isn't a review, it's an outline of the book, and a rambling one, at that. Tell us what makes it a good book, dammit! Tell us why we're wrong about Web Services being little more than marketing fluff and flashy buzzwords!

    --

    Obliteracy: Words with explosions

    1. Re:Ahem. by sdcharle · · Score: 2, Funny
      Booo!

      Bring back the kid with the toad in a jar, I liked his show and tell better.

      You are so right, though, this review reminds me so much of kids in 5th grade copying the back cover text of a book they read, then submitting it as a book report.

  13. Re:Question by pmz · · Score: 4, Funny

    Does anyone know if they cover JAX-OFF?

    No. This API has not been shown to scale well into a team environment making it unsuitable for "enterprise" deployments. It also has problems where projects that use it tend to be exhausted before fully satisfying the requirements. Even further diminishing this API's future is its tendancy to get very little real work done in spite of its network bandwidth consumption.

    JAX-OFF is slated to be replaced, soon, by a better ground-up implementation of the Java API for Occidental Rectilinear Groupware Interfacing. This new API promises much better scaling potential, where any number of people and businesses can join into the web services phenomenon. It also has a very low learning curve, where practically anyone is capable of making money with it.

  14. Re:the real name of this book. by Glock27 · · Score: 2, Informative
    well how much of that is due to businesses wasting bandwidth on XML and SOAP?

    I have two words for you: compress and encrypt. :-)

    Business-critical XML should be sent over SSL or something similar...

    --
    Galileo: "The Earth revolves around the Sun!"
    Score: -1 100% Flamebait
  15. Ahh, found it. by IPFreely · · Score: 3, Insightful
    At the end of the last line of the review:

    Want to know more? -- Read the book!<nobr>

    That is causing the following horizintal rule and "buy it here" line to expand the page. How rude.

    --
    There is nothing so silly as other peoples traditions, and nothing so sacred as our own.
  16. Review template by ENOENT · · Score: 4, Funny

    O'Reilly's latest offering, FOO in a Nutshell, dispells many of the myths surrounding FOO and shows it to be a worthy contender in the BAR arena. Even though BAZ, QUX, and QUUX have been proposed as alternatives to FOO, only FOO provides the full power of SNERGLE to MUMBLE programmers.

    Chapter 1 is the introduction, chapters 2-73 are the stuff that comes after the introduction, and then comes the index, which has some really good stuff in it.

    So, in short, FOO in a Nutshell is better than anything else at explaining why you should incorporate DWEEZIL into your FLARK.

    Rating: 9.5/10

    --
    That's "Mr. Soulless Automaton" to you, Bub.
  17. Clueless reviewer and clueless editor by Corporate+Gadfly · · Score: 2, Informative

    Nice job with the line breaks there, buddy!! Because of your mistake (and the editor's) anyone who is really interested in this topic will have to suffer through horizontal scrolling (big deterrant).

    Don't the editors have a preview button (or common sense for fsck's sake)?

    --
    Corporate Gadfly
    Jonathan Archer: the most beaten up Enterprise captain in Star Trek history
  18. Un mentioned Technologies. by JustAnotherReader · · Score: 2, Informative
    A couple of other technologies that people considering web services should look into are:
    • Castor is a free tool which allows you to convert XML to Java objects and back. If you build a servlet that returns the XML string that represents an object then you essentially have a Web Service.
    • Apache Axis a free implementation of SOAP and web services. Oddly enough, if you browse the source code of Axis you'll see Castor packages.
    Just two technologies that wern't mentioned in the article. You might find them more useful than the ones that were.
  19. Good book, but slanted toward JWSDP use by Anonymous Coward · · Score: 2, Insightful
    I must say that I've purchased this book a few weeks ago and that it does cover all of the JAX* technologies really well. The only negative that I'd have to say about the book is that it utilizes the J2EE 1.4 tools heavily. I don't know how many of you are working with a J2EE 1.4 app server out there? There are several problems with Sun's wscompile script:
    • For the -wsdl2java option there isn't any documented way to set an http-proxy host (I think my workaround was to call after calling Ant's setproxy target first and then calling wscompile in an Ant target)
    • the "config.xml" documentation or even the DTD can't be found anywhere!
    Sun did a poor job of making the whole web services creation easy (ugh! .Net has the edge here). I found Apache's Axis web services kit much more easier to use. If you're looking to get started quickly and you're an experienced Java developer - this is the book for you!