2 ~ Licensed to the Apache Software Foundation (ASF) under one
3 ~ or more contributor license agreements. See the NOTICE file
4 ~ distributed with this work for additional information
5 ~ regarding copyright ownership. The ASF licenses this file
6 ~ to you under the Apache License, Version 2.0 (the
7 ~ "License"); you may not use this file except in compliance
8 ~ with the License. You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing,
13 ~ software distributed under the License is distributed on an
14 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ~ KIND, either express or implied. See the License for the
16 ~ specific language governing permissions and limitations
20 <%@ page import="org.apache.axis2.Constants,
21 org.apache.axis2.description.AxisOperation,
22 org.apache.axis2.description.AxisService,
23 org.apache.axis2.description.Parameter,
26 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
27 <jsp:include page="include/adminheader.jsp"></jsp:include>
28 <h1>Edit Service Parameters</h1>
29 <form method="get" name="editServicepara" action="axis2-admin/editServicepara">
31 AxisService axisService = (AxisService)request.getSession().
32 getAttribute(Constants.SERVICE);
33 if(axisService != null ){
34 %> <table width="100%">
39 String servicName = axisService.getName();
40 %>Service Parameters :: <%=servicName%>
44 <td colspan="2" ><input style="display:none" name="axisService" value="<%=servicName%>"></td>
47 ArrayList service_para = axisService.getParameters();
48 for (int i = 0; i < service_para.size(); i++) {
49 Parameter parameter = (Parameter) service_para.get(i);
50 if (parameter.getParameterType()==Parameter.OM_PARAMETER) {
55 <td><%=parameter.getName()%></td>
56 <td><input type="text" value="<%=parameter.getValue()%>"
57 name="<%=(servicName + "_" + parameter.getName())%>" size="50">
62 Iterator operations = axisService.getOperations();
63 if(operations.hasNext()){
66 <td> </td>
67 <td> </td>
70 <td colspan="2" > <b>Operation Paramaters :: </b>
77 operations = axisService.getOperations();
78 while (operations.hasNext()) {
79 AxisOperation axisOperation = (AxisOperation) operations.next();
80 String operationName = axisOperation.getName().getLocalPart();
83 <td colspan="2" > </td>
86 <td colspan="2" ><b>Operation : <%=operationName%></b></td>
89 op_paras = axisOperation.getParameters();
90 for (int i = 0; i < op_paras.size(); i++) {
91 Parameter parameter = (Parameter) op_paras.get(i);
92 if (parameter.getParameterType()==Parameter.OM_PARAMETER) {
97 <td><%=parameter.getName()%></td>
98 <td><input type="text" value="<%=parameter.getValue()%>"
99 name="<%=(operationName + "_" + parameter.getName())%>" size="50">
109 <input name="changePara" type="submit" value=" Change " >
116 <p><%=request.getAttribute("status")%></p>
122 <jsp:include page="include/adminfooter.inc"></jsp:include>