[Geoportal-support] CSW simple authentication for transaction insert operation
Brought to you by:
mhogeweg
From: <kie...@gm...> - 2012-02-21 10:26:23
|
Hello geoportal support, we installed a Geoportal Server and configured it for simple authentication. Next, we attempted to insert a MD_Metadata xml via http post applying the Transaction.Insert operation of the CSW. The CSW returned a http 401: 21.02.2012 09:11:45 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge INFO: No credentials available for BASIC 'Geoportal'@freshmon:8082 Exception in thread "main" java.net.ConnectException: http status code 401 Do you know how to login / logout? I could give the example, how it works with the GeoNetwork CSW. There we send a http post with unsername and password to a special url (http://freshmon/geonetwork/srv/en/xml.user.login), do the Transaction.Insert http post (to url: http://freshmon/geonetwork/srv/en/csw) and finally logout to a certain logout uri (http://freshmon/geonetwork/srv/en/xml.user.logout). How does this authentication stuff works for Geoportal Server CSW? We are NOT interested in doing it manually by using the Webapp-GUI, but want to do it programmatically using our own simple post client. Kind regards, Kieran -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de |