@@ -164,8 +164,7 @@ private static void isCompliantWithXsd(String xsdSchema, Document signedXML) thr
164
164
165
165
//
166
166
167
- private static void sendFileToSunat (Document document , String xmlWithoutSignature , String ... allowedNotes )
168
- throws Exception {
167
+ private static void sendFileToSunat (Document document , String xmlWithoutSignature , String ... allowedNotes ) throws Exception {
169
168
byte [] bytesFromDocument = XmlSignatureHelper .getBytesFromDocument (document );
170
169
171
170
CamelContext camelContext = StandaloneCamel .getInstance ().getMainCamel ().getCamelContext ();
@@ -224,24 +223,26 @@ private static void sendFileToSunat(Document document, String xmlWithoutSignatur
224
223
ticketDestination ,
225
224
credentials
226
225
);
227
- SunatResponse verifyTicketSunatResponse = camelContext
228
- .createProducerTemplate ()
229
- .requestBodyAndHeaders (
230
- Constants .XSENDER_BILL_SERVICE_URI ,
231
- camelTicketData .getBody (),
232
- camelTicketData .getHeaders (),
233
- SunatResponse .class
234
- );
235
226
236
- assertEquals (
237
- Status .ACEPTADO ,
238
- verifyTicketSunatResponse .getStatus (),
239
- xmlWithoutSignature + " sunat [status=" + verifyTicketSunatResponse .getStatus () + "], [descripcion=" + verifyTicketSunatResponse .getMetadata ().getDescription () + "]"
240
- );
241
- assertNotNull (
242
- verifyTicketSunatResponse .getSunat ().getCdr (),
243
- xmlWithoutSignature + " sunat [codigo=" + verifyTicketSunatResponse .getMetadata ().getResponseCode () + "], [descripcion=" + verifyTicketSunatResponse .getMetadata ().getDescription () + "]"
244
- );
227
+ // TODO ticket get status are not working in SUNAT BETA so stopping it until it is supporeted
228
+ // SunatResponse verifyTicketSunatResponse = camelContext
229
+ // .createProducerTemplate()
230
+ // .requestBodyAndHeaders(
231
+ // Constants.XSENDER_BILL_SERVICE_URI,
232
+ // camelTicketData.getBody(),
233
+ // camelTicketData.getHeaders(),
234
+ // SunatResponse.class
235
+ // );
236
+ //
237
+ // assertEquals(
238
+ // Status.ACEPTADO,
239
+ // verifyTicketSunatResponse.getStatus(),
240
+ // xmlWithoutSignature + " sunat [status=" + verifyTicketSunatResponse.getStatus() + "], [descripcion=" + verifyTicketSunatResponse.getMetadata().getDescription() + "]"
241
+ // );
242
+ // assertNotNull(
243
+ // verifyTicketSunatResponse.getSunat().getCdr(),
244
+ // xmlWithoutSignature + " sunat [codigo=" + verifyTicketSunatResponse.getMetadata().getResponseCode() + "], [descripcion=" + verifyTicketSunatResponse.getMetadata().getDescription() + "]"
245
+ // );
245
246
}
246
247
}
247
248
}
0 commit comments