| <%@ page import="org.apache.axis2.Constants, |
| org.apache.axis2.description.AxisOperation, |
| org.apache.axis2.description.AxisService, |
| org.apache.axis2.description.Parameter, |
| java.util.ArrayList, |
| java.util.Collection"%> |
| <%@ page import="java.util.HashMap"%> |
| <%@ page import="java.util.Iterator"%> |
| <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
| <jsp:include page="include/adminheader.jsp"></jsp:include> |
| <h1>Edit Service Parameters</h1> |
| <form method="get" name="editServicepara" action="editServicepara"> |
| <% |
| AxisService axisService = (AxisService)request.getSession(). |
| getAttribute(Constants.SERVICE); |
| if(axisService != null ){ |
| %> <table width="100%"> |
| |
| <tr> |
| <td colspan="2" ><b> |
| <% |
| String servicName = axisService.getName(); |
| %>Service Parameters :: <%=servicName%> |
| </b></td> |
| </tr> |
| <tr> |
| <td colspan="2" ><input style="display:none" name="axisService" value="<%=servicName%>"></td> |
| </tr> |
| <% |
| ArrayList service_para = axisService.getParameters(); |
| for (int i = 0; i < service_para.size(); i++) { |
| Parameter parameter = (Parameter) service_para.get(i); |
| %> |
| <tr> |
| <td><%=parameter.getName()%></td> |
| <td><input type="text" value="<%=parameter.getValue()%>" |
| name="<%=(servicName + "_" + parameter.getName())%>" size="50"> |
| </td> |
| </tr> |
| <% |
| } |
| HashMap operations = axisService.getOperations(); |
| Collection ops = operations.values(); |
| if(ops.size() >0){ |
| %> |
| <tr> |
| <td> </td> |
| <td> </td> |
| </tr> |
| <tr> |
| <td colspan="2" > <b>Operation Paramaters :: </b> |
| </td> |
| </tr> |
| <% |
| } |
| |
| ArrayList op_paras ; |
| for (Iterator iterator = ops.iterator(); iterator.hasNext();) { |
| AxisOperation axisOperation = (AxisOperation) iterator.next(); |
| String operationName = axisOperation.getName().getLocalPart(); |
| %> |
| <tr> |
| <td colspan="2" > </td> |
| </tr> |
| <tr> |
| <td colspan="2" ><b>Operation : <%=operationName%></b></td> |
| </tr> |
| <% |
| op_paras = axisOperation.getParameters(); |
| for (int i = 0; i < op_paras.size(); i++) { |
| Parameter parameter = (Parameter) op_paras.get(i); |
| %> |
| <tr> |
| <td><%=parameter.getName()%></td> |
| <td><input type="text" value="<%=parameter.getValue()%>" |
| name="<%=(operationName + "_" + parameter.getName())%>" size="50"> |
| </td> |
| </tr> |
| <% |
| } |
| } |
| %> |
| <tr> |
| <td> </td> |
| <td> |
| <input name="changePara" type="submit" value=" Change " > |
| </td> |
| </tr> |
| </table> |
| <% |
| } |
| |
| %> |
| <form> |
| <jsp:include page="include/adminfooter.jsp"></jsp:include> |