BasicHttpBinding_IService / Enviar
ASP AutoIt C C (Unicode) C++ C++ (Unicode) C# DataFlex Delphi Foxpro Go Java Node.js Objective-C Perl PHP Extension PowerBuilder Powershell PureBasic Python CkPython Ruby SQL Server Swift TCL VB.NET VB6 VBScript Xojo
import sys
import chilkat2
xml = chilkat2.Xml()
xml.Tag = "soapenv:Envelope"
xml.AddAttribute("xmlns:soapenv","http://schemas.xmlsoap.org/soap/envelope/")
xml.AddAttribute("xmlns:tem","http://tempuri.org/")
xml.AddAttribute("xmlns:ser","http://schemas.datacontract.org/2004/07/Services.ObjComprobante.v1_0")
xml.UpdateChildContent("soapenv:Header","")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:tokenEmpresa","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:tokenPassword","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:codigoSucursalEmisor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:tipoSucursal","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:tipoEmision","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:fechaInicioContingencia","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:motivoContingencia","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:tipoDocumento","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:numeroDocumentoFiscal","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:puntoFacturacionFiscal","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:fechaEmision","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:fechaSalida","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:naturalezaOperacion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:tipoOperacion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:destinoOperacion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:formatoCAFE","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:entregaCAFE","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:envioContenedor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:procesoGeneracion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:tipoVenta","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:informacionInteres","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:tipoClienteFE","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:tipoContribuyente","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:numeroRUC","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:digitoVerificadorRUC","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:razonSocial","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:direccion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:codigoUbicacion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:provincia","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:distrito","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:corregimiento","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:tipoIdentificacion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:nroIdentificacionExtranjero","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:paisExtranjero","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:telefono1","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:telefono2","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:telefono3","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:correoElectronico1","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:correoElectronico2","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:correoElectronico3","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:pais","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:cliente|ser:paisOtro","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:datosFacturaExportacion|ser:condicionesEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:datosFacturaExportacion|ser:monedaOperExportacion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:datosFacturaExportacion|ser:monedaOperExportacionNonDef","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:datosFacturaExportacion|ser:tipoDeCambio","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:datosFacturaExportacion|ser:montoMonedaExtranjera","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:datosFacturaExportacion|ser:puertoEmbarque","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:listaDocsFiscalReferenciados|ser:docFiscalReferenciado|ser:fechaEmisionDocFiscalReferenciado","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:listaDocsFiscalReferenciados|ser:docFiscalReferenciado|ser:cufeFEReferenciada","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:listaDocsFiscalReferenciados|ser:docFiscalReferenciado|ser:nroFacturaPapel","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:listaDocsFiscalReferenciados|ser:docFiscalReferenciado|ser:nroFacturaImpFiscal","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:listaAutorizadosDescargaFEyEventos|ser:autorizadoDescargaFEyEventos|ser:tipoContribuyente","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:listaAutorizadosDescargaFEyEventos|ser:autorizadoDescargaFEyEventos|ser:rucReceptor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:datosTransaccion|ser:listaAutorizadosDescargaFEyEventos|ser:autorizadoDescargaFEyEventos|ser:digitoVerifRucReceptor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:descripcion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:codigo","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:unidadMedida","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:cantidad","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:fechaFabricacion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:fechaCaducidad","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:codigoCPBSAbrev","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:codigoCPBS","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:unidadMedidaCPBS","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:infoItem","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:precioUnitario","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:precioUnitarioDescuento","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:precioItem","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:precioAcarreo","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:precioSeguro","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:valorTotal","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:codigoGTIN","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:cantGTINCom","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:codigoGTINInv","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:cantGTINComInv","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:tasaITBMS","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:valorITBMS","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:tasaISC","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:valorISC","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:listaItemOTI|ser:oti|ser:tasaOTI","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:listaItemOTI|ser:oti|ser:valorTasa","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:modalidadOperacionVenta","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:modalidadOperacionVentaNoDef","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:chasis","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:codigoColor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:colorNombre","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:potenciaMotor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:capacidadMotor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:pesoNeto","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:pesoBruto","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:tipoCombustible","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:tipoCombustibleNoDef","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:numeroMotor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:capacidadTraccion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:distanciaEjes","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:anoModelo","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:anoFabricacion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:tipoPintura","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:tipoPinturaNodef","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:tipoVehiculo","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:usoVehiculo","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:condicionVehiculo","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:vehiculo|ser:capacidadPasajeros","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:medicina|ser:nroLote","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:medicina|ser:cantProductosLote","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:pedidoComercialItem|ser:nroPedidoCompraItem","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:pedidoComercialItem|ser:nroItem","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaItems|ser:item|ser:pedidoComercialItem|ser:infoItem","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:totalPrecioNeto","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:totalITBMS","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:totalISC","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:totalMontoGravado","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:totalDescuento","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:totalAcarreoCobrado","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:valorSeguroCobrado","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:totalFactura","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:totalValorRecibido","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:vuelto","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:tiempoPago","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:nroItems","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:totalTodosItems","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:listaDescBonificacion|ser:descuentoBonificacion|ser:descDescuento","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:listaDescBonificacion|ser:descuentoBonificacion|ser:montoDescuento","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:listaFormaPago|ser:formaPago|ser:formaPagoFact","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:listaFormaPago|ser:formaPago|ser:descFormaPago","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:listaFormaPago|ser:formaPago|ser:valorCuotaPagada","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:retencion|ser:codigoRetencion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:retencion|ser:montoRetencion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:listaPagoPlazo|ser:pagoPlazo|ser:fechaVenceCuota","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:listaPagoPlazo|ser:pagoPlazo|ser:valorCuota","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:listaPagoPlazo|ser:pagoPlazo|ser:infoPagoCuota","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:listaTotalOTI|ser:totalOti|ser:codigoTotalOTI","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:totalesSubTotales|ser:listaTotalOTI|ser:totalOti|ser:valorTotalOTI","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:pedidoComercialGlobal|ser:nroPedidoCompraGlobal","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:pedidoComercialGlobal|ser:listaNroAceptacion|ser:nroAceptacion","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:pedidoComercialGlobal|ser:codigoReceptor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:pedidoComercialGlobal|ser:codigoSistemaEmisor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:pedidoComercialGlobal|ser:infoPedido","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoLogistica|ser:nroVolumenes","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoLogistica|ser:pesoCarga","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoLogistica|ser:unidadPesoTotal","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoLogistica|ser:licVehiculoCarga","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoLogistica|ser:razonSocialTransportista","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoLogistica|ser:tipoRucTransportista","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoLogistica|ser:rucTransportista","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoLogistica|ser:digitoVerifRucTransportista","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoLogistica|ser:infoLogisticaEmisor","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:tipoRucEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:numeroRucEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:digitoVerifRucEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:razonSocialEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:direccionEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:codigoUbicacionEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:provinciaEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:distritoEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:corregimientoEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:telefonoEntrega","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:infoEntrega|ser:telefonoEntregaAlt","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:usoPosterior|ser:cufe","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaExtras|ser:extra|ser:attribute","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaExtras|ser:extra|ser:enabled","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaExtras|ser:extra|ser:id","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaExtras|ser:extra|ser:orden","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:listaExtras|ser:extra|ser:value","string")
xml.UpdateChildContent("soapenv:Body|tem:Enviar|tem:documento|ser:serialDispositivo","string")
# In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required.
xml.EmitXmlDecl = False
soapRequestBody = xml.GetXml()
endpoint = "http://demoemision.thefactoryhka.com.pa/ws/obj/v1.0/Service.svc"
soapAction = "http://tempuri.org/IService/Enviar"
# For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
contentType = "text/xml"
http = chilkat2.Http()
http.ClearHeaders()
http.SetRequestHeader("Content-Type",contentType)
http.SetRequestHeader("SOAPAction",soapAction)
# resp is a CkHttpResponse
resp = http.PostXml(endpoint,soapRequestBody,"utf-8")
if (http.LastMethodSuccess == False):
print(http.LastErrorText)
print("Failed to send SOAP request.")
sys.exit()
# Get the XML response body.
responseXml = chilkat2.Xml()
resp.GetBodyXml(responseXml)
statusCode = resp.StatusCode
print("response status code: " + str(statusCode))
# If the status code does not indicate succcess, then show the response XML,
# which probably contains error information.
if (statusCode != 200):
print(responseXml.GetXml())
sys.exit()
print(responseXml.GetXml())
# Parse the successful SOAP response XML.
# This is a sample of the response XML, but the namespace prefixes will be different.
# We can parse the result using "*" for the namespace prefixes (see below).
codigo = responseXml.GetChildContent("*:Body|*:EnviarResponse|*:EnviarResult|*:codigo")
resultado = responseXml.GetChildContent("*:Body|*:EnviarResponse|*:EnviarResult|*:resultado")
mensaje = responseXml.GetChildContent("*:Body|*:EnviarResponse|*:EnviarResult|*:mensaje")
cufe = responseXml.GetChildContent("*:Body|*:EnviarResponse|*:EnviarResult|*:cufe")
qr = responseXml.GetChildContent("*:Body|*:EnviarResponse|*:EnviarResult|*:qr")
fechaRecepcionDGI = responseXml.GetChildContent("*:Body|*:EnviarResponse|*:EnviarResult|*:fechaRecepcionDGI")
nroProtocoloAutorizacion = responseXml.GetChildContent("*:Body|*:EnviarResponse|*:EnviarResult|*:nroProtocoloAutorizacion")
fechaLimite = responseXml.GetChildContent("*:Body|*:EnviarResponse|*:EnviarResult|*:fechaLimite")