Possible status code includes:
If the request is valid, xOCLCnum service returns a list of matched OCLC Numbers and requested metadata fields, with a "stat=ok" indication, such as:
<?xml version="1.0" encoding="UTF-8"?> <rsp xmlns="http://worldcat.org/xid/isbn/" stat="ok"> <isbn title="Learning Python" form="BA" year="2004" lang="eng" ed="2nd ed." author="Lutz, Mark." publisher="O'Reilly">0596002815</isbn> </rsp>
If the request is invalid or the usage has reached limits, the response will return header only, with appropriate status code. For example, a request to
http://xisbn.worldcat.org/webservices/xid/oclcnum/12345678901234
returns following response:
<?xml version="1.0" encoding="UTF-8" ?>
<rsp xmlns="http://worldcat.org/xid/oclcnum/" stat="invalidId"/>
A number of metadata fields can be associated with an Identifier when responding to the getEditions or getMetadata method:
The XML schema in xisbn.xsd validates xISBN response XML format.
Several other serialization formats are supported. Below is an example of each:
http://xisbn.worldcat.org/webservices/xid/oclcnum/55847258?method=getMetadata&fl=*&format=html http://xisbn.worldcat.org/webservices/xid/oclcnum/55847258?method=getMetadata&fl=*&format=json http://xisbn.worldcat.org/webservices/xid/oclcnum/55847258?method=getMetadata&fl=*&format=python http://xisbn.worldcat.org/webservices/xid/oclcnum/55847258?method=getMetadata&fl=*&format=ruby http://xisbn.worldcat.org/webservices/xid/oclcnum/55847258?method=getMetadata&fl=*&format=php http://xisbn.worldcat.org/webservices/xid/oclcnum/55847258?method=getMetadata&fl=*&format=csv (comma-delimited file) http://xisbn.worldcat.org/webservices/xid/oclcnum/55847258?method=getMetadata&fl=*&format=txt (tab-delimited file)
The OCLC Developer Network supports the use of OCLC Web Services—a set of tools and APIs that expose data and services for WorldCat and our member libraries and partner institutions or companies. learn more »
© 2010 OCLC Domestic and international trademarks and/or service marks of OCLC Online Computer Library Center, Inc. and its affiliates
Follow the OCLC Developer Network: