Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
286 views
in Technique[技术] by (71.8m points)

web services - retrieving SOAP webservices in R

I want to retrieve some data from https://ws01.cenace.gob.mx:8081/WSDownLoadFac/FacturaCENService.svc?singleWsdl So far, I′ve got the following lines:

library(SSOAP)

wsdl <- getURL("https://ws01.cenace.gob.mx:8081/WSDownLoadFac/FacturaCENService.svc?singleWsdl", 
               useragent="R", ssl.verifypeer = FALSE)
doc = xmlParse(wsdl, asText = TRUE)
def <- processWSDL(doc, verbose = TRUE)
ff  <- genSOAPClientInterface(operations =  def@operations[[1]], def = def, name = def@name,
                              verbose = TRUE)

In order to be able to access ff@functions, which would be the next step according to Using R SOAP (SSOAP) to retrieve data / scrape a message pop ups asking for some parameters which in fact, I've to enter, such as user.password.date.system.participant:

<defClass> usuario.password.fecha.sistema.participante 
defining class usuario.password.fecha.sistema.participante 
Error in (function (object, Class, strict = TRUE, ext = possibleExtends(thisClass,  : 
  no method or default for coercing “character” to “dateTime”
Removing  usuario.password.fecha.sistema.participante from pending

Any suggestion of how can I define this values? I tried using

pred.Sparams=new(usuario.password.fecha.sistema.participante, usuario="some_user", password="some_password", etc)

But that doesnt seems to work.

question from:https://stackoverflow.com/questions/65929209/retrieving-soap-webservices-in-r

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...