How would you do a SOAP
request for EUR-Lex's API using R?
EUR-Lex is an EU database containing many legal acts. In the manual for their web services, they describe their SOAP
system but not how to use R for it. I've tried for a while now to employ httr
and RCurl
but with no luck. I would like to use R instead of SOAPUI.
Does anyone here have any experience with this?
From the link below, should I define the body as follows?
body <- "<sear:searchRequest>
<sear:expertQuery>${expert query}</sear:expertQuery> <sear:page>${page}</sear:page>
<sear:pageSize>${pageSize}</sear:pageSize> <sear:searchLanguage>${search language
</sear:searchLanguage>
</sear:searchRequest>"
How do I then combine that with the headerfields
to use either the RCurl
or httr
package?
The following three answers seem related but I cannot figure out how to apply them to my EUR-Lex example:
EUR-Lex API links: