processWSDL(SSOAP)
processWSDL()所属R语言包:SSOAP
Read and process a Web Service Description Language file
读取和处理Web服务描述语言文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This reads and converts a WSDL file for a server into a collection of functions and methods.
读取和转换为WSDL文件到服务器的功能和方法的集合。
用法----------Usage----------
processWSDL(fileName = "KEGG.wsdl", handlers =
WSDLParseHandlers(fileName), nameSpaces = character(),
useInternalNodes = TRUE, verbose = FALSE, port = 1L)
参数----------Arguments----------
参数:fileName
the name of the WSDL file or URI.
WSDL文件的名称或URI。
参数:handlers
a list of handler functions that are passed to xmlTreeParse to perform transformations on the XML nodes as the are parsed and converted to R objects. The default handlers drop comments and take care of importing files that are referenced via <wsdl:import> nodes.
处理程序传递给函数的列表xmlTreeParse作为被解析并转换为R对象的XML节点上执行转换。默认的处理程序拖放的意见和照顾进口,引用的文件是通过<wsdl:import>节点。
参数:nameSpaces
a character vector that identifies the namespace-URI mappings used for calls to this server. This maps the namespace abbreviations to the actual URIs. This can be a named character vector of these mappings, or alternatively a simple character string that identifies the name of the element in the .SOAPDefaultNameSpaces list. And if we don't know the collection of namespaces, we use NA to indicate that we shall determine this later.
一个字符向量标识命名空间的URI用于调用此服务器的映射。这将映射到实际的URI命名空间的缩写。这可能是这些映射的命名特征向量,或者一个简单的字符串,标识.SOAPDefaultNameSpaces列表元素的名称。如果我们不知道的命名空间的集合,我们使用NA表明,我们应确定以后。
参数:useInternalNodes
a logical value indicating whether to use internal/C-level nodes for the XML tree or to use R objects representing the nodes.
一个逻辑值,该值指示是否使用内部/ C级的XML树节点或使用R对象代表节点。
参数:verbose
a logical value indicating whether to emit messages to the console signalling progress being made and what elements are being processed. This is passed to processSchemaTypes.
一个逻辑值,该值指示是否发出消息到控制台的信号进展,并正在处理的元素。这是传递processSchemaTypes的。
参数:port
a number or string that is used to identify which of the port elements to use in the WSDL. This allows the caller to specify whether they want to use, e.g., SOAP 1.1 or SOAP 1.2 or SOAP PUT if the WSDL provides more than one of these
一个数字或字符串,用于确定在WSDL中使用的port元素。这允许调用者指定是否要使用,例如,SOAP 1.1或SOAP 1.2或SOAP提出,如果WSDL提供超过其中之一
值----------Value----------
An object of class SOAPServerDescription.
对象类SOAPServerDescription。
作者(S)----------Author(s)----------
Duncan Temple Lang <duncan@wald.ucdavis.edu>
参见----------See Also----------
UseDashInSOAPNames is an R option that can be set by the user that is understood by this package to control whether to either leave SOAP method names as-is, or if FALSE, to remove _ in the names and capitalize the first character in all but the first word of the name. In other words, if UseDashInSOAPNames is set to FALSE, the name abc_def_ghi is mapped to abcDefGhi. By default, the value is unset and treated as TRUE, so dashes are preserved.
UseDashInSOAPNamesR选项,可以了解这个包来控制是否可以离开SOAP方法名称是由用户设置,或如果FALSE,删除_在名称和利用的第一个字符,但在所有名称的第一个字。换句话说,如果UseDashInSOAPNames设置为FALSE,名abc_def_ghi映射到abcDefGhi。默认情况下,没有设置的值和TRUE,所以破折号保留的治疗。
举例----------Examples----------
tmp = processWSDL(system.file("examples", "KEGG.wsdl", package = "SSOAP"))
# The first set of operations, and the method "color_pathway_by_objects"[第一套,经营和方法“color_pathway_by_objects”]
o = tmp@operations[[1]][["color_pathway_by_objects"]]
names(o@parameters)
o@parameters[["fg_color_list"]]
o@returnValue
ff = genSOAPClientInterface(tmp@operations[[1]], def = tmp, tmp@name, verbose=FALSE)
# ff$functions$get_all_neighbors_by_gene(kid="eco:b0002", threshold= as.integer(500), orgs = c("ecs","ypk"))[FF $函数$ get_all_neighbors_by_gene(小子“生态:B0002”,门槛= as.integer组织之参与(500)= C(“ECS”,“ypk”))]
## Not run: [#无法运行:]
x = ff@functions$get_paralogs_by_gene("eco:b0002", 1, 10)
## End(Not run)[#结束(不运行)]
tp = get(".operation", environment(ff@functions$get_paralogs_by_gene))@returnValue
# A different WSDL file.[不同的WSDL文件。]
tmp = processWSDL(system.file("examples", "XMethodsFilesystemService.wsdl.xml", package = "SSOAP"))
## Not run: [#无法运行:]
cs = processWSDL("http://www.chemspider.com/MassSpecAPI.asmx?WSDL", port= 3)
cs = processWSDL("http://www.chemspider.com/MassSpecAPI.asmx?WSDL", port = "MassSpecAPIHttpGet")
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|