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 | |||
|
enviarguiaremision [2025/12/07 08:39] 57.141.0.13 se ha restaurado la vieja versión (2025/06/28 02:15) |
enviarguiaremision [2025/12/13 09:01] (actual) 57.141.2.19 se ha restaurado la vieja versión (2025/09/01 12:37) |
||
|---|---|---|---|
| Línea 1: | Línea 1: | ||
| - | ====== Método EnviarGuiaRemision() ====== | + | Metodo guiac remision |
| - | + | ||
| - | [[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|{{: | ||
| ---- | ---- | ||
| - | |||
| - | |||