Changeset 16759 for other-projects


Ignore:
Timestamp:
2008-08-13T14:33:00+12:00 (16 years 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.

Location:
other-projects/trunk/gs3-webservices-democlient/src/GS3DemoClient/org/greenstone/gs3services
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.