📄 customeroperate.jsp
字号:
<%-- Document : Customeroperate Created on : 2009-4-6, 16:13:08 Author : Levi Wong--%><%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <h1>Hello World!</h1> <% String accountNum = request.getParameter("accountNum"); String accountPassword = request.getParameter("accountPassword"); int operateAmount = Integer.parseInt(request.getParameter("operateAmount")); String operateType = request.getParameter("OperateType"); %> <%-- start web service invocation --%><hr/> <% try { org.netbeans.j2ee.wsdl.bpbanking.customerwsdl.CustomerWSDLService service = new org.netbeans.j2ee.wsdl.bpbanking.customerwsdl.CustomerWSDLService(); org.netbeans.j2ee.wsdl.bpbanking.customerwsdl.CustomerWSDLPortType port = service.getCustomerWSDLPort(); // TODO initialize WS operation arguments here com.sun.demo.openesb.types.customerrequestmsg.CustomerRequestMsg customerInput = new com.sun.demo.openesb.types.customerrequestmsg.CustomerRequestMsg(); customerInput.setAccountNum(accountNum); customerInput.setAccountPassword(accountPassword); customerInput.setOperateAmount(operateAmount); customerInput.setOperateType(operateType); // TODO process result here com.sun.demo.openesb.types.customerresponsemsg.CustomerResponseMsg result = port.customerWSDLOperation(customerInput); out.println("Result = "+result); out.println("More Details: " + result.getStatus()); } catch (Exception ex) { // TODO handle custom exceptions here out.println(ex); } %> <%-- end web service invocation --%><hr/> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -