Result.java Source code

Java tutorial

Introduction

Here is the source code for Result.java

Source

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;

enum Result {
    FAILURE;
}

class RequestStatus {

    private Result result;

    public RequestStatus() {
    }

    public RequestStatus(Result result) {
        this.result = result;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

}

class ReferenceDataSetList {

    private List<String> list;

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

}

@WebService
public class Main {

    @WebMethod
    public RequestStatus setReferenceData(ReferenceDataSetList refData) {
        return new RequestStatus(Result.FAILURE);
    }

    public static void main(String[] args) {
        Endpoint.publish("http://localhost:8084/service", new Main());
    }

}