greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 16759

Show
Ignore:
Timestamp:
2008-08-13 14:33:00 (3 months ago)
Author:
ak19
Message:

Since greenstone3 core ModuleInterface?.process() now takes a Node and RETURNS a Node, it calls XMLConverter.nodeToElement() to convert the Node back into the Element version of the response.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • other-projects/trunk/gs3-webservices-democlient/src/GS3DemoClient/org/greenstone/gs3services/AdminSOAPServer.java

    r16755 r16759  
    1414import org.w3c.dom.Document; 
    1515import org.w3c.dom.Element; 
     16import org.w3c.dom.Node; 
    1617 
    1718/** 
     
    261262                // Let the messagerouter process the request message and get the response 
    262263                Element response = converter.nodeToElement(mr.process(message)); 
    263                         // won't be null, MR always returns some XML response 
    264                  
     264                        // won't be null except when Node returned is not an element 
     265                        // otherwise, MR always returns some response 
     266 
    265267                // Return it as a String formatted for display 
    266268                return this.converter.getPrettyString(response); 
  • other-projects/trunk/gs3-webservices-democlient/src/GS3DemoClient/org/greenstone/gs3services/QBRSOAPServer.java

    r16755 r16759  
    3636import org.w3c.dom.Element; 
    3737import org.w3c.dom.NodeList; 
     38import org.w3c.dom.Node; 
    3839 
    3940import org.greenstone.gsdl3.core.MessageRouter; 
     
    728729                // Let the messagerouter process the request message and get the response 
    729730                Element response = converter.nodeToElement(mr.process(message)); 
    730                 // won't be null, MR always returns some response 
    731                  
     731                     // won't be null except when Node returned is not an element 
     732                     // otherwise, MR always returns some response 
     733 
    732734                // Return it as a String formatted for display 
    733735                return this.converter.getPrettyString(response);