使用R,RCurl和SSOAP访问Web服务 - '.getClassFromCache(Class,where)中的错误'

时间:2012-10-09 19:56:34

标签: r soap ubuntu-12.04

我使用R相对较新,我正在尝试访问Web服务(AILUN),我收到错误,这可能是相当简单的事情。

我使用的是Ubuntu 12.04和R版本2.15.1

我已经从http://www.omegahat.org

安装了包“SSOAP”的所有先决条件

以下是R命令行的一步一步。这些文件是从http://ailun.stanford.edu/webservice.php

下载的
getwd()
[1] "/home/gserver/Webservice"
library(SSOAP)
platformAnnotation_FindGPL <- function(array_send,ratio)
 {
 AILUN <- SOAPServer("http://ailun.stanford.edu/WebServ/Platform_Annotation.php")
 gpl_info <- .SOAP(AILUN, "platformAnnotation_FindGPL",templfile=array_send ,matchRatio=ratio, action="/Platform_Annotation.php")
 return (gpl_info)

 }
 con <- file("probe_ID.txt", "r")
 array1 <- readLines(con)
 ratio <- 30
 result <- platformAnnotation_FindGPL(array1,ratio)
Error in .getClassFromCache(Class, where) : 
  attempt to use zero-length variable name

非常感谢任何建议或帮助!!

0 个答案:

没有答案