Servis-Rhino 4211B Guía de usuario Pagina 76

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 298
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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 pagina 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 297 298

Comentarios a estos manuales

Sin comentarios