• Testing XFire with TestNG

    So after an entire weekend of frustration with tutorials such as http://xfire.codehaus.org/JSR+181+Annotations and http://docs.codehaus.org/pages/viewpage.action?pageId=44565 I think I have come up with a way to test XFire services deployed through Tomcat during my Maven build.
    So I created an annotated version of an Echo Service:
    package com.baselogic.service;

    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebResult;
    import javax.jws.WebService;
    import javax.jws.soap.SOAPBinding;

    @WebService(name = “EchoService”,
    targetNamespace = “http://service.baselogic.com”)
    public interface EchoService [...]