Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is XRPC, how do I use it

Tags:

web-services

I am trying to connect to Thomson Reuters Researcher ID service using XRPC.

My questions are as follows:

1) What is XRPC?
2) What do I need to do to send the appropriate data

like image 371
Ankur Avatar asked Dec 09 '22 19:12

Ankur


2 Answers

Actually its not a typo. XRPC is similar to XML-RPC, but not the same. XRPC is a protocol invented in 2003 at the Institute for Scientific Information, which was acquired by Thomson. Thomson later became Thomson-Reuters.

An example request will look like this:

<?xml version="1.0" encoding="UTF-8" ?>
<request xmlns="http://www.isinet.com/xrpc41">
   <fn name="APICall1"><!-- parameters --></fn>
   <fn name="APICall2"><!-- parameters --></fn>
       :
   <fn name="APICallN"><!-- parameters --></fn>
</request>

And the response is similar:

<?xml version="1.0" encoding="UTF-8" ?>
<response xmlns="http://www.isinet.com/xrpc41">
   <fn name="APICall1" rc="OK"><!-- return value --></fn>
   <fn name="APICall2" rc="OK"><!-- return value --></fn>
       :
   <fn name="APICallN" rc="ErrorCode"><!-- error --></fn>
</response>

The requests/responses will be populated by data elements like

<val>, <list>, <map>, 
like image 191
nont Avatar answered Jan 20 '23 09:01

nont


XML-RPC is the protocol from which the SOAP protocol was created. It has largely been superseded by SOAP.

See https://stackoverflow.com/search?q=xml-rpc for many question on this site on the same subject, also https://stackoverflow.com/questions/tagged/xml-rpc and http://en.wikipedia.org/wiki/Xml-rpc.

like image 25
John Saunders Avatar answered Jan 20 '23 09:01

John Saunders