accountcreatewebservice.java

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

JAVA
33
字号
/* * 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.accountcreatewsdl.AccountCreateWSDLPortType;/** * * @author Levi Wong */@WebService(serviceName = "AccountCreateWSDLService", portName = "AccountCreateWSDLPort", endpointInterface = "org.netbeans.j2ee.wsdl.accountcreatewsdl.AccountCreateWSDLPortType", targetNamespace = "http://j2ee.netbeans.org/wsdl/AccountCreateWSDL", wsdlLocation = "META-INF/wsdl/AccountCreateWebService/AccountCreateWSDLWrapper.wsdl")@Statelesspublic class AccountCreateWebService implements AccountCreateWSDLPortType {    @EJB    private AccountCreateSessionLocal accountCreateSessionBean;    public com.sun.demo.openesb.types.accountcreateresponsemsg.AccountCreateResponseMsg accountCreateWSDLOperation(com.sun.demo.openesb.types.accountcreaterequestmsg.AccountCreateRequestMsg accountCreateInput) {        com.sun.demo.openesb.types.accountcreateresponsemsg.AccountCreateResponseMsg response = new com.sun.demo.openesb.types.accountcreateresponsemsg.AccountCreateResponseMsg();        String accountNum = accountCreateInput.getAccountNum();        String status = accountCreateSessionBean.createAccount(accountNum);        response.setStatus(status);        response.setDecision("Process End");        return response;    }}

⌨️ 快捷键说明

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