wsTimbrado
Haga clic aquí para obtener una lista completa de operaciones.
GeneraTimbre
Prueba
El formulario de prueba sólo está disponible para solicitudes del equipo local.SOAP 1.1
A continuación se muestra un ejemplo de solicitud y respuesta para SOAP 1.1. Es necesario reemplazar los marcadores de posición que aparecen con valores reales.
POST /wsTimbrado.asmx HTTP/1.1 Host: cfdi33.timbrado.com.mx Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://cfdi.timbrado.com.mx/timbradov2/GeneraTimbre" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthenticationHeader xmlns="https://cfdi.timbrado.com.mx/timbradov2"> <UserName>string</UserName> <Password>string</Password> </AuthenticationHeader> <TestConfigHeader xmlns="https://cfdi.timbrado.com.mx/timbradov2"> <ConsultaDB>boolean</ConsultaDB> <UUIDPrueba>boolean</UUIDPrueba> <TimbrarDuplicados>boolean</TimbrarDuplicados> </TestConfigHeader> </soap:Header> <soap:Body> <GeneraTimbre xmlns="https://cfdi.timbrado.com.mx/timbradov2"> <cfdiBytes>base64Binary</cfdiBytes> </GeneraTimbre> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader trackId="long" RequestDateTime="dateTime" IPCaller="string" ClienteId="int" Estatus="int" ID="string" Detail="string" Ambiente="string" xmlns="https://cfdi.timbrado.com.mx/timbradov2"> <CFDI Id="string" FechaHora="dateTime" RFCEmisor="string" RFCReceptor="string" Serie="string" Folio="string" /> </ResponseHeader> </soap:Header> <soap:Body> <GeneraTimbreResponse xmlns="https://cfdi.timbrado.com.mx/timbradov2"> <GeneraTimbreResult> <Timbre>string</Timbre> <Error Codigo="string" Descripcion="string"> <ErroresVerificacion> <VerificationError xsi:nil="true" /> <VerificationError xsi:nil="true" /> </ErroresVerificacion> </Error> </GeneraTimbreResult> </GeneraTimbreResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
A continuación se muestra un ejemplo de solicitud y respuesta para SOAP 1.2. Es necesario reemplazar los marcadores de posición que aparecen con valores reales.
POST /wsTimbrado.asmx HTTP/1.1 Host: cfdi33.timbrado.com.mx Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <AuthenticationHeader xmlns="https://cfdi.timbrado.com.mx/timbradov2"> <UserName>string</UserName> <Password>string</Password> </AuthenticationHeader> <TestConfigHeader xmlns="https://cfdi.timbrado.com.mx/timbradov2"> <ConsultaDB>boolean</ConsultaDB> <UUIDPrueba>boolean</UUIDPrueba> <TimbrarDuplicados>boolean</TimbrarDuplicados> </TestConfigHeader> </soap12:Header> <soap12:Body> <GeneraTimbre xmlns="https://cfdi.timbrado.com.mx/timbradov2"> <cfdiBytes>base64Binary</cfdiBytes> </GeneraTimbre> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <ResponseHeader trackId="long" RequestDateTime="dateTime" IPCaller="string" ClienteId="int" Estatus="int" ID="string" Detail="string" Ambiente="string" xmlns="https://cfdi.timbrado.com.mx/timbradov2"> <CFDI Id="string" FechaHora="dateTime" RFCEmisor="string" RFCReceptor="string" Serie="string" Folio="string" /> </ResponseHeader> </soap12:Header> <soap12:Body> <GeneraTimbreResponse xmlns="https://cfdi.timbrado.com.mx/timbradov2"> <GeneraTimbreResult> <Timbre>string</Timbre> <Error Codigo="string" Descripcion="string"> <ErroresVerificacion> <VerificationError xsi:nil="true" /> <VerificationError xsi:nil="true" /> </ErroresVerificacion> </Error> </GeneraTimbreResult> </GeneraTimbreResponse> </soap12:Body> </soap12:Envelope>