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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 298
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 75
At this point we have a defined adapter but no implementation for the server side procedure which
calls the back-end service. We open up the "Senators-impl.js" implementation file for the
adapter. We need none of the code templated by IBM. Instead we code only:
function getSenatorByState(state) {
var options = {
"method": "get",
"path": "getall_sens_bystate.php",
"returnedContentType": "xml",
"parameters": {
"state": state
}
};
return WL.Server.invokeHttp(options);
}
Finally, in the Connection Policy of the adapter definition, we supply the connection information
for the server machine:
Page 76
Vista de página 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 297 298

Comentários a estes Manuais

Sem comentários