有谁知道如何使用R制定以下SOAP请求?
POST /API/v201010/AdvertiserService.asmx HTTP/1.1
Host: advertising.criteo.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://advertising.criteo.com/API/v201010/clientLogin"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<clientLogin xmlns="https://advertising.criteo.com/API/v201010">
<username>string</username>
<password>string</password>
<source>string</source>
</clientLogin>
</soap:Body>
</soap:Envelope>
Run Code Online (Sandbox Code Playgroud) 您将如何SOAP使用 R 请求 EUR-Lex 的 API?
EUR-Lex 是一个包含许多法律行为的欧盟数据库。在他们的 Web 服务手册中,他们描述了他们的SOAP系统,但没有描述如何使用 R。我已经尝试了一段时间就业httr,RCurl但没有成功。我想使用 R 而不是 SOAPUI。
这里有人有这方面的经验吗?
从下面的链接中,我应该按如下方式定义正文吗?
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>"
Run Code Online (Sandbox Code Playgroud)
然后我如何将其与 结合起来headerfields使用RCurl或httr包?
以下三个答案似乎相关,但我不知道如何将它们应用到我的 EUR-Lex 示例中:
EUR-Lex API 链接: