Wednesday, October 29, 2008

You call that documentation?

I'm trying to learn CXF and the folks on the CXF project aren't helping!

What is CXF and why on earth should you care? Good questions, grab a cup, make yourself comfortable and I'll tell you.

CXF is the result of the merger of the Xfire and Celtix Web Service frameworks. They now live under the Apache banner and in a prime example of why people think that geeks have no imagination, they called the merged product Celtix XFire, or CXF to it's friends. Woah ... fear those mad naming skills!

At the day job, I need to talk to a SOAP based web service and my co-worker who is project lead on the project suggested CXF. Another co-worker also said he liked CXF, so off to the Apache website I go.

When I look into using a tool, I like to check out the tutorials and follow a couple of them to help bootstrap myself into understanding. Normally, this is a pretty good approach, but after searching for "cxf tutorials" and trying a few out, I was about ready to start pulling my hair out. Where are the good tutorials?

I even tried the simple how-to article from the CXF manual, but it insisted that I needed a file called IntegerUserMapAdapter as an XmlJavaTypeAdapter, but then neither told me where to get it or even how to write my own. Arrgh, and without it, the code won't compile, let alone run. For that matter, most of the CXF documentation seems to assume that you know SOAP web service programming inside out and back to front. Well, I don't, so some tutorials that take you through the boring and mundane steps would be greatly appreciated.

I did finally find a tutorial on the IBM developerWorks website, but that doesn't cover any of the wsdl2java that I was hoping to learn about. At least it helped me create and consume a (very) simple SOAP web service.

Now I have a headache and I still have to preach this evening! So, I'm plowing through the Sun J2EE tutorial for JAX-WS seeing if they explain the wsdl2java thing at all.

And my wife wonders why I don't talk much about what I actually do at the office!

2 comments:

excoriatedhands said...

Within a CXF installation there are close on 40 samples which can be compiled and run. These can be found under the unimaginitvely titled "samples" directory.

Another place you can also find CXF documentation is here:

http://fusesource.com/products/enterprise-cxf/#documentation

Public Facing said...

I found your post by googling for "IntegerUserMapAdapter.class" -- the very problem you mentioned (3 years + later).

I have never figured out why so many people leave off the import statements in tutorials. At least the CXF people listed *most* of the jar files needed (just not the one with IntegerUserMapAdapter.class). Oh well