meta data de esta página
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
enviarguiaremision [2025/10/11 20:07] 5.9.120.135 se ha restaurado la vieja versión (2025/09/04 05:53) |
enviarguiaremision [2025/10/16 05:38] (actual) 57.141.2.7 se ha restaurado la vieja versión (2025/08/25 04:23) |
||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | Metodo guiac remision | + | ====== Método EnviarGuiaRemision() ====== |
+ | |||
+ | [[manual_de_integracion_obj|{{ : | ||
+ | |||
+ | El request del método es el siguiente: | ||
+ | |||
+ | | Request: Parámetro a enviar ||| | ||
+ | ^ **Tipo** ^ **Identificador** ^ **Descripción** ^ | ||
+ | | String | RUC | Proporcionado por el cliente. | | ||
+ | | String | Usuario | Proporcionado por The Factory HKA. | | ||
+ | | String | Password | Proporcionado por The Factory HKA. | | ||
+ | | Object | Documento | xml siguiente | ||
+ | |||
+ | ---- | ||
+ | |||
+ | == OBJETO EJEMPLO == | ||
+ | |||
+ | <code xml> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <!--Zero or more repetitions: | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <!--Zero or more repetitions: | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <!--Zero or more repetitions: | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | === Proceso para consumo EnviarGuiaRemision === | ||
+ | |||
+ | * Se inicializa un objeto ServiceClient o Servicio | ||
+ | * Se inicializa un objeto PeticionGuiaRemision donde se ingresan el RUC, el usuario de Integración ,clave de Integración y Documento | ||
+ | * Se hace consumo del método EnviarGuiaRemision contenido en el objeto serviceClient y se coloca como parámetro la petición anterior, la respuesta estará contenida en un objeto llamado RespuestaPeticion, | ||
+ | |||
+ | <code csharp Codigo Ejemplo .NET> | ||
+ | try | ||
+ | { | ||
+ | ServiceClient servicio = new ServiceClient(); | ||
+ | PeticionGuiaRemision pet = new PeticionGuiaRemision() | ||
+ | { | ||
+ | Clave = " | ||
+ | RUC = " | ||
+ | Usuario = " | ||
+ | }; | ||
+ | |||
+ | pet.Documento = new GuiaRemision(); | ||
+ | |||
+ | |||
+ | |||
+ | // | ||
+ | GuiaRemision guia = new GuiaRemision(); | ||
+ | guia.InfoGuia = new InfoGuiaRemision(); | ||
+ | |||
+ | InfoGuiaRemision info = new InfoGuiaRemision | ||
+ | { | ||
+ | ContribuyenteEspecial = " | ||
+ | DirEstablecimiento = "dir establecimineto", | ||
+ | DirPartida = " | ||
+ | FechaIniTransporte = " | ||
+ | FechaFinTransporte = " | ||
+ | ObligadoContabilidad = " | ||
+ | Placa = " | ||
+ | RazonSocialTransportista = "eazon social transportista", | ||
+ | //Rise = " | ||
+ | RucTransportista = " | ||
+ | TipoIdentificacionTransportista = " | ||
+ | |||
+ | }; | ||
+ | |||
+ | guia.InfoGuia = info; | ||
+ | guia.DirCliente = " | ||
+ | |||
+ | // | ||
+ | guia.InfoTributaria = new InfoTributaria(); | ||
+ | guia.InfoTributaria = InformacionTrib(); | ||
+ | guia.Destinatarios = new List< | ||
+ | Destinatario dest = new Destinatario | ||
+ | { | ||
+ | CodDocSustento = " | ||
+ | CodEstabDestino = " | ||
+ | DirDestinatario = " | ||
+ | FechaEmisionDocSustento = " | ||
+ | IdentificacionDestinatario = " | ||
+ | MotivoTraslado = " | ||
+ | NumAutDocSustento = " | ||
+ | NumDocSustento = " | ||
+ | RazonSocialDestinatario = "razon social destinatario", | ||
+ | Ruta = " | ||
+ | DocAduaneroUnico = " | ||
+ | |||
+ | }; | ||
+ | guia.DirCliente = " | ||
+ | guia.CPCliente = " | ||
+ | |||
+ | |||
+ | dest.Detalles = new List< | ||
+ | DetalleGuia detg = new DetalleGuia | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | }; | ||
+ | |||
+ | detg.DetallesAdicionales = new List< | ||
+ | DetAdicional d = new DetAdicional(); | ||
+ | d.Nombre = " | ||
+ | d.Valor = " | ||
+ | detg.DetallesAdicionales.Add(d); | ||
+ | dest.Detalles.Add(detg); | ||
+ | guia.Destinatarios.Add(dest); | ||
+ | guia.Notificar = " | ||
+ | guia.Version = " | ||
+ | guia.CorreoNotificar = textBox76.Text; | ||
+ | pet.Documento = guia; | ||
+ | |||
+ | |||
+ | var resp = servicio.EnviarGuiaRemision(pet); | ||
+ | servicio.Close(); | ||
+ | richTextBox1.Text = " | ||
+ | } | ||
+ | catch (Exception ex) | ||
+ | { | ||
+ | |||
+ | MessageBox.Show(" | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | == ARCHIVOS GUIA DE REMISION XML/XSD == | ||
+ | |||
+ | En este enlace se encuentran disponibles los xml y xsd de Guia de Remision | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ---- | ||
[[manual_de_integracion_obj|{{: | [[manual_de_integracion_obj|{{: | ||
---- | ---- | ||
+ | |||
+ | |||