‎2020 Jan 09 8:24 PM
Greetings gurus. I write the following post to request your help about the following error: I am trying to consume a web service through a proxy, but upon receiving the response from the web service an exception is generated CX_ST_MATCH_ELEMENT. I was reviewing the error through the SRT_UTIL transaction, but I don't understand where the error is. Then I write the XML that generates the SRT_UTIL transaction. I also give you the answer that the Web Service returns. Thank you very much for all your help.
XML SRT_UTIL Transaction
<?xml version="1.0" encoding="utf-8" ?> - <ERROR_CONTEXT>
- <ERROR_INFO> - <EXCEPTION_INFO> <TYPE>CX_ST_MATCH_ELEMENT</TYPE> <ERROR_TEXT>Fin del elemento {http://schemas.datacontract.org/2004/07/WSNUBEDIGITALRECEPCION.Clases}ENTDatoAdicionalFactura previsto</ERROR_TEXT> </EXCEPTION_INFO> - <ADDITIONAL_EXCEPTION_DATA> <TRANSFORMATION_NAME>/1SAI/TXSA413984EABEC5EC17B8D</TRANSFORMATION_NAME> <OFFSET>1326</OFFSET> <XPATH>n0:BuscarFacturaReembolsoResponse(1)n0:BuscarFacturaReembolsoResult(1)a:ENTFactura(1)a:ENTDatoAdicionalFactura(23)</XPATH> </ADDITIONAL_EXCEPTION_DATA> </ERROR_INFO> - <CONSUMER_INFO> <INTERFACE_NAME>IWSNUBE_CONSULTA_REEMBOLSO</INTERFACE_NAME> <INTERFACE_NAMESPACE>http://tempuri.org/</INTERFACE_NAMESPACE> <CONSUMER_PROXY>ZEC02CO_IWSNUBE_CONSULTA_REEMB</CONSUMER_PROXY> <LOGICAL_PORT>ZEC02CO_CONSULTA</LOGICAL_PORT> <OPERATION_NAME>BuscarFacturaReembolso</OPERATION_NAME> <OPERATION_NAMESPACE>http://tempuri.org/</OPERATION_NAMESPACE> <PROCESSING_UNIT>Sector 1: Consumer</PROCESSING_UNIT> <PROCESSING_MODE>Synchronous</PROCESSING_MODE> <PROCESSING_TYPE>Remote</PROCESSING_TYPE> <WORK_PROCESS_NUMBER>2</WORK_PROCESS_NUMBER> <WORK_PROCESS_PID>11028</WORK_PROCESS_PID> <TERMINAL_NAME>DESKTOP-L4EPR8U</TERMINAL_NAME> </CONSUMER_INFO> - <TRANSPORT_INFO> <AUTHENTICATION_METHOD>sapsp:HTTPBasic</AUTHENTICATION_METHOD> <TARGET_HOST_NAME>factdev.sanulac.ec</TARGET_HOST_NAME> <TARGET_PORT_NUMBER>9898</TARGET_PORT_NUMBER> <TARGET_PATH>/WSNUBESANULACRECEPCION/WSNUBE_CONSULTA_REEMBOLSO.svc</TARGET_PATH> <HTTP_TIMEOUT>0</HTTP_TIMEOUT> </TRANSPORT_INFO> </ERROR_CONTEXT>Web Service ResponseSPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S33 { color: #009300; }
<n0:BuscarFacturaReembolsoResponse xmlns:n0="http://tempuri.org/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:a="http://schemas.datacontract.org/2004/07/WSNUBEDIGITALRECEPCION.Clases">
<n0:BuscarFacturaReembolsoResult>
<a:ENTFactura>
<a:Ambiente>2</a:Ambiente>
<a:AutorizacionSRI>2210201901179036871800120010150005000670103649012</a:AutorizacionSRI>
<a:Campo1 i:nil="true"/>
<a:Campo10 i:nil="true"/>
<a:Campo2 i:nil="true"/>
<a:Campo3 i:nil="true"/>
<a:Campo4 i:nil="true"/>
<a:Campo5 i:nil="true"/>
<a:Campo6 i:nil="true"/>
<a:Campo7 i:nil="true"/>
<a:Campo8 i:nil="true"/>
<a:Campo9 i:nil="true"/>
<a:ClaveAcceso>2210201901179036871800120010150005000670103649012</a:ClaveAcceso>
<a:CodDocReemb i:nil="true"/>
<a:CodigoDocumento>01</a:CodigoDocumento>
<a:CodigoTransaccionERP i:nil="true"/>
<a:ComercioExterior i:nil="true"/>
<a:ContribuyenteEspecial>5368</a:ContribuyenteEspecial>
<a:DatosFacturadorManual i:nil="true" xmlns:b="http://schemas.datacontract.org/2004/07/WSNUBEDIGITALRECEPCION.Clases.Facturas"/>
<a:DirComprador i:nil="true"/>
<a:DireccionEstablecimiento>Avenida Simón BolÃvar s/n, VÃa a Nayón</a:DireccionEstablecimiento>
<a:DireccionMatriz>Avenida Simón BolÃvar s/n, VÃa a Nayón</a:DireccionMatriz>
<a:ENTDatoAdicionalFactura>
<b:ClsENTDatoAdicionalFactura>
<b:Descripcion>PRESTAMO HIPOTECARIO PARA LA VIVIENDA CAR2020033800000</b:Descripcion>
<b:IdDatoAdicionalFactura>15909</b:IdDatoAdicionalFactura>
<b:IdFactura>1</b:IdFactura>
<b:Nombre>Detalle</b:Nombre>
</b:ClsENTDatoAdicionalFactura>
<b:ClsENTDatoAdicionalFactura>
<b:Descripcion>PRESTAMO HIPOTECARIO</b:Descripcion>
<b:IdDatoAdicionalFactura>15942</b:IdDatoAdicionalFactura>
<b:IdFactura>1</b:IdFactura>
<b:Nombre>detalle2</b:Nombre>
</b:ClsENTDatoAdicionalFactura>
</a:ENTDatoAdicionalFactura>
<a:ENTDatosOpcionales>
<b:DirectorioDocumento>PRUEBA</b:DirectorioDocumento>
<b:MailResponsable>PRUEBA</b:MailResponsable>
<b:NombreDocumento>PRUEBA</b:NombreDocumento>
<b:UsuarioCreador>PRUEBA</b:UsuarioCreador>
</a:ENTDatosOpcionales>
<a:ENTDetalleFactura>
<b:ClsENTDetalleFactura>
<b:Cantidad>1.000000</b:Cantidad>
<b:CodigoAuxiliar>0</b:CodigoAuxiliar>
<b:CodigoPrincipal>1036490</b:CodigoPrincipal>
<b:Descripcion>GESTION DE COBRANZA EXTRAJUDICIAL GCEJ CAR2020033800000</b:Descripcion>
<b:Descuento>0.000000</b:Descuento>
<b:ENTDatoAdicionalDetalleFactura/>
<b:ENTDetalleFacturaImpuesto>
<b:ClsENTDetalleFacturaImpuesto>
<b:BaseImponible>8.320000</b:BaseImponible>
<b:Codigo>2</b:Codigo>
<b:CodigoPorcentaje>2</b:CodigoPorcentaje>
<b:IdDetalleFactura>0</b:IdDetalleFactura>
<b:IdDetalleFacturaImpuesto>30336</b:IdDetalleFacturaImpuesto>
<b:Tarifa>12.000000</b:Tarifa>
<b:Valor>1.000000</b:Valor>
</b:ClsENTDetalleFacturaImpuesto>
</b:ENTDetalleFacturaImpuesto>
<b:IdDetalleFactura>8970</b:IdDetalleFactura>
<b:IdFactura>0</b:IdFactura>
<b:PrecioTotalSinImpuesto>8.320000</b:PrecioTotalSinImpuesto>
<b:PrecioUnitario>8.320000</b:PrecioUnitario>
<b:UnidadMedida i:nil="true"/>
<b:precioSinSubsidio i:nil="true"/>
</b:ClsENTDetalleFactura>
</a:ENTDetalleFactura>
<a:ENTFacturaCompensacion/>
<a:ENTFacturaImpuesto>
<b:ClsENTFacturaImpuesto>
<b:BaseImponible>8.320000</b:BaseImponible>
<b:Codigo>2</b:Codigo>
<b:CodigoPorcentaje>2</b:CodigoPorcentaje>
<b:DescuentoAdicional i:nil="true"/>
<b:IdFactura>0</b:IdFactura>
<b:IdFacturaImpuesto>14</b:IdFacturaImpuesto>
<b:Tarifa>0</b:Tarifa>
<b:Valor>1.000000</b:Valor>
</b:ClsENTFacturaImpuesto>
</a:ENTFacturaImpuesto>
<a:ENTFacturaPagos/>
<a:ENTFacturaReembolso/>
<a:EmailResponsable i:nil="true"/>
<a:Establecimiento>001</a:Establecimiento>
<a:Estado>10</a:Estado>
<a:FechaAprueba>2019-11-25T10:11:13.95</a:FechaAprueba>
<a:FechaAutorizacion>2019-10-23T06:14:10</a:FechaAutorizacion>
<a:FechaCarga i:nil="true"/>
<a:FechaEmision>2019-10-22T00:00:00</a:FechaEmision>
<a:FleteInternacional i:nil="true"/>
<a:GastosAduaneros i:nil="true"/>
<a:GastosTransporteOtros i:nil="true"/>
<a:GuiaRemision>000</a:GuiaRemision>
<a:Ice>0.000000</a:Ice>
<a:IdFactura>2482</a:IdFactura>
<a:IdUsuarioAprueba>ADMIN</a:IdUsuarioAprueba>
<a:IdentificacionComprador>0915477509</a:IdentificacionComprador>
<a:ImporteTotal>9.320000</a:ImporteTotal>
<a:IncoTermFactura i:nil="true"/>
<a:IncoTermTotalSinImpuestos i:nil="true"/>
<a:Iva>0.000000</a:Iva>
<a:LugarIncoTerm i:nil="true"/>
<a:Moneda>USD</a:Moneda>
<a:NombreArchivo i:nil="true"/>
<a:NombreComercial>BANCO DE LA PRODUCCION S.A. PRODUBANCO</a:NombreComercial>
<a:ObligadoContabilidad>SI</a:ObligadoContabilidad>
<a:PaisAdquisicion i:nil="true"/>
<a:PaisDestino i:nil="true"/>
<a:PaisOrigen i:nil="true"/>
<a:Propina>0</a:Propina>
<a:PuertoDestino i:nil="true"/>
<a:PuertoEmbarque i:nil="true"/>
<a:PuntoEmision>015</a:PuntoEmision>
<a:RazonSocial>BANCO DE LA PRODUCCION S.A. PRODUBANCO</a:RazonSocial>
<a:RazonSocialComprador>KNEZEVICH PILAY JESSICA KATHERINE</a:RazonSocialComprador>
<a:Ruc>1790368718001</a:Ruc>
<a:Secuencial>000500067</a:Secuencial>
<a:SecuencialERP i:nil="true"/>
<a:SeguroInternacional i:nil="true"/>
<a:Tipo i:nil="true"/>
<a:TipoEmision>1</a:TipoEmision>
<a:TipoIdentificacionComprador>05</a:TipoIdentificacionComprador>
<a:TotalBaseImponibleReembolso i:nil="true"/>
<a:TotalComprobantesReembolso i:nil="true"/>
<a:TotalDescuento>0</a:TotalDescuento>
<a:TotalImpuestoReembolso i:nil="true"/>
<a:TotalSinImpuesto>8.320000</a:TotalSinImpuesto>
<a:TotalSubsidio i:nil="true"/>
<a:UsuarioCreador i:nil="true"/>
<a:UsuarioProceso i:nil="true"/>
<a:UsuarioTransaccionERP i:nil="true"/>
<a:valorRetIva i:nil="true"/>
<a:valorRetRenta i:nil="true"/>
</a:ENTFactura>
</n0:BuscarFacturaReembolsoResult>
<n0:mensaje i:nil="true"/>
</n0:BuscarFacturaReembolsoResponse>
‎2020 Jan 09 8:48 PM
The message seems to miss data inside the element ENTDatoAdicionalFactura, its end was not expected.
<a:ENTDatoAdicionalFactura>
<b:ClsENTDatoAdicionalFactura>
<b:Descripcion>PRESTAMO HIPOTECARIO PARA LA VIVIENDA CAR2020033800000</b:Descripcion>
<b:IdDatoAdicionalFactura>15909</b:IdDatoAdicionalFactura>
<b:IdFactura>1</b:IdFactura>
<b:Nombre>Detalle</b:Nombre>
</b:ClsENTDatoAdicionalFactura>
<b:ClsENTDatoAdicionalFactura>
<b:Descripcion>PRESTAMO HIPOTECARIO</b:Descripcion>
<b:IdDatoAdicionalFactura>15942</b:IdDatoAdicionalFactura>
<b:IdFactura>1</b:IdFactura>
<b:Nombre>detalle2</b:Nombre>
</b:ClsENTDatoAdicionalFactura>
</a:ENTDatoAdicionalFactura>
What says your WSDL?