• @XmlJavaTypeAdapter

    Comments Off on @XmlJavaTypeAdapter
    August 14, 2008 /  Java

    If you are having @XmlJavaTypeAdapter problems see this forum post. Just a couple of snippets below from the problem/solution, see the forum post for full details (including source code examples) and resolution:

    public Receipt placeOrder(@WebParam(name = “webOrder”, targetNamespace = “com.javacoda.jaxws.order”)Order order);

    however wsgen then errors with java.security.PrivilegedActionException: javax.xml.bind.JAXBException: com.javacoda.jaxws.order.TransitionalOrder is not known to this context.

    OK, from some more hunting & digging, I’ve solved it :-)

    I need to add the following annotation to my order class as follows, so the JAXBContext knows about it.

    public class Order {

    Might help someone out who is having a similar problem.

  • JAX-WS Book

    Comments Off on JAX-WS Book
    August 14, 2008 /  Development Books, Java

    Not for inexperienced Java Developers, but really the only decent JAX-WS book I could find. It covers most of the topic pretty well, but there are still some things you’ll need to find out yourself (most of which you can probably find in my tutorial). The chapter on his own framework can be missed out, but the rest is pretty good stuff.

    View it on Amazon.

  • JAX-WS Tutorial

    Comments Off on JAX-WS Tutorial
    August 14, 2008 /  Java

    I got fed up with trying to find JAX-WS resources on the web that didn’t all go along the lines of ‘right-click in Netbeans to create …’ – nothing against Netbeans, but I want to learn how to use a technology, not how to use an IDE. So I wrote a JAX-WS tutorial which I presented to our Java Development Team at work.

    You can download it here.

    The tutorial is very simple, but will teach you how to do most things you need to in JAX-WS. It went down pretty well with the team at work and we have developed a number of new services using JAX-WS and everyone is now fairly competent with the technology.

    There are 9 lessons in total. All building on the same very simple example. Inside the first lesson folder (Jax-ws_1) there is a file named tutorial_contents.txt, this file list all of the lessons. Inside each lesson folder is a file called lesson.txt which tells you the changes made to server, client or both and which classes to look at in this lesson. It should be fairly simple for any reasonably competent Java developer to follow.


    1. Basic JaxWs service with defaults & simple client.
    2. Generated client.
    3. Annotations & mapping.
    4. XmlJavaAdapters
    5. SOAPFaults. Handlers.
    6. JaxWsPortFactory with timeouts.
    7. Asynchronous calls.
    8. Spring injection
    9. Field/Property mapping quick examples. Marshalling tests.
  • Well here I am

    Comments Off on Well here I am
    August 13, 2008 /  Java, Music, Ruby, Software Development

    My first post on my new blog. What will be here? Well, coming soon I hope to present:

    • My JAX-WS Tutorial
    • Some info on Ruby DSLs
    • Some stuff about music I like, Nick Cave, Bon Iver, Tom Waits & more
    • Some reviews of albums I like and some links to some great new bands – like 25 Men