相关疑难解决方法(0)

R中的SOAP请求

有谁知道如何使用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 rcurl httr

12
推荐指数
1
解决办法
8247
查看次数

如何使用 R 执行 EUR-Lex API 的 SOAP 请求?

您将如何SOAP使用 R 请求 EUR-Lex 的 API?

EUR-Lex 是一个包含许多法律行为的欧盟数据库。在他们的 Web 服务手册中,他们描述了他们的SOAP系统,但没有描述如何使用 R。我已经尝试了一段时间就业httrRCurl但没有成功。我想使用 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使用RCurlhttr包?

以下三个答案似乎相关,但我不知道如何将它们应用到我的 EUR-Lex 示例中:

  1. 如何将 SOAP 请求curl 转换为 RCurl
  2. 带有 WSDL for R 的 SOAP 客户端
  3. R 中的 SOAP 请求

EUR-Lex API 链接:

  1. WSDL: https: //eur-lex.europa.eu/eurlex-ws?wsdl
  2. 手册:https ://eur-lex.europa.eu/content/tools/webservices/SearchWebServiceUserManual_v2.00.pdf

soap web-services r rcurl httr

5
推荐指数
1
解决办法
960
查看次数

标签 统计

httr ×2

r ×2

rcurl ×2

soap ×2

web-services ×1