Descripción Formal del Web Service del Observatorio de Precios (ServicePrecios) Las operaciones siguientes son compatibles. • ActualizarProducto Actualiza un Producto de una Sucursal • DeshabilitarProducto Deshabilita un Producto de una Sucursal • ObtenerListaProductos Obtiene la lista de Productos de una Sucursal • ReplicarPrecios Realiza una réplica de los Precios de una Sucursal ActualizarProducto • Actualiza un Producto de una Sucursal: 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 /ServicePrecios.asmx HTTP/1.1 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/ActualizarProducto" <?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:Header> <AuthHeader xmlns="http://tempuri.org/"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap:Header> <soap:Body> <ActualizarProducto xmlns="http://tempuri.org/"> <idSucursal>string</idSucursal> <pre> <IdProducto>int</IdProducto> <PrecioMinUnit>double</PrecioMinUnit> <PrecioMaxEmpaq>double</PrecioMaxEmpaq> <PrecioPromedio>double</PrecioPromedio> <Fecha>dateTime</Fecha> </pre> </ActualizarProducto> </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> <ActualizarProductoResponse xmlns="http://tempuri.org/"> <ActualizarProductoResult>string</ActualizarProductoResult> </ActualizarProductoResponse> </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 /ServicePrecios.asmx HTTP/1.1 Host: localhost 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:Header> <AuthHeader xmlns="http://tempuri.org/"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap12:Header> <soap12:Body> <ActualizarProducto xmlns="http://tempuri.org/"> <idSucursal>string</idSucursal> <pre> <IdProducto>int</IdProducto> <PrecioMinUnit>double</PrecioMinUnit> <PrecioMaxEmpaq>double</PrecioMaxEmpaq> <PrecioPromedio>double</PrecioPromedio> <Fecha>dateTime</Fecha> </pre> </ActualizarProducto> </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> <ActualizarProductoResponse xmlns="http://tempuri.org/"> <ActualizarProductoResult>string</ActualizarProductoResult> </ActualizarProductoResponse> </soap12:Body> </soap12:Envelope> DeshabilitarProducto Deshabilita un Producto de una Sucursal 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 /ServicePrecios.asmx HTTP/1.1 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/DeshabilitarProducto" <?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:Header> <AuthHeader xmlns="http://tempuri.org/"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap:Header> <soap:Body> <DeshabilitarProducto xmlns="http://tempuri.org/"> <idSucursal>string</idSucursal> <idProducto>string</idProducto> </DeshabilitarProducto> </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> <DeshabilitarProductoResponse xmlns="http://tempuri.org/"> <DeshabilitarProductoResult>string</DeshabilitarProductoResult> </DeshabilitarProductoResponse> </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 /ServicePrecios.asmx HTTP/1.1 Host: localhost 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:Header> <AuthHeader xmlns="http://tempuri.org/"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap12:Header> <soap12:Body> <DeshabilitarProducto xmlns="http://tempuri.org/"> <idSucursal>string</idSucursal> <idProducto>string</idProducto> </DeshabilitarProducto> </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> <DeshabilitarProductoResponse xmlns="http://tempuri.org/"> <DeshabilitarProductoResult>string</DeshabilitarProductoResult> </DeshabilitarProductoResponse> </soap12:Body> </soap12:Envelope> 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 /ServicePrecios.asmx/DeshabilitarProducto HTTP/1.1 Host: localhost Content-Type: application/x-www-form-urlencoded Content-Length: length idSucursal=string&idProducto=string 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://tempuri.org/">string</string> ObtenerListaProductos Obtiene la lista de Productos de una Sucursal 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 /ServicePrecios.asmx HTTP/1.1 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/ObtenerListaProductos" <?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:Header> <AuthHeader xmlns="http://tempuri.org/"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap:Header> <soap:Body> <ObtenerListaProductos xmlns="http://tempuri.org/"> <idSucursal>string</idSucursal> </ObtenerListaProductos> </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> <ObtenerListaProductosResponse xmlns="http://tempuri.org/"> <ObtenerListaProductosResult> <Precio> <IdProducto>int</IdProducto> <PrecioMinUnit>double</PrecioMinUnit> <PrecioMaxEmpaq>double</PrecioMaxEmpaq> <PrecioPromedio>double</PrecioPromedio> <Fecha>dateTime</Fecha> </Precio> <Precio> <IdProducto>int</IdProducto> <PrecioMinUnit>double</PrecioMinUnit> <PrecioMaxEmpaq>double</PrecioMaxEmpaq> <PrecioPromedio>double</PrecioPromedio> <Fecha>dateTime</Fecha> </Precio> </ObtenerListaProductosResult> </ObtenerListaProductosResponse> </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 /ServicePrecios.asmx HTTP/1.1 Host: localhost 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:Header> <AuthHeader xmlns="http://tempuri.org/"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap12:Header> <soap12:Body> <ObtenerListaProductos xmlns="http://tempuri.org/"> <idSucursal>string</idSucursal> </ObtenerListaProductos> </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> <ObtenerListaProductosResponse xmlns="http://tempuri.org/"> <ObtenerListaProductosResult> <Precio> <IdProducto>int</IdProducto> <PrecioMinUnit>double</PrecioMinUnit> <PrecioMaxEmpaq>double</PrecioMaxEmpaq> <PrecioPromedio>double</PrecioPromedio> <Fecha>dateTime</Fecha> </Precio> <Precio> <IdProducto>int</IdProducto> <PrecioMinUnit>double</PrecioMinUnit> <PrecioMaxEmpaq>double</PrecioMaxEmpaq> <PrecioPromedio>double</PrecioPromedio> <Fecha>dateTime</Fecha> </Precio> </ObtenerListaProductosResult> </ObtenerListaProductosResponse> </soap12:Body> </soap12:Envelope> 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 /ServicePrecios.asmx/ObtenerListaProductos HTTP/1.1 Host: localhost Content-Type: application/x-www-form-urlencoded Content-Length: length idSucursal=string HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ArrayOfPrecio xmlns="http://tempuri.org/"> <Precio> <IdProducto>int</IdProducto> <PrecioMinUnit>double</PrecioMinUnit> <PrecioMaxEmpaq>double</PrecioMaxEmpaq> <PrecioPromedio>double</PrecioPromedio> <Fecha>dateTime</Fecha> </Precio> <Precio> <IdProducto>int</IdProducto> <PrecioMinUnit>double</PrecioMinUnit> <PrecioMaxEmpaq>double</PrecioMaxEmpaq> <PrecioPromedio>double</PrecioPromedio> <Fecha>dateTime</Fecha> </Precio> </ArrayOfPrecio> ReplicarPrecios Realiza una réplica de los Precios de una Sucursal 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 /ServicePrecios.asmx HTTP/1.1 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/ReplicarPrecios" <?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:Header> <AuthHeader xmlns="http://tempuri.org/"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap:Header> <soap:Body> <ReplicarPrecios xmlns="http://tempuri.org/"> <idSucursal>string</idSucursal> </ReplicarPrecios> </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> <ReplicarPreciosResponse xmlns="http://tempuri.org/"> <ReplicarPreciosResult>string</ReplicarPreciosResult> </ReplicarPreciosResponse> </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 /ServicePrecios.asmx HTTP/1.1 Host: localhost 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:Header> <AuthHeader xmlns="http://tempuri.org/"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap12:Header> <soap12:Body> <ReplicarPrecios xmlns="http://tempuri.org/"> <idSucursal>string</idSucursal> </ReplicarPrecios> </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> <ReplicarPreciosResponse xmlns="http://tempuri.org/"> <ReplicarPreciosResult>string</ReplicarPreciosResult> </ReplicarPreciosResponse> </soap12:Body> </soap12:Envelope> 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 /ServicePrecios.asmx/ReplicarPrecios HTTP/1.1 Host: localhost Content-Type: application/x-www-form-urlencoded Content-Length: length idSucursal=string 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://tempuri.org/">string</string>