package com.javahonk;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

@WebService(name = "CalculateInterface", targetNamespace = "http://javahonk.com/")
public interface CalculateInterface {

    @WebMethod(operationName = "calculateSum", action = "urn:CalculateSum")
    @RequestWrapper(className = "com.javahonk.jaxws.CalculateSum", localName = "calculateSum", targetNamespace = "http://javahonk.com/")
    @ResponseWrapper(className = "com.javahonk.jaxws.CalculateSumResponse", localName = "calculateSumResponse", targetNamespace = "http://javahonk.com/")
    @WebResult(name = "return")
    public Integer calculateSum(@WebParam(name = "arg0") int i, @WebParam(name = "arg1") int j);

    @WebMethod(operationName = "multiplyNumber", action = "urn:MultiplyNumber")
    @RequestWrapper(className = "com.javahonk.jaxws.MultiplyNumber", localName = "multiplyNumber", targetNamespace = "http://javahonk.com/")
    @ResponseWrapper(className = "com.javahonk.jaxws.MultiplyNumberResponse", localName = "multiplyNumberResponse", targetNamespace = "http://javahonk.com/")
    @WebResult(name = "return")
    public Integer multiplyNumber(@WebParam(name = "arg0") int i, @WebParam(name = "arg1") int j);

    @WebMethod(operationName = "divideNumber", action = "urn:DivideNumber")
    @RequestWrapper(className = "com.javahonk.jaxws.DivideNumber", localName = "divideNumber", targetNamespace = "http://javahonk.com/")
    @ResponseWrapper(className = "com.javahonk.jaxws.DivideNumberResponse", localName = "divideNumberResponse", targetNamespace = "http://javahonk.com/")
    @WebResult(name = "return")
    public Integer divideNumber(@WebParam(name = "arg0") int i, @WebParam(name = "arg1") int j);

}