📄 amountvalidwebservice.java
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -