Learn R Programming

AzureML (version 0.1.1)

updateWebService: Update a Published Web Service

Description

Update a web service, i.e. change the underlying R code that the service will run when called. The same restrictions that apply to publishWebService() also apply to updateWebService()

Usage

updateWebService(functionName, serviceName, wsID, inputSchema, outputSchema,
  wkID, authToken)

Arguments

functionName
function name as a string to be published
serviceName
name of the new web service
wsID
ID of the web service to be updated
inputSchema
list of input parameters of format list("arg1"="type", "arg2"="type", ...)
outputSchema
list of outputs of format list("output1"="type", "output2"="type", ...)
wkID
the workspace ID
authToken
primary authorization token

Value

  • List of webservice details, default endpoint details, and the consumption function

See Also

getWSDetails getEndpoints discoverSchema consumeLists Other publishing functions: publishWebService

Examples

Run this code
add1 <- function(x) { return(x+1) }
addService <- publishWebService("add1", "add1",
 list("x"="int"), list("z"="int"), wsID, wsAuth)

add2 <- function(x) { return(x+2) }
addService <- updateWebService("add2", "add2", addService[[1]]$Id,
 list("x"="int"), list("z"="int"), wsID, wsAuth)

Run the code above in your browser using DataLab