How to setup your own Server

If you want to setup your own server, maybe because ours at http://geometa.hsr.ch/indoorwps/ is down, here is how you would do that.
The server is a grails application, so you need groovy and grails installed on your machine. You will also need a PostgreSQL server with the Postgis extension.

1. As a first step, check out the newest source of http://dev.ifs.hsr.ch/indoorwps/browser/IndoorWPSCommunityServer/
2. You need to configure the database-connection, so open IndoorWPSCommunityServer/grails-app/conf/DataSource.groovy in an editor. The confugoration should look something like this:

dataSource {
    pooled = true
    driverClassName = "org.postgresql.Driver" 
    username = "yourUser" 
    password = "theSecretPassword" 
    dialect = "org.hibernatespatial.postgis.PostgisDialect" 
}
hibernate {
    cache.use_second_level_cache=true
    cache.use_query_cache=true
    cache.provider_class='net.sf.ehcache.hibernate.EhCacheProvider'
}
// environment specific settings
environments {
    development {
        dataSource {
            dbCreate = "create" // one of 'create', 'create-drop','update'
            url = "jdbc:postgresql://theURLToYourServer/indoorwps-development" 
        }
    }
    test {
        dataSource {
            dbCreate = "create-drop" 
            url = "jdbc:postgresql://theURLToYourServer/indoorwps-test" 
        }
    }
    production {
        dataSource {
            dbCreate = "update" 
            url = "jdbc:postgresql://theURLToYourServer/indoorwps-production" 
        }
    }
}

3. next, you need to create a war file, which can be deployed on your servlet-container of choise. To do this, call "grails war" in the project-root. This should create a war file in the /target dir.
4. Deploy this warfile to your servlet-container. Congratulations, your own !CommunityServer is up and running.

You could now change your IndoorWPSPcLocator and other applications that communicate with a webserveice to point to your server. In case of the IndoorWPSPcLocator, you need to look at the iwps_config.xml, the IndoorWPSAndroid has this property in the source, so you would need to recompile this library to work with another webservice. Take a look at ch.hsr.indoorwps.data.WsClient.