Changeset 9507
- Timestamp:
- 2005-03-30T14:19:39+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/SOAPServerLocalsite.java
r8081 r9507 20 20 21 21 import org.greenstone.gsdl3.core.*; 22 import org.greenstone.gsdl3.util.GSXML; 22 23 import org.w3c.dom.Element; 23 24 import java.io.File; … … 35 36 36 37 public class SOAPServerLocalsite 37 implements ModuleInterface {38 38 //implements ModuleInterface { 39 { 39 40 private String config_file_name = "SOAPServer.cfg"; 40 41 … … 68 69 69 70 /** Process a String request */ 70 public String process(String xml_in) {71 return mr_.process(xml_in);71 // public String process(String xml_in) { 72 // return mr_.process(xml_in); 72 73 73 }74 // } 74 75 75 /** Process an Element request */ 76 public Element process(Element xml_in) { 77 return mr_.process(xml_in); 76 // /** Process an Element request */ 77 // public Element process(Element xml_in) { 78 // return mr_.process(xml_in); 79 // } 80 81 public Element [] process (Element [] xml_in) { 82 Element [] result = new Element[xml_in.length]; 83 for (int i=0; i<xml_in.length; i++) { 84 Element req = xml_in[i]; 85 // get rid of the obligatory namespace that axis needs 86 String tag_name = req.getTagName(); 87 String namespace=""; 88 if (tag_name.indexOf(':')!= -1) { 89 System.err.println("old tag name="+tag_name); 90 namespace = tag_name.substring(0, tag_name.indexOf(':')); 91 tag_name = tag_name.substring(tag_name.indexOf(':')+1); 92 System.err.println("new tag name="+tag_name); 93 94 } 95 Element new_req = GSXML.duplicateWithNewName(req.getOwnerDocument(), req, tag_name, true); 96 Element r = mr_.process(new_req); 97 // add the namespace back on 98 //Element new_res = r; 99 //if (!namespace.equals("")) { 100 // new_res = GSXML.duplicateWithNewName(r.getOwnerDocument(), r, namespace+r.getTagName(), true); 101 //} 102 result[i] = r; 103 } 104 return result; 78 105 } 79 106
Note:
See TracChangeset
for help on using the changeset viewer.