Changeset 15331


Ignore:
Timestamp:
05/02/08 12:30:12 (13 years ago)
Author:
ak19
Message:

Corrected method initSearchFunctionality() and changed property name from gSearch.WsdlURL to gsearch.wsdlURL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/trunk/gs3-webservices-democlient/src/GS3Fedora/org/greenstone/fedora/services/FedoraGS3Connection.java

    r15222 r15331  
    182182     * @param properties is the Properties Map loaded from a properties file
    183183     * (if there was any) which specifies such things as host and port of the
    184      * FedoraServer, but can also specify the property "gSearchWsdlURL".
    185      * At the end of this method, properties' "gSearchWsdlURL" will be set
     184     * FedoraServer, but can also specify the property "gsearch.wsdlURL".
     185     * At the end of this method, properties' "gsearch.wsdlURL" will be set
    186186     * to whatever the final value of this.gSearchWSDLURL is.
    187187    */
     
    196196        // where http://localhost:8080/fedora is the baseURL of fedora
    197197        this.gSearchWSDLURL = properties.getProperty(
    198                 "gSearchWsdlURL", this.baseURL+gSearchWSDLSuffix);
     198                "gsearch.wsdlURL", this.baseURL+gSearchWSDLSuffix);
    199199        // Set the property to whatever this.gSearchWSDLURL is now,
    200200        // so that it will be written out to the properties file again
    201         properties.setProperty("gSearchWsdlURL", this.gSearchWSDLURL);
     201        properties.setProperty("gsearch.wsdlURL", this.gSearchWSDLURL);
    202202        // Create a connection to FedoraGSearch's web services:
    203203        initSearchFunctionality();
     
    231231            // Services now supported are everything except Query services
    232232            serviceNames = new String[countOfNonQueryServices];
     233            int j = 0;
    233234            for(int i = 0; i < SERVICES.length; i++) {
    234235                if(!SERVICES[i].toLowerCase().contains("query")) {
    235                     serviceNames[i] = SERVICES[i];
     236                    serviceNames[j] = SERVICES[i];
     237                    j++; // valid serviceName, so increment serviceName counter
    236238                }
    237239                 
Note: See TracChangeset for help on using the changeset viewer.