Servis-Rhino 4211B Guia do Utilizador Página 117

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 298
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 116
parameters – Any parameters required by the procedure.
See also:
WL.Server.invokeSQLStoredProcedure(options)
WL.Server.createSQLStatement(statement)
SQL Adapter
WL.Server.invokeHttp(options)
This API method makes an HTTP call from the Worklight Server to a back-end HTTP service
provider. This API call is only meaningful to be called in the context of an HTTP Adapter
procedure invocation. Note that the host and port of the request are not supplied as part of the
parameters to this request. Instead they are contextual and supplied by the HTTP Adapter
properties of the HTTP Adapter in which the procedure is being invoked.
The signature of the API is:
WL.Server.invokeHttp(options)
The options parameter is a JavaScript object which can have the following properties:
method – The HTTP method to be used to perform the request. Valid options are:
get – Execute a REST request with the GET HTTP verb
post – Execute a REST request with the POST HTTP verb
put – Execute a REST request with the PUT HTTP verb
delete – Execute a REST request with the DELETE HTTP verb
path – The relative part of the URL to which the request will be sent.
returnedContentType – The data type returned by the called HTTP service.
Allowable choices are:
json – The data returned should be considered a JSON object
plain – The data returned should be considered un-interpreted plain text
xml – The data returned should be considered an XML document
html – The data returned should be considered an HTML page
csv – The data returned should be considered comma separated values
javascript – The data returned should be considered a fragment of JavaScript
css – The data returned should be considered a Cascading Style Sheet
returnedContentEncoding
parameters – A JavaScript object who's properties will be used as query parameters in
the HTTP request to the back-end. The property's value will be used as the value of the
query parameter.
headers – Any HTTP headers that should be added to the request.
cookies
body – for requests of type POST and PUT only, the payload of the HTTP request if
Page 117
Vista de página 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 297 298

Comentários a estes Manuais

Sem comentários