[OAI-implementers] Bad resumptionToken, implementation of it, or user error?

Thor Anderson tanderson@collegis.com
Wed, 18 Dec 2002 08:17:57 -0700


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
Simeon,<br>
<br>
As I suspected, it was user error. &nbsp;I wasn't encoding the resumptionToken
correctly. Now it works for me. Thanks! <br>
<br>
Thor<br>
<br>
Simeon Warner wrote:<br>
<blockquote type="cite"
 cite="midPine.LNX.4.44.0212180944120.2086-100000@ice.cs.cornell.edu">
  <pre wrap="">resumptionToken is no a verb, it is an exclusive argument for 
ListIdentifiers or ListRecords. Your request should look something 
like:

GET baseURL?verb=ListRecords&amp;resumptionToken=APPROPRIATELY_ENCODED_RT_HERE

where APPROPRIATELY_ENCODED_RT_HERE is the URL-encoded resumptionToken.

As far as I can see, this site works fine:

oaiharvest.pl: Harvest from <a class="moz-txt-link-freetext" href="http://services.nsdl.org:8080/nsdloai/OAI">http://services.nsdl.org:8080/nsdloai/OAI</a> using GET
OAIGet: Doing GET to <a class="moz-txt-link-freetext" href="http://services.nsdl.org:8080/nsdloai/OAI">http://services.nsdl.org:8080/nsdloai/OAI</a> args: verb=Identify
OAIGet: Got 200 OK (1249bytes )
oaiharvest.pl: Identify reports OAI-PMH version 2.0
oaiharvest.pl: Doing complete harvest.
OAIGet: Doing GET to <a class="moz-txt-link-freetext" href="http://services.nsdl.org:8080/nsdloai/OAI">http://services.nsdl.org:8080/nsdloai/OAI</a> args: verb=ListMetadataFormats
OAIGet: Got 200 OK (1455bytes )
OAIGet: Doing GET to <a class="moz-txt-link-freetext" href="http://services.nsdl.org:8080/nsdloai/OAI">http://services.nsdl.org:8080/nsdloai/OAI</a> args: verb=ListSets
OAIGet: Got 200 OK (11405bytes )
OAIGet: Doing GET to <a class="moz-txt-link-freetext" href="http://services.nsdl.org:8080/nsdloai/OAI">http://services.nsdl.org:8080/nsdloai/OAI</a> args: metadataPrefix=oai_dc&amp;verb=ListRecords
OAIGet: Got 200 OK (1044772bytes )
oaiharvest.pl: Got 250 records (running total: 250)
oaiharvest.pl: Got resumptionToken: `metadataPrefix=oai_dc&amp;origRequestTime=2002-12-18T14:52:25Z&amp;expireOnUpdate=false&amp;resumeAfter=oai:nsdl.org:Alexandria:O3311517.SWS'
OAIGet: Doing GET to <a class="moz-txt-link-freetext" href="http://services.nsdl.org:8080/nsdloai/OAI">http://services.nsdl.org:8080/nsdloai/OAI</a> args: resumptionToken=metadataPrefix%3Doai_dc%26origRequestTime%3D2002-12-18T14%3A52%3A25Z%26expireOnUpdate%3Dfalse%26resumeAfter%3Doai%3Ansdl.org%3AAlexandria%3AO3311517.SWS&amp;verb=ListRecords
OAIGet: Got 200 OK (1055218bytes )
oaiharvest.pl: Got 250 records (running total: 500)
...

Cheers,
Simeon.


On Wed, 18 Dec 2002, Thor Anderson wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap=""> Hi,

I've been trying out the OAI 2.0 protocol on the NSDL repository at <a class="moz-txt-link-freetext" href="http://services.nsdl.org:8080/nsdloai/OAI">http://services.nsdl.org:8080/nsdloai/OAI</a>  When I send the following request <a class="moz-txt-link-rfc2396E" href="http://services.nsdl.org:8080/nsdloai/OAI?verb=ListRecords&from=2002-01-01&metadataPrefix=oai_dc">"http://services.nsdl.org:8080/nsdloai/OAI?verb=ListRecords&amp;from=2002-01-01&amp;metadataPrefix=oai_dc"</a> 
I get back an imcomplete list of 250 records and the following resumption token 
"from=2002-01-01&amp;amp;metadataPrefix=oai_dc&amp;amp;origRequestTime=2002-12-16T19:43:00Z&amp;amp;
    </pre>
  </blockquote>
  <pre wrap=""><!---->expireOnUpdate=false&amp;amp;resumeAfter=oai:nsdl.org:Alexandria:O3311517.SWS"
  </pre>
  <blockquote type="cite">
    <pre wrap="">When I try to use the resumptionToken verb and give it this token 
(whether encoded or not), I get "resumptionToken is not a legal OAI-PMH 
2.0 verb." which seems untrue based upon the OAI protocol document I'm 
reading.  I can't tell whether that is really an illegal verb or the 
NSDL implementation is wrong or I'm not using the resumptionToken verb 
properly.

Any help would be greatly appreciated.

Thor Anderson


_______________________________________________ OAI-implementers mailing list <a class="moz-txt-link-abbreviated" href="mailto:OAI-implementers@oaisrv.nsdl.cornell.edu">OAI-implementers@oaisrv.nsdl.cornell.edu</a>
<a class="moz-txt-link-freetext" href="http://oaisrv.nsdl.cornell.edu/mailman/listinfo/oai-implementers">http://oaisrv.nsdl.cornell.edu/mailman/listinfo/oai-implementers</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
</body>
</html>