我正在尝试使用下面的脚本(来源:Alexandre Rademaker)使用SSOAP包处理供应商WSDL,但是遇到下面的硬错误而无法继续进行。在详细模式中,我看到processWSDL函数能够在遇到此错误之前处理几个项目。有没有人成功解决这个SSOAP错误?感谢您的回复。
library(SSOAP)
library(XML)
library(RCurl)
wsdl = getURL("https://<URL>/wsdl")
doc <- xmlInternalTreeParse(wsdl) ## I see the formatted XML
def <- processWSDL(doc, verbose = TRUE) ## ERROR below
Error in FUN(X[[6L]], ...) :
trying to get slot "name" from an object of a basic class ("NULL") with no slots
In addition: Warning messages:
1: In processAttribute(type, name, namespaceDefs = namespaceDefs, targetNamespace = targetNamespace, :
<fixme> Skipping children in <attribute> definition
2: In processAttribute(type, name, namespaceDefs = namespaceDefs, targetNamespace = targetNamespace, :
<fixme> Skipping children in <attribute> definition
3: In processAttribute(type, name, namespaceDefs = namespaceDefs, targetNamespace = targetNamespace, :
<fixme> Skipping children in <attribute> definition
4: In processAttribute(type, name, namespaceDefs = namespaceDefs, targetNamespace = targetNamespace, :
<fixme> Skipping children in <attribute> definition
5: In processAttribute(type, name, namespaceDefs = namespaceDefs, targetNamespace = targetNamespace, :
<fixme> Skipping children in <attribute> definition