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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 298
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 73
Configuring the HTTP Adapter for SSL
When the HTTP adapter connects to the back-end server it can utilize the HTTP protocol over
either plain TCP or SSL. To use SSL requires some setup.
1. Change the protocol type of the Adapter's XML configuration to "https".
2. Change the port number to be that of the back-end server's port for SSL.
Example HTTP Adapter
On the Internet there is an example public HTTP service that will return US Government
representative details. This web site can be found at:
http://whoismyrepresentative.com/api
In this example, we will build an adapter which invokes this REST service taking a US state as
input and returning the senators for that state.
Examining the documentation for the REST request, we see that a call to:
http://whoismyrepresentative.com/getall_sens_bystate.php?state=TX
will return the senators from Texas. Testing this request using a REST testing tool shows that it
returns an XML document.
We are now at the point where we can design our adapter. For HTTP adapters, we should complete
the following table before we continue:
Property Value
Hostname or TCP/IP address
Port Number
HTTP command verb
URL Path
Parameters
Security considerations
Returned data format
In our example, the answers would be:
Property Value
Hostname or TCP/IP address
http://whoismyrepresentative.com
Port Number
80
HTTP command verb
GET
URL Path
/getall_sens_bystate.php
Parameters
state=<US State>
Page 74
Vista de página 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 297 298

Comentários a estes Manuais

Sem comentários