Service


Haga clic aquí para obtener una lista completa de operaciones.

GetTrenesLinea

Prueba

Haga clic en el botón 'Invocar', para probar la operación utilizando el protocolo HTTP POST.
Parámetro Valor
IDLinea:

SOAP 1.1

A continuación se muestra un ejemplo de solicitud y respuesta para SOAP 1.1. Es necesario reemplazar los marcadores de posición que aparecen con valores reales.

POST /ServiciosWebHorarios/Service.asmx HTTP/1.1
Host: ram.renfe.es
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ram.renfe.es/ServiciosWebHorarios/GetTrenesLinea"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetTrenesLinea xmlns="http://ram.renfe.es/ServiciosWebHorarios">
      <IDLinea>string</IDLinea>
    </GetTrenesLinea>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetTrenesLineaResponse xmlns="http://ram.renfe.es/ServiciosWebHorarios">
      <GetTrenesLineaResult>xmlxml</GetTrenesLineaResult>
    </GetTrenesLineaResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

A continuación se muestra un ejemplo de solicitud y respuesta para SOAP 1.2. Es necesario reemplazar los marcadores de posición que aparecen con valores reales.

POST /ServiciosWebHorarios/Service.asmx HTTP/1.1
Host: ram.renfe.es
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetTrenesLinea xmlns="http://ram.renfe.es/ServiciosWebHorarios">
      <IDLinea>string</IDLinea>
    </GetTrenesLinea>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetTrenesLineaResponse xmlns="http://ram.renfe.es/ServiciosWebHorarios">
      <GetTrenesLineaResult>xmlxml</GetTrenesLineaResult>
    </GetTrenesLineaResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

A continuación se muestra un ejemplo de solicitud y respuesta para HTTP GET. Es necesario reemplazar los marcadores de posición que aparecen con valores reales.

GET /ServiciosWebHorarios/Service.asmx/GetTrenesLinea?IDLinea=string HTTP/1.1
Host: ram.renfe.es
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<DataTable xmlns="http://ram.renfe.es/ServiciosWebHorarios">xmlxml</DataTable>

HTTP POST

A continuación se muestra un ejemplo de solicitud y respuesta para HTTP POST. Es necesario reemplazar los marcadores de posición que aparecen con valores reales.

POST /ServiciosWebHorarios/Service.asmx/GetTrenesLinea HTTP/1.1
Host: ram.renfe.es
Content-Type: application/x-www-form-urlencoded
Content-Length: length

IDLinea=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<DataTable xmlns="http://ram.renfe.es/ServiciosWebHorarios">xmlxml</DataTable>