Changeset 8738 for trunk/gsdl3/packages/gsdl-as/src/org/greenstone/gsdlas/GreenstoneCommunicator.java
- Timestamp:
- 2004-12-06T11:44:03+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/packages/gsdl-as/src/org/greenstone/gsdlas/GreenstoneCommunicator.java
r8720 r8738 9 9 package org.greenstone.gsdlas; 10 10 11 import java.io.OutputStreamWriter;12 11 import java.net.URL; 13 12 import java.util.*; … … 18 17 import org.apache.soap.Fault; 19 18 import org.apache.soap.rpc.*; 20 import org.apache.soap.util.xml.DOM2Writer;21 19 import org.w3c.dom.*; 22 20 … … 44 42 } 45 43 44 /** 45 * 46 */ 47 public GreenstoneCommunicator() { 48 49 // TODO Auto-generated constructor stub 50 } 51 52 public String[] getHostNames() { 53 return new String[] {"localhost"}; 54 } 55 46 56 public String[] getCollectionNames() throws Exception { 47 57 Document document = createSubsetDescriptionRequest("", "collectionList"); … … 56 66 result[i] = name.getNodeValue(); 57 67 } 68 69 System.out.println(Arrays.toString(result)); 58 70 59 71 return result; … … 139 151 private Element sendToGreenstone(Element message) throws Exception { 140 152 Call call = new Call(); 141 call.setTargetObjectURI(" teevee.localsite");153 call.setTargetObjectURI("localsite"); 142 154 call.setMethodName("process"); 143 155 // set Encoding Style to use literal XML
Note:
See TracChangeset
for help on using the changeset viewer.