-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You can pass authentication credentials to retrieve datastreams and disseminations in the XSLT by using GSearch extension functions instead of using the built-in XPath/XSLT functions. For example, the signature of getDatastreamText is:
getDatastreamText(String pid, String repositoryName, String dsId, String fedoraSoap, String fedoraUser, String fedoraPass, String trustStorePath, String trustStorePass) and getDatastreamTextFromTika(), getDatastreamMetadataFromTika(), getDisseminationText(), etc. look very similar. You can see where you could insert credentials as part of the retrieval. - --- A. Soroka Software & Systems Engineering :: Online Library Environment the University of Virginia Library On Mar 12, 2012, at 9:47 AM, Remi Malessa wrote: > Hi > > I have a 2.4.1 Fedora G Search installation and I have replaced > foxmlToSolr.xslt with my own. > Inside the xslt file I make a call to obtain METS datastream: > http://login:password@localhost:8080/fedora/objects/PID/datastreams/METS/content > Unfortunately I get HTTP code 401 for that URL. > > Is it possible to make G Search or Fedora to serve request like this > from the xslt ? > > Cheers > Remi > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Fedora-commons-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJPXhmqAAoJEATpPYSyaoIkxgsH/iDEqXUz76g4LDQYp7c4xnoK 9JGHmQsxFtVyhX7O/iKB2iEZjZL6YEHKFO5/uF26W9dTkhgZEzRmiOac2AUOzaH4 aaKXm49lMAUmmVkNNqDiWYpj/b2TF0cOGSlDCcaOOay+0bziaTbnCbbHdOrkwYw2 Utt2OXGeZ+AgjKWfVMFX1DPynrLIvH/wLDdHCI5fTl/dsRhJJkQpCb+yEuc0YfxZ dV0VWHT0NOkpESbvL4va+Zub27cWtJI/JOuO4/I9QPMmWffGdf813N0PLvzuspWg GRxlXaiAbDzSovjZ6sfV5QqAPRN2JMhJANn0W4vttKl/zVVShNMDC+8cqGKxjEM= =ntyg -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
