Skip to content

Instantly share code, notes, and snippets.

@lawlesst
Last active August 15, 2016 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lawlesst/34aae943d2d29ec5e93e0d83e18bafe0 to your computer and use it in GitHub Desktop.
Save lawlesst/34aae943d2d29ec5e93e0d83e18bafe0 to your computer and use it in GitHub Desktop.
Sample call and response for Links AMR web service
<?xml version="1.0" encoding="UTF-8" ?>
<request xmlns="http://www.isinet.com/xrpc41" src="app.id=InternalVIVODemo">
<fn name="LinksAMR.retrieve">
<list>
<!-- authentication -->
<map>
<val name="username">xxx</val>
<val name="password">xxx</val>
</map>
<!-- what to to return -->
<map>
<list name="WOS">
<val>timesCited</val>
<val>ut</val>
<val>doi</val>
<val>pmid</val>
<val>sourceURL</val>
<val>citingArticlesURL</val>
<val>relatedRecordsURL</val>
</list>
</map>
<map>
<!-- LOOKUP DATA -->
<map name="cite_1">
<val name="doi">10.1103/PhysRevE.89.043308</val>
</map>
<map name="cite_2">
<val name="pmid">21211596</val>
</map>
</map>
</list>
</fn>
</request>
<?xml version="1.0" encoding="UTF-8" ?>
<response
xmlns="http://www.isinet.com/xrpc41" src="app.id=InternalVIVODemo">
<fn name="LinksAMR.retrieve" rc="OK">
<map>
<map name="cite_1">
<map name="WOS">
<val name="relatedRecordsURL">
<![CDATA[http://gateway.webofknowledge.com/gateway/Gateway.cgi?GWVersion=2&SrcApp=PARTNER_APP&SrcAuth=TRINTCEL&KeyUT=WOS:000344396200005&DestLinkType=RelatedRecords&DestApp=WOS_CPL&UsrCustomerID=dc101777b18a39292144c8423537a284]]>
</val>
<val name="pmid">24827365</val>
<val name="sourceURL">
<![CDATA[http://gateway.webofknowledge.com/gateway/Gateway.cgi?GWVersion=2&SrcApp=PARTNER_APP&SrcAuth=TRINTCEL&KeyUT=WOS:000344396200005&DestLinkType=FullRecord&DestApp=WOS_CPL&UsrCustomerID=dc101777b18a39292144c8423537a284]]>
</val>
<val name="timesCited">14</val>
<val name="ut">000344396200005</val>
<val name="doi">10.1103/PhysRevE.89.043308</val>
<val name="citingArticlesURL">
<![CDATA[http://gateway.webofknowledge.com/gateway/Gateway.cgi?GWVersion=2&SrcApp=PARTNER_APP&SrcAuth=TRINTCEL&KeyUT=WOS:000344396200005&DestLinkType=CitingArticles&DestApp=WOS_CPL&UsrCustomerID=dc101777b18a39292144c8423537a284]]>
</val>
</map>
</map>
<map name="cite_2">
<map name="WOS">
<val name="relatedRecordsURL">
<![CDATA[http://gateway.webofknowledge.com/gateway/Gateway.cgi?GWVersion=2&SrcApp=PARTNER_APP&SrcAuth=TRINTCEL&KeyUT=WOS:000286789200008&DestLinkType=RelatedRecords&DestApp=WOS_CPL&UsrCustomerID=dc101777b18a39292144c8423537a284]]>
</val>
<val name="pmid">21211596</val>
<val name="sourceURL">
<![CDATA[http://gateway.webofknowledge.com/gateway/Gateway.cgi?GWVersion=2&SrcApp=PARTNER_APP&SrcAuth=TRINTCEL&KeyUT=WOS:000286789200008&DestLinkType=FullRecord&DestApp=WOS_CPL&UsrCustomerID=dc101777b18a39292144c8423537a284]]>
</val>
<val name="timesCited">56</val>
<val name="ut">000286789200008</val>
<val name="doi">10.1016/j.amjcard.2010.08.067</val>
<val name="citingArticlesURL">
<![CDATA[http://gateway.webofknowledge.com/gateway/Gateway.cgi?GWVersion=2&SrcApp=PARTNER_APP&SrcAuth=TRINTCEL&KeyUT=WOS:000286789200008&DestLinkType=CitingArticles&DestApp=WOS_CPL&UsrCustomerID=dc101777b18a39292144c8423537a284]]>
</val>
</map>
</map>
</map>
</fn>
</response>
@lawlesst
Copy link
Author

lawlesst commented May 2, 2016

Save this file as amr.xml and issue requests to "https://ws.isiknowledge.com/cps/xrpc" by POSTing the XML document. E.g.

$ curl -X POST -d @amr.xml https://ws.isiknowledge.com/cps/xrpc

See complete documentation:

http://ipscience-help.thomsonreuters.com/LAMRService/WebServicesOverviewGroup/overview.html

@TheRedDev
Copy link

TheRedDev commented May 5, 2016

I assume the unclosed <map> tag around the <map name="cite_X"/> tags is a mistake and there should be a </map> before the last </list>?

@lawlesst
Copy link
Author

@MassuguGo - sorry, just noticed this. Yes it was a mistake. I've updated the example and verified that it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment