Changeset 9825 for branches/ant-install-branch
- Timestamp:
- 2005-05-06T09:24:42+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/SOAPServer.java.in
r9506 r9825 17 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 18 */ 19 19 20 package org.greenstone.gsdl3; 20 21 21 22 import org.greenstone.gsdl3.core.*; 23 import org.greenstone.gsdl3.util.GSXML; 22 24 import org.w3c.dom.Element; 23 25 import java.io.File; … … 30 32 * 31 33 * @author <a href="mailto:[email protected]">Katherine Don</a> 32 * @version $Revision$33 34 * @see <a href="http://www.w3.org/TR/SOAP/">Simple Object Access Protocol (SOAP) 1.1 </a> 34 35 */ 35 36 36 public class SOAPServer@sitename@ 37 implements ModuleInterface { 38 37 public class SOAPServerlocalsite 38 { 39 39 private String config_file_name = "SOAPServer.cfg"; 40 40 … … 54 54 return; 55 55 } 56 String site_home=gsdl3_home+File.separator+"web"+File.separator+"sites"+File.separator+" @sitename@";56 String site_home=gsdl3_home+File.separator+"web"+File.separator+"sites"+File.separator+"localsite"; 57 57 58 58 File site_file = new File(site_home); … … 66 66 } 67 67 68 69 /** Process a String request */ 70 public String process(String xml_in) { 71 return mr_.process(xml_in); 72 73 } 74 75 /** Process an Element request */ 76 public Element process(Element xml_in) { 77 return mr_.process(xml_in); 68 public Element [] process (Element [] xml_in) { 69 Element [] result = new Element[xml_in.length]; 70 for (int i=0; i<xml_in.length; i++) { 71 Element req = xml_in[i]; 72 // get rid of the obligatory namespace that axis needs 73 String tag_name = req.getTagName(); 74 String namespace=""; 75 if (tag_name.indexOf(':')!= -1) { 76 namespace = tag_name.substring(0, tag_name.indexOf(':')); 77 tag_name = tag_name.substring(tag_name.indexOf(':')+1); 78 } 79 Element new_req = GSXML.duplicateWithNewName(req.getOwnerDocument(), req, tag_name, true); 80 Element r = mr_.process(new_req); 81 // add the namespace back on 82 //Element new_res = r; 83 //if (!namespace.equals("")) { 84 // new_res = GSXML.duplicateWithNewName(r.getOwnerDocument(), r, namespace+r.getTagName(), true); 85 //} 86 result[i] = r; 87 } 88 return result; 78 89 } 79 90 … … 92 103 return null; 93 104 } 94 105 95 106 } 96 107
Note:
See TracChangeset
for help on using the changeset viewer.