Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/09/2011, 11:14
Avatar de Omegakenshin
Omegakenshin
 
Fecha de Ingreso: junio-2010
Ubicación: Costa Rica
Mensajes: 156
Antigüedad: 13 años, 10 meses
Puntos: 22
Respuesta: Obtener tipo de Cambio Dolares - Colones

Muchas gracias Andres por tu respuesta, estoy leyendo tu aporte, mientras tanto, aca te dejo el código ejemplo del metodo POST.

Estos son en XML
Request
Código PHP:
POST /indicadoreseconomicos/WebServices/wsIndicadoresEconomicos.asmx/ObtenerIndicadoresEconomicosXML HTTP/1.1
Host
indicadoreseconomicos.bccr.fi.cr
Content
-Typeapplication/x-www-form-urlencoded
Content
-LengthtcIndicador=string&tcFechaInicio=string&tcFechaFinal=string&tcNombre=string&tnSubNiveles=string 
Respond
Código PHP:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://ws.sdde.bccr.fi.cr">string</string>
Ejemplo con los datos reales (XML)
Código PHP:
POST /indicadoreseconomicos/WebServices/wsIndicadoresEconomicos.asmx/ObtenerIndicadoresEconomicosXML HTTP/1.1
Host
indicadoreseconomicos.bccr.fi.cr
Content
-Typeapplication/x-www-form-urlencoded
Content
-LengthtcIndicador=317&tcFechaInicio=27/09/2011&tcFechaFinal=27/09/2011&tcNombre=A&tnSubNiveles=

Estos son en data set
Request
Código PHP:
POST /indicadoreseconomicos/WebServices/wsIndicadoresEconomicos.asmx/ObtenerIndicadoresEconomicos HTTP/1.1
Host
indicadoreseconomicos.bccr.fi.cr
Content
-Typeapplication/x-www-form-urlencoded
Content
-LengthtcIndicador=string&tcFechaInicio=string&tcFechaFinal=string&tcNombre=string&tnSubNiveles=string 
Respond
Código PHP:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<DataSet xmlns="http://ws.sdde.bccr.fi.cr">
  <schema xmlns="http://www.w3.org/2001/XMLSchema">schema</schema>xml</DataSet>

Ejemplo con los datos reales (Dataset)
Código PHP:
POST /indicadoreseconomicos/WebServices/wsIndicadoresEconomicos.asmx/ObtenerIndicadoresEconomicos HTTP/1.1
Host
indicadoreseconomicos.bccr.fi.cr
Content
-Typeapplication/x-www-form-urlencoded
Content
-LengthtcIndicador=317&tcFechaInicio=27/09/2011&tcFechaFinal=27/09/2011&tcNombre=A&tnSubNiveles=

Mientras sigo investigando.
Cualquier ayuda es bienvenida