Archive for November, 2008

…and I’m back into World of Warcraft.  I could not resist the urge to play once the date for Wrath of the Lich King was announced.  I have an undead priest (my first priest character) that I am enjoying very much.  And yes, the damn game is still like crack.

One thing that changed during my time away was that you get your mount at level 30 now - makes questing in Stranglethorn Vale and Desolace very different.

Comments No Comments »

I recently have been tasked with writing Java code to insert records into a SharePoint list, and I have been mildly successful, so I thought I’d share some of my experiences.

First, the important thing to know is that SharePoint’s API to stuff that’s not .NET is through Web Services.  SharePoint exposes a large number of Web Services for doing stuff with their tool, but for this particular assignment there were two of primary interest:  Lists and Views.

I’m a CXF guy (Axis2 works the same way), so to get started you get the WSDL, run WSDL2JAVA to generate a client and JAXB classes for the data types defined in the WSDL, and start going.

But here’s one part that really sucks:  The schema in the WSDL defines many of the objects as type ANY, so when you access their JAXB objects, they contain exactly one member called “content” of type List<Object>.  That’s right, you get back DOM nodes which you get to parse yourself.  If you thought you’d get some rich object model for marshalling and unmarshalling your requests to the web service, think again.   And not only do you get back lists of nodes as results — you get to build up a DOM for your requests too.

As I get more done, I will add more.  Stay tuned.

Comments 2 Comments »