EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #05162


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Antwort: ISI WoK plugin configuration


OK,

I moved on with this, and it seems to be an authorisation problem.

I wrote a script that mimics the plugin's behaviour step-by-step (code follows) which moves on with authentication, but stops when the search is executed:

#!/usr/bin/perl -w -I /usr/share/eprints3/perl_lib

use SOAP::ISIWoK;
my $wok = SOAP::ISIWoK->new;
my $som = $wok->authenticate();
if ($som->fault) {
    die $som->faultstring;
}

$som = $wok->search("PY = 2006 and OG = (Cambridge)");
if ($som->fault) {
    die $som->faultstring;
}

so, the code after the query returns a fault and the error message is:

Not authorized for product: WWS at ./bin/mamalos/test_isi_lugin.pl line 12.

Does this mean that our institution needs a different type of account in order to use the search functionality of the API or is it something related to the plugin?

Thanks all in advance.


On 13/11/2015 12:15 μμ, George Mamalakis wrote:
Hi guys,

Any ideas on this? Because this functionality is a great asset for convincing the faculty to import their publications on their own...:)

Thanks in advance!

On 06/11/2015 06:52 μμ, George Mamalakis wrote:
Hi Martin,

I checked ISI-WoK from an Institution IP and still no luck. Then I tried your suggestion with no luck as well. The difference is that this time the returned messages have changed to:

Test run failed: 0 item(s) found before an error caused the test run to abort. Carefully check any warning messages before proceeding.

I am quite unsure if SOAP::ISIWoK has been correctly installed, since it returned lot's of errors. In particular this is how I forced installed it using cpan, because it wouldn't pass the tests (on a  Debian Jessie):

# cpan  -f -i SOAP::ISIWoK

Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 27 May 2015 15:17:02 GMT
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Fri, 06 Nov 2015 15:29:02 GMT
..............
  New CPAN.pm version (v2.10) available.
  [Currently running version is v2.05]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


..............................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Running install for module 'SOAP::ISIWoK'
Fetching with LWP:
http://www.cpan.org/authors/id/T/TI/TIMBRODY/SOAP-ISIWoK-3.01.tar.gz
Checksum for /root/.cpan/sources/authors/id/T/TI/TIMBRODY/SOAP-ISIWoK-3.01.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring T/TI/TIMBRODY/SOAP-ISIWoK-3.01.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for SOAP::ISIWoK
Writing MYMETA.yml and MYMETA.json
  TIMBRODY/SOAP-ISIWoK-3.01.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for T/TI/TIMBRODY/SOAP-ISIWoK-3.01.tar.gz
cp lib/SOAP/ISIWoK.pm blib/lib/SOAP/ISIWoK.pm
cp lib/SOAP/ISIWoK/Lite.pm blib/lib/SOAP/ISIWoK/Lite.pm
Manifying blib/man3/SOAP::ISIWoK.3pm
  TIMBRODY/SOAP-ISIWoK-3.01.tar.gz
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/SOAP-ISIWoK.t .. 3/10
#   Failed test 'authenticate (soap:Server): The given SOAPAction http://auth.cxf.wokmws.thomsonreuters.com\#authenticate does not match an operation.'
#   at t/SOAP-ISIWoK.t line 34.

#   Failed test 'search (soap:Server): The given SOAPAction http://woksearch.v3.wokmws.thomsonreuters.com\#search does not match an operation.'
#   at t/SOAP-ISIWoK.t line 38.

#   Failed test 'search with opts (soap:Server): The given SOAPAction http://woksearch.v3.wokmws.thomsonreuters.com\#search does not match an operation.'
#   at t/SOAP-ISIWoK.t line 50.
t/SOAP-ISIWoK.t .. 6/10
#   Failed test 'retrieve (soap:Client): Unmarshalling Error: cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'queryId', because the {nillable} property of 'queryId' is false. '
#   at t/SOAP-ISIWoK.t line 62.

#   Failed test 'missing record id'
#   at t/SOAP-ISIWoK.t line 63.

#   Failed test 'retrieveById (soap:Server): The given SOAPAction http://woksearch.v3.wokmws.thomsonreuters.com\#retrieveById does not match an operation.'
#   at t/SOAP-ISIWoK.t line 74.

#   Failed test 'citedReferences (soap:Server): The given SOAPAction http://woksearch.v3.wokmws.thomsonreuters.com\#citedReferences does not match an operation.'
#   at t/SOAP-ISIWoK.t line 79.
# Looks like you failed 7 tests of 10.
t/SOAP-ISIWoK.t .. Dubious, test returned 7 (wstat 1792, 0x700)
Failed 7/10 subtests

Test Summary Report
-------------------
t/SOAP-ISIWoK.t (Wstat: 1792 Tests: 10 Failed: 7)
  Failed tests:  3-9
  Non-zero exit status: 7
Files=1, Tests=10,  3 wallclock secs ( 0.05 usr  0.01 sys +  0.44 cusr  0.03 csys =  0.53 CPU)
Result: FAIL
Failed 1/1 test programs. 7/10 subtests failed.
Makefile:827: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 7
  TIMBRODY/SOAP-ISIWoK-3.01.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports TIMBRODY/SOAP-ISIWoK-3.01.tar.gz
Running make install
Installing /usr/local/share/perl/5.20.2/SOAP/ISIWoK.pm
Installing /usr/local/share/perl/5.20.2/SOAP/ISIWoK/Lite.pm
Installing /usr/local/man/man3/SOAP::ISIWoK.3pm
Appending installation info to /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/perllocal.pod
  TIMBRODY/SOAP-ISIWoK-3.01.tar.gz
  /usr/bin/make install  -- OK


Any help would be more than welcome.

Thanks again for your answers,

George

On 05/11/2015 05:52 μμ, martin.braendle@id.uzh.ch wrote:

It might be that the version detection for SOAP::ISIWoK is a little bit too sharp. Try changing line 27 of  perl_lib/EPrints/Plugin/Import/ISIWoK.pm to

if( !EPrints::Utils::require_if_exists( "SOAP::ISIWoK", "3" ) )

Best regards,

Martin

--
Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Stampfenbachstr. 73
CH-8006 Zürich

Inactive hide details for George Mamalakis
              ---05/11/2015 16:46:30---Hello everybody, I tried to
              enable the ISI-WoK plugin on myGeorge Mamalakis ---05/11/2015 16:46:30---Hello everybody, I tried to enable the ISI-WoK plugin on my EPrints installation (3.3.14,

Von: George Mamalakis <mamalos@eng.auth.gr>
An: eprints-tech@ecs.soton.ac.uk
Datum: 05/11/2015 16:46
Betreff: [EP-tech]  ISI WoK plugin configuration
Gesendet von: eprints-tech-bounces@ecs.soton.ac.uk





Hello everybody,

I tried to enable the ISI-WoK plugin on my EPrints installation (3.3.14,
Debian). After installing the required perl libraries, the import plugin
becomes accessible from the drop-down menu, but when I try to run a
query I am getting the following error:

Unhandled exception in Import::ISIWoK: Plugin returned undef

I assume that this is probably because I haven't done any configuration
(eg. a valid username, password combination) at any moment. So, how
should I configure it to run correctly (is there a guide or anything)?

Thanks all in advance!

George

--
George Mamalakis

IT and Security Officer,
Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),
PhD (Aristotle Univ. of Thessaloniki),
MSc (Imperial College of London)

School of Electrical and Computer Engineering
Aristotle University of Thessaloniki

phone number : +30 (2310) 994379


*** Options:
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive:
http://www.eprints.org/tech.php/
*** EPrints community wiki:
http://wiki.eprints.org/
*** EPrints developers Forum:
http://forum.eprints.org/



*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/


-- 
George Mamalakis

IT and Security Officer, 
Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),
PhD (Aristotle Univ. of Thessaloniki),
MSc (Imperial College of London)

School of Electrical and Computer Engineering
Aristotle University of Thessaloniki

phone number : +30 (2310) 994379




*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/


-- 
George Mamalakis

IT and Security Officer, 
Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),
PhD (Aristotle Univ. of Thessaloniki),
MSc (Imperial College of London)

School of Electrical and Computer Engineering
Aristotle University of Thessaloniki

phone number : +30 (2310) 994379




*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/


-- 
George Mamalakis

IT and Security Officer, 
Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),
PhD (Aristotle Univ. of Thessaloniki),
MSc (Imperial College of London)

School of Electrical and Computer Engineering
Aristotle University of Thessaloniki

phone number : +30 (2310) 994379