Hi Nilani
Assuming your soapClient has class dk.defxws.fedoragsearch.client.SOAPClient
then before soapClient.gfindObjects(...) do
System.setProperty("fedoragsearch.fgsUserName", username);
System.setProperty("fedoragsearch.fgsPassword", password);
Regards,
Gert
From: Nilani Ganeshwaran [mailto:[email protected]]
Sent: 28. april 2009 16:05
To: Gert Schmeltz Pedersen
Subject: RE: [Fedora-commons-developers] gsearch authentication
Hi Gert
Thank you for your reply. It worked. BUT
I have built a small struts application which access the gsearch; I can't see
how to pass username and password.
public String gfindObjects(String query, int hitPageSize,String resultPageXslt
) throws Exception{
String restUrl = "http://" + host + ":" + port +
"/fedoragsearch/services/FgsOperations";
String sortFields = null;
int snippetsMax=10;
int fieldMaxLength =200;
int hitPageStart=1;
//int hitPageSize=20;
String indexName ="BasicIndex";
String sort = "score";
String order = "desc";
//String indexName = sort + ' ' + order;
String result = soapClient.gfindObjects(restUrl, query, indexName,
hitPageStart, hitPageSize, snippetsMax, fieldMaxLength, sortFields,
resultPageXslt);
return result;
}
I have copied my coding for you.
Regards
Nilani
******************************************************************
Nilani Ganeshwaran
Institutional Repository Technical Support and Software Developer
Tel: +44 (0)161 275 8728 (internal x58728)
Email: [email protected]
Web: http://www.manchester.ac.uk/institutionalrepositoryproject
*******************************************************************
________________________________
From: Gert Schmeltz Pedersen [mailto:[email protected]]
Sent: 21 April 2009 10:10
To: NilaniGaneshwaran; [email protected]
Subject: RE: [Fedora-commons-developers] gsearch authentication
Hi Nilani
Rename the file ...tomcat/webapps/fedoragsearch/WEB-INF/web-withAuthN.xml to
.../web.xml
See the configuration section at fedoragsearch/index.html#config second bullet.
Let me hear, if you have problems with it.
Regards,
Gert
From: Nilani Ganeshwaran [mailto:[email protected]]
Sent: 17. april 2009 12:42
To: [email protected]
Subject: [Fedora-commons-developers] gsearch authentication
Hi
Could any one please guide me to secure fedora gsearch by authentication?
Current fedora requires authentication but can access gsearch without
authentication.
Regards
Nilani
********************************************************
Nilani Ganeshwaran
Institutional Repository Technical Support and Software Developer
Red 1.5 The John Rylands University Library
The University of Manchester, Manchester M13 9PP, UK
Tel: +44 (0)161 275 8728 (internal x58728)
Email: [email protected]
Web: http://www.manchester.ac.uk/institutionalrepositoryproject
********************************************************
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers