Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Solución pública Facturación Electrónica/Ley Crea y Crece (ES) > Preguntas técnicas, códigos, esquemas, envíos,...
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo Hace 1 Día
JoseLeeTo JoseLeeTo is offline
Miembro
 
Registrado: jun 2021
Posts: 84
Poder: 6
JoseLeeTo Va por buen camino
CancelInvoice - Error Interno

Buenos días,

¿Alguien ha podido enviar una factura de cancelación\anulación CancelInvoice al entorno de pruebas?.

Si tuviese la amabilidad de poner el Soap, para ver los datos que se remiten (y comparar el CollaborationInfo" y el "Service" del Soap), le estaría muy agradecido, ya que por alguna razón siempre me devuelve "Error interno".

Muchas gracias de antemano.
Responder Con Cita
  #2  
Antiguo Hace 1 Día
jlmoli_67 jlmoli_67 is online now
Miembro
 
Registrado: feb 2024
Posts: 147
Poder: 3
jlmoli_67 Va por buen camino
hola.
a ver si te sirve

Código:
------=_Part_e09990a9e20b400b80079772f8f5afc7
Content-Type: application/soap+xml; charset=UTF-8
Content-Transfer-Encoding: 8bit

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:eb3="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"><soapenv:Header><eb3:Messaging soapenv:mustUnderstand="1"><eb3:UserMessage><eb3:MessageInfo><eb3:Timestamp>2026-11-17T17:37:20.798Z</eb3:Timestamp><eb3:MessageId>uuid-ee1e06dc-55d4-41e0-a4c5-89787d4127ed</eb3:MessageId></eb3:MessageInfo><eb3:PartyInfo><eb3:From><eb3:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:iso6523:9920">nif autorizado</eb3:PartyId><eb3:Role>ebms:initiator</eb3:Role></eb3:From><eb3:To><eb3:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:iso6523:9920">Q2826000H</eb3:PartyId><eb3:Role>ebms:responder</eb3:Role></eb3:To></eb3:PartyInfo><eb3:CollaborationInfo><eb3:Service>urn:cen.eu:en16931:cancelinvoice</eb3:Service><eb3:Action>CANCELINVOICE</eb3:Action><eb3:ConversationId>1345b0c7-cb03-4c9f-a2b1-53493e06adc5</eb3:ConversationId></eb3:CollaborationInfo><eb3:PayloadInfo><eb3:PartInfo href="cid:CancelarFact.xml"><eb3:PartProperties><eb3:Property name="MimeType">application/xml</eb3:Property></eb3:PartProperties></eb3:PartInfo></eb3:PayloadInfo></eb3:UserMessage></eb3:Messaging></soapenv:Header><soapenv:Body/></soapenv:Envelope>
------=_Part_e09990a9e20b400b80079772f8f5afc7
Content-Type: application/xml; charset=UTF-8
Content-ID: <CancelarFact.xml>
Content-Transfer-Encoding: 8bit

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ApplicationResponse xmlns="urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><cbc:ID>VOID-20261117-8595</cbc:ID><cbc:IssueDate>2026-11-17</cbc:IssueDate><cac:SenderParty></cac:SenderParty><cac:ReceiverParty></cac:ReceiverParty><cac:DocumentResponse><cac:Response><cbc:ResponseCode>CANCELINVOICE</cbc:ResponseCode><cbc:Description>Anulacion por error en emision sin transaccion real</cbc:Description><cbc:EffectiveDate>2026-10-05</cbc:EffectiveDate></cac:Response><cac:DocumentReference><cbc:ID>CLASEA00000185</cbc:ID><cbc:IssueDate>2026-10-05</cbc:IssueDate><cbc:DocumentType>Invoice</cbc:DocumentType><cac:IssuerParty><cac:PartyTaxScheme><cbc:CompanyID>nif autorizado</cbc:CompanyID><cac:TaxScheme/></cac:PartyTaxScheme><cac:PartyLegalEntity><cbc:RegistrationName>nombre del autorizado</cbc:RegistrationName></cac:PartyLegalEntity></cac:IssuerParty></cac:DocumentReference></cac:DocumentResponse></ApplicationResponse>
------=_Part_e09990a9e20b400b80079772f8f5afc7--
Responder Con Cita
  #3  
Antiguo Hace 10 Horas
JoseLeeTo JoseLeeTo is offline
Miembro
 
Registrado: jun 2021
Posts: 84
Poder: 6
JoseLeeTo Va por buen camino
CancelInvoice - Error Interno

Muchas gracias por el ejemplo.
Miro a ver qué tengo diferente, y pruebo.

Un saludo
Responder Con Cita
  #4  
Antiguo Hace 4 Horas
JoseLeeTo JoseLeeTo is offline
Miembro
 
Registrado: jun 2021
Posts: 84
Poder: 6
JoseLeeTo Va por buen camino
CancelInvoice - Error Interno.

Buenas de nuevo.

Sigue dándome error interno, y no doy con ello. Me está volviendo loco.
No sé si tiene que ver con la generación de las clases en c# o qué.

Algo que sí he visto, es que en la documentación especifica que la factura a anular, estará en ApplicationResponse/cac: DocumentResponse/cac: Response/cac: DocumentReference

Pero al mapear los .xsd de UBL2.5 de GitHub, dentro de "cac: Response", no existe ningún tipo "cac: DocumentReference". Algo que sí que existe, pero dentro de "cac: DocumentResponse" pero no dentro de "cac: Response". (Hablo del mapeo directo de clases, sin usar la implementación de wsdl).

He añadido el tipo cacocumentReference dentro de cac:Response, lo he informado, y me sigue dando el mismo error: "Error interno"

jlmoli_67, ¿Te importaria poner un ejemplo del xml de CANCELINVOICE con datos ficticios?

Muchas gracias
Responder Con Cita
  #5  
Antiguo Hace 2 Horas
jlmoli_67 jlmoli_67 is online now
Miembro
 
Registrado: feb 2024
Posts: 147
Poder: 3
jlmoli_67 Va por buen camino
Envio peticion CANCELINVOICE completo

Buenas,

A ver si te sirve. solo he quitado mi nombre y cif el resto esta tal cual.

No te preocupes que a las malas te paso el modulo de cancelar (yo tambien trabajo en .net aunque algo antiguo el framework)

Código:
**********************************
soap que se  envia 
**********************************

------=_Part_8b104c3f639d484db914ab05f0cff449
Content-Type: application/soap+xml; charset=UTF-8
Content-Transfer-Encoding: 8bit

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:eb3="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"><soapenv:Header><eb3:Messaging soapenv:mustUnderstand="1"><eb3:UserMessage><eb3:MessageInfo><eb3:Timestamp>2026-11-18T17:19:03.166Z</eb3:Timestamp><eb3:MessageId>uuid-d1b7de57-6612-4385-93fe-ae3fa22dab16</eb3:MessageId></eb3:MessageInfo><eb3:PartyInfo><eb3:From><eb3:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:iso6523:9920">nif emisor(*******)</eb3:PartyId><eb3:Role>ebms:initiator</eb3:Role></eb3:From><eb3:To><eb3:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:iso6523:9920">Q2826000H</eb3:PartyId><eb3:Role>ebms:responder</eb3:Role></eb3:To></eb3:PartyInfo><eb3:CollaborationInfo><eb3:Service>urn:cen.eu:en16931:cancelinvoice</eb3:Service><eb3:Action>CANCELINVOICE</eb3:Action><eb3:ConversationId>99c0f826-25b3-4407-968a-8caf1b961a73</eb3:ConversationId></eb3:CollaborationInfo><eb3:PayloadInfo><eb3:PartInfo href="cid:CancelarFact.xml"><eb3:PartProperties><eb3:Property name="MimeType">application/xml</eb3:Property></eb3:PartProperties></eb3:PartInfo></eb3:PayloadInfo></eb3:UserMessage></eb3:Messaging></soapenv:Header><soapenv:Body/></soapenv:Envelope>
------=_Part_8b104c3f639d484db914ab05f0cff449
Content-Type: application/xml; charset=UTF-8
Content-ID: <CancelarFact.xml>
Content-Transfer-Encoding: 8bit

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ApplicationResponse xmlns="urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><cbc:ID>VOID-20261118-13377187</cbc:ID><cbc:IssueDate>2026-11-18</cbc:IssueDate><cac:SenderParty></cac:SenderParty><cac:ReceiverParty></cac:ReceiverParty><cac:DocumentResponse><cac:Response><cbc:ResponseCode>CANCELINVOICE</cbc:ResponseCode><cbc:Description>Anulacion por error en emision sin transaccion real</cbc:Description><cbc:EffectiveDate>2026-10-05</cbc:EffectiveDate></cac:Response><cac:DocumentReference><cbc:ID>FAC202600007</cbc:ID><cbc:IssueDate>2026-10-05</cbc:IssueDate><cbc:DocumentType>Invoice</cbc:DocumentType><cac:IssuerParty><cac:PartyTaxScheme><cbc:CompanyID>nif emisor(*******)</cbc:CompanyID><cac:TaxScheme/></cac:PartyTaxScheme><cac:PartyLegalEntity><cbc:RegistrationName>nombre del emisor(*********)</cbc:RegistrationName></cac:PartyLegalEntity></cac:IssuerParty></cac:DocumentReference></cac:DocumentResponse></ApplicationResponse>
------=_Part_8b104c3f639d484db914ab05f0cff449--


******************************************************
documento XML del ApplicationResponse (lo que quiero anular)
*****************************************************

<ApplicationResponse>
<cbc:ID>VOID-20261118-13377187</cbc:ID>
<cbc:IssueDate>2026-11-18</cbc:IssueDate>
<cac:SenderParty/>
<cac:ReceiverParty/>
<cac:DocumentResponse>
<cac:Response>
<cbc:ResponseCode>CANCELINVOICE</cbc:ResponseCode>
<cbc:Description>
Anulacion por error en emision sin transaccion real
</cbc:Description>
<cbc:EffectiveDate>2026-10-05</cbc:EffectiveDate>
</cac:Response>
<cac:DocumentReference>
<cbc:ID>FAC202600007</cbc:ID>
<cbc:IssueDate>2026-10-05</cbc:IssueDate>
<cbc:DocumentType>Invoice</cbc:DocumentType>
<cac:IssuerParty>
<cac:PartyTaxScheme>
<cbc:CompanyID>nif emisor(*******)</cbc:CompanyID>
<cac:TaxScheme/>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>nombre del emisor(*********)</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:IssuerParty>
</cac:DocumentReference>
</cac:DocumentResponse>
</ApplicationResponse>
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Codigo[20009].Error interno en el servidor jodaws Envío de registros y sus respuestas 4 06-10-2025 18:54:31
Error interno en el servidor [email protected] Errores (relacionados con al AEAT) 43 01-10-2025 17:07:01
Error interno en el servidor skatologiko Envío de registros y sus respuestas 3 20-08-2025 20:36:13
Canal Interno de TV juank1971 Gráficos 10 09-08-2018 22:12:32
Ejecutable Interno maco2007 Varios 6 21-10-2007 22:28:30


La franja horaria es GMT +2. Ahora son las 21:59:54.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi