WSGRE
Click here for a complete list of operations.
GenerarGRE
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /WSGuiaElectronica/WSGRE.asmx HTTP/1.1
Host: 104.215.98.8
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GenerarGRE"
<?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>
<GenerarGRE xmlns="http://tempuri.org/">
<ObjDocumento>
<BaseDatos>string</BaseDatos>
<TipoDocumentoGR>string</TipoDocumentoGR>
<SerieGR>string</SerieGR>
<NumeroGR>string</NumeroGR>
<cbc_UBLVersionID>string</cbc_UBLVersionID>
<cbc_CustomizationID>string</cbc_CustomizationID>
<FechaGR>dateTime</FechaGR>
<TimeGR>string</TimeGR>
<Nota>string</Nota>
<remTipoDocumento>string</remTipoDocumento>
<remNumeroDocumento>string</remNumeroDocumento>
<remNombre>string</remNombre>
<desTipoDocumento>string</desTipoDocumento>
<desNumeroDocumento>string</desNumeroDocumento>
<desNombre>string</desNombre>
<NombreDocVenta>string</NombreDocVenta>
<TipoDocVenta>string</TipoDocVenta>
<NumeroDocVenta>string</NumeroDocVenta>
<TipoTraslado>string</TipoTraslado>
<DescripcionTraslado>string</DescripcionTraslado>
<PesoTotal>double</PesoTotal>
<Bultos>int</Bultos>
<PesoTotalCarga>double</PesoTotalCarga>
<TipoTransporte>string</TipoTransporte>
<InicioTraslado>dateTime</InicioTraslado>
<NumRUCTransportista>string</NumRUCTransportista>
<NombreTransportista>string</NombreTransportista>
<Placa>string</Placa>
<TipDocChofer>string</TipDocChofer>
<DocumentoChofer>string</DocumentoChofer>
<ApellidosChofer>string</ApellidosChofer>
<NombresChofer>string</NombresChofer>
<LicenciaChofer>string</LicenciaChofer>
<UbigeoPartida>string</UbigeoPartida>
<DireccionPartida>string</DireccionPartida>
<UbigeoLlegada>string</UbigeoLlegada>
<DireccionLlegada>string</DireccionLlegada>
<DAM>string</DAM>
<DPartidaRUC>string</DPartidaRUC>
<DPartidaAnexoSunat>string</DPartidaAnexoSunat>
<DDestinoRUC>string</DDestinoRUC>
<DDestinoAnexoSunat>string</DDestinoAnexoSunat>
<Lista>
<Codigo>string</Codigo>
<Cantidad>double</Cantidad>
<Unidad>string</Unidad>
<Descripcion>string</Descripcion>
<CodigoSunat>string</CodigoSunat>
</Lista>
<Items>
<DocumentoD>
<Codigo>string</Codigo>
<Cantidad>double</Cantidad>
<Unidad>string</Unidad>
<Descripcion>string</Descripcion>
<CodigoSunat>string</CodigoSunat>
</DocumentoD>
<DocumentoD>
<Codigo>string</Codigo>
<Cantidad>double</Cantidad>
<Unidad>string</Unidad>
<Descripcion>string</Descripcion>
<CodigoSunat>string</CodigoSunat>
</DocumentoD>
</Items>
</ObjDocumento>
</GenerarGRE>
</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>
<GenerarGREResponse xmlns="http://tempuri.org/">
<GenerarGREResult>
<IdRespuesta>int</IdRespuesta>
<Descripcion>string</Descripcion>
<Hash>string</Hash>
</GenerarGREResult>
</GenerarGREResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /WSGuiaElectronica/WSGRE.asmx HTTP/1.1
Host: 104.215.98.8
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>
<GenerarGRE xmlns="http://tempuri.org/">
<ObjDocumento>
<BaseDatos>string</BaseDatos>
<TipoDocumentoGR>string</TipoDocumentoGR>
<SerieGR>string</SerieGR>
<NumeroGR>string</NumeroGR>
<cbc_UBLVersionID>string</cbc_UBLVersionID>
<cbc_CustomizationID>string</cbc_CustomizationID>
<FechaGR>dateTime</FechaGR>
<TimeGR>string</TimeGR>
<Nota>string</Nota>
<remTipoDocumento>string</remTipoDocumento>
<remNumeroDocumento>string</remNumeroDocumento>
<remNombre>string</remNombre>
<desTipoDocumento>string</desTipoDocumento>
<desNumeroDocumento>string</desNumeroDocumento>
<desNombre>string</desNombre>
<NombreDocVenta>string</NombreDocVenta>
<TipoDocVenta>string</TipoDocVenta>
<NumeroDocVenta>string</NumeroDocVenta>
<TipoTraslado>string</TipoTraslado>
<DescripcionTraslado>string</DescripcionTraslado>
<PesoTotal>double</PesoTotal>
<Bultos>int</Bultos>
<PesoTotalCarga>double</PesoTotalCarga>
<TipoTransporte>string</TipoTransporte>
<InicioTraslado>dateTime</InicioTraslado>
<NumRUCTransportista>string</NumRUCTransportista>
<NombreTransportista>string</NombreTransportista>
<Placa>string</Placa>
<TipDocChofer>string</TipDocChofer>
<DocumentoChofer>string</DocumentoChofer>
<ApellidosChofer>string</ApellidosChofer>
<NombresChofer>string</NombresChofer>
<LicenciaChofer>string</LicenciaChofer>
<UbigeoPartida>string</UbigeoPartida>
<DireccionPartida>string</DireccionPartida>
<UbigeoLlegada>string</UbigeoLlegada>
<DireccionLlegada>string</DireccionLlegada>
<DAM>string</DAM>
<DPartidaRUC>string</DPartidaRUC>
<DPartidaAnexoSunat>string</DPartidaAnexoSunat>
<DDestinoRUC>string</DDestinoRUC>
<DDestinoAnexoSunat>string</DDestinoAnexoSunat>
<Lista>
<Codigo>string</Codigo>
<Cantidad>double</Cantidad>
<Unidad>string</Unidad>
<Descripcion>string</Descripcion>
<CodigoSunat>string</CodigoSunat>
</Lista>
<Items>
<DocumentoD>
<Codigo>string</Codigo>
<Cantidad>double</Cantidad>
<Unidad>string</Unidad>
<Descripcion>string</Descripcion>
<CodigoSunat>string</CodigoSunat>
</DocumentoD>
<DocumentoD>
<Codigo>string</Codigo>
<Cantidad>double</Cantidad>
<Unidad>string</Unidad>
<Descripcion>string</Descripcion>
<CodigoSunat>string</CodigoSunat>
</DocumentoD>
</Items>
</ObjDocumento>
</GenerarGRE>
</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>
<GenerarGREResponse xmlns="http://tempuri.org/">
<GenerarGREResult>
<IdRespuesta>int</IdRespuesta>
<Descripcion>string</Descripcion>
<Hash>string</Hash>
</GenerarGREResult>
</GenerarGREResponse>
</soap12:Body>
</soap12:Envelope>