📄 withdrawoperatewebservice.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.withdrawoperatewsdl.WithdrawOperateWSDLPortType;/** * * @author Levi Wong */@WebService(serviceName = "withdrawOperateWSDLService", portName = "withdrawOperateWSDLPort", endpointInterface = "org.netbeans.j2ee.wsdl.ejbbanking.withdrawoperatewsdl.WithdrawOperateWSDLPortType", targetNamespace = "http://j2ee.netbeans.org/wsdl/ejbBanking/withdrawOperateWSDL", wsdlLocation = "META-INF/wsdl/WithdrawOperateWebService/withdrawOperateWSDLWrapper.wsdl")@Statelesspublic class WithdrawOperateWebService implements WithdrawOperateWSDLPortType { @EJB private WithdrawOperateSessionLocal withdrawOperateSessionBean; public com.sun.demo.openesb.types.withdrawresponsemsg.WithdrawResponseMsg withdrawOperateWSDLOperation(com.sun.demo.openesb.types.withdrawoperaterequestmsg.WithdrawOperateRequestMsg withdrawInput) { com.sun.demo.openesb.types.withdrawresponsemsg.WithdrawResponseMsg response = new com.sun.demo.openesb.types.withdrawresponsemsg.WithdrawResponseMsg(); String accountNum = withdrawInput.getAccountNum(); int withdrawAmount = withdrawInput.getWithdrawAmount(); String status = withdrawOperateSessionBean.operateWithdraw(accountNum, withdrawAmount); response.setStatus(status); response.setDecision("Process End"); return response; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -