withdrawoperatewebservice.java

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

JAVA
36
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?