SOAPHttpGet(SSOAP)
SOAPHttpGet()所属R语言包:SSOAP
Functions for making SOAP calls via HTTP GET or POST requests
通过HTTP SOAP调用函数GET或POST请求
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions provide the basic functions for implementing a SOAP request via HTTP GET or POST bindings rather than the regular SOAP Envelope and Body bindings. These are often easier to use manually as they allow the caller to think of the request as a form or simple URL with named parameters.
这些功能提供的基本功能实施SOAP请求通过HTTP GET或POST绑定,而不是常规的SOAP Envelope和Body绑定。这些往往是更容易使用手动,因为它们允许调用者认为,作为一种形式或简单的URL命名参数的要求。
The functions can be used in generated code derived from processing a WSDL.
可用于处理WSDL的生成代码的功能。
用法----------Usage----------
.SOAPHttpGet(.url, ..., .params = list(...), .convert = TRUE, .opts = list())
.SOAPHttpPost(.url, ..., .params = list(...), .convert = TRUE, .opts = list(), .style = 'POST')
参数----------Arguments----------
参数:.url
the full URL (as a string) identifying the SOAP method
SOAP方法确定完整的URL(字符串)
参数:...
a named list of parameters that are passed directly to the HTTP request.
指定的直接传递到HTTP请求的参数列表。
参数:.params
this is a list of the parameters. This can be used by a caller who already has the inputs to the SOAP request in a list.
这是一个参数列表。这可以用一个来电者已经有列表中的SOAP请求的输入。
参数:.convert
a value that controls how the result is returned. If this is FALSE, the text of the HTTP request is returned directly. If this is TRUE, we use fromXML to convert the XML content to an R object. If .convert is an object derived from the GenericSchemaType class that describes a data structure, then we use that data desciption to convert the XML to the corresponding R data type.
一个值,返回结果如何控制。如果这是FALSE,文字的HTTP请求直接返回。如果这是TRUE,我们使用fromXML XML内容转换成一个R对象。如果.convert的GenericSchemaType类,它描述了数据结构派生的对象,然后我们使用该数据desciption的转换到相应的R数据类型的XML。
参数:.opts
a list of named options that are passed to getForm and postForm to control the RCurl request. See listCurlOptions.
一个名为getForm和postForm控制的RCurl的要求是通过选项列表。看到listCurlOptions。
参数:.style
this is the style parameter of postForm and should be either "OST" or "HTTPPOST".
这个是stylepostForm参数,应该不是“POST”或“HTTPPOST”的。
值----------Value----------
Either the text of the SOAP response or an R object converted from the XML content.
无论是文字的SOAP响应或从XML内容转换成一个R对象。
作者(S)----------Author(s)----------
Duncan Temple Lang
参见----------See Also----------
.SOAP
.SOAP
举例----------Examples----------
.SOAPHttpGet("http://www.chemspider.com/MassSpecAPI.asmx/SearchByMass2", mass = 89.0476, range = 0.01)
## Not run: [#无法运行:]
# need token[需要令牌]
.SOAPHttpGet("http://www.chemspider.com/MassSpecAPI.asmx/GetExtendedCompoundInfoArray", CSIDs = c("23500", "23543"), token = token)
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|