package org.kantega.reststop.helloworld;

import javax.jws.WebService;

/**
 *
 */
@WebService
public class HelloService {

    public String sayHello() {
        return "Hei";
    }
}

package org.kantega.reststop.helloworld;

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

/**
 *
 */
@WebService(targetNamespace = "http://reststop.kantega.org/ws/hello-1.0")
public class HelloService {

    @WebMethod(operationName = "greet")
    @WebResult(name = "messageResult")
    public String siHei(@WebParam(name = "receiver") String melding, @WebParam(name = "language") String lang) {
        return "Hei: " + melding;
    }
}

Annotate HelloService so it produces a better WSDL