Hi all,
I am developing an Java application (not Servlet) that calls the
*mef.import* service by GeoNetwork to publish metadata.
The Developer Manual specifies that, to invoke those xml services like
*mef.imort*and *metadata.insert* user authentication is required. The manual
says that JSESSIONID cookie will be set and returned back to the client
uopon successful request by a POST/GET call.
"The authentication process sets JSESSIONID cookie with the authentication
token that should be send in the services that need authentication to be
invoqued. Otherwise, a Service not allowed exception will be returned by
these services."
However, I can only receive a response despite successful authentication
that is:
*<?xml version="1.0" encoding="UTF-8"?>
<ok />*
No JSESSIONID is received.
Because of this, I cannot continue to invoke mef.import service on
GeoNetwork as it always returned an error saying *Service not allowed*.
According to Developer Manual, it is caused by authentication failure.
Was I wrong in calling these services or was there anything I missed or
mistaken? Thanks for any tips!
Cheers, Alex
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-JSESSIONID-from-xml-user-login-service-tp6995137p6995137.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.