FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
|||
|
|||
Añadir TAG's al código
¿Alguien ha conseguido enviar el famoso archivo comprimido a Vizcaya con la librerías Chilkat? Sí que consigo enviar el xml a Guipuzcoa, pero el de Vizcaya no, al ser un .gz,
Este es mi código en vb6: Código:
Public Function EnviarXMLTbai(sFich As String) As String 'devuelve el identificadorTBAI que da el servidor Dim http As New ChilkatHttp Dim success As Boolean ' Get the XML we wish to send in the body of the request. Dim sbXml As New ChilkatStringBuilder success = sbXml.LoadFile(sFich, "utf-8") If (success = False) Then Debug.Print ("Failed to load XML that is to be the HTTP request body") Exit Function End If Dim Url As String Url = "tbai-z.egoitza.gipuzkoa.eus/sarrerak/alta" Dim Resp As ChilkatHttpResponse Set Resp = http.PostXml(Url, sbXml.GetAsString, "utf-8") If (http.LastMethodSuccess = False) Then Debug.Print (http.LastErrorText) Exit Function End If http.ClearHeaders EnviarXMLTbai = Resp.StatusCode Última edición por Neftali [Germán.Estévez] fecha: 12-01-2022 a las 08:51:59. |
Herramientas | Buscar en Tema |
Desplegado | |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
SII -Nuevo sistema de la Agencia Tributaria española de envío de datos vía Webservice | newtron | Internet | 3565 | Hace 1 Semana 11:04:13 |
Como utilizar la ayuda del nuevo Sistema Operativo | gluglu | Humor | 3 | 24-09-2007 09:39:05 |
Aplicacion Agencia De Viajes | ArdiIIa | Varios | 9 | 20-01-2007 16:49:53 |
El Vasco Aguirre | Al González | La Taberna | 5 | 26-05-2006 09:22:28 |
Microsoft ha lanzado su nuevo sistema operativo | DarkByte | Humor | 0 | 25-01-2004 09:21:14 |
|