amountvalidwebservice.java

来自「SOA」· Java 代码 · 共 31 行

JAVA
31
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package cn.edu.sysu.tute;import javax.ejb.EJB;import javax.ejb.Stateless;import javax.jws.WebService;import org.netbeans.j2ee.wsdl.ejbbanking.amountvalidwsdl.AmountValidWSDLPortType;/** * * @author Levi Wong */@WebService(serviceName = "amountValidWSDLService", portName = "amountValidWSDLPort", endpointInterface = "org.netbeans.j2ee.wsdl.ejbbanking.amountvalidwsdl.AmountValidWSDLPortType", targetNamespace = "http://j2ee.netbeans.org/wsdl/ejbBanking/amountValidWSDL", wsdlLocation = "META-INF/wsdl/AmountValidWebService/amountValidWSDLWrapper.wsdl")@Statelesspublic class AmountValidWebService implements AmountValidWSDLPortType {    @EJB    private AmountValidSessionLocal amountValidSessionBean;    public com.sun.demo.openesb.types.amountisvalidresponsemsg.AmountIsValidResponseMsg amountValidWSDLOperation(com.sun.demo.openesb.types.amountisvalidrequestmsg.AmountIsValidRequestMsg amountInput) {        com.sun.demo.openesb.types.amountisvalidresponsemsg.AmountIsValidResponseMsg response = new com.sun.demo.openesb.types.amountisvalidresponsemsg.AmountIsValidResponseMsg();        int opAmount = amountInput.getOperateAmount();        response.setIsAmountValid(amountValidSessionBean.amountValid(opAmount));        return response;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?