diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4599bbf..6b7c721 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,4 @@
# Notas de versão
-- Correcao Eventos MS - Uso de prefixo de namespace nao permitido - status 404
-- Atualizado nova versao Java Certificado
\ No newline at end of file
+- Atualizado Cacert
+- Corrigido erro conversao TRetConsSitCTe
\ No newline at end of file
diff --git a/README.md b/README.md
index 3a17037..a22bfa6 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Java-CTe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_CTe.svg) ](https://github.com/Samuel-Oliveira/Java_CTe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-cte.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-cte/4.00.8/jar)
+# Java-CTe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_CTe.svg) ](https://github.com/Samuel-Oliveira/Java_CTe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-cte.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-cte/4.00.9/jar)
API Java para consumo do WebService de CTe
## Dúvidas, Sugestões ou Consultoria
@@ -18,14 +18,14 @@ Para Iniciar :
br.com.swconsultoria
java-cte
- 4.00.8
+ 4.00.9
```
- Gradle :
```groovy
dependencies {
- implementation "br.com.swconsultoria:java-cte:4.00.8"
+ implementation "br.com.swconsultoria:java-cte:4.00.9"
}
```
@@ -35,6 +35,10 @@ ________________________________________________________________________________
# Historico de Versões
+## v4.00.9 - 08/06/2024
+- Atualizado Cacert
+- Corrigido erro conversao TRetConsSitCTe
+
## v4.00.8 - 19/04/2024
- Atualizado nova versao Java Certificado
diff --git a/docs/docs/index.md b/docs/docs/index.md
index b1dd2c2..4a9e736 100644
--- a/docs/docs/index.md
+++ b/docs/docs/index.md
@@ -1,4 +1,4 @@
-# Java-CTe [![Build Status](https://travis-ci.org/Samuel-Oliveira/Java_CTe.svg?branch=master)](https://travis-ci.org/Samuel-Oliveira/Java_CTe) [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_CTe.svg) ](https://github.com/Samuel-Oliveira/Java_CTe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-cte.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-cte/4.00.8/jar)
+# Java-CTe [![Build Status](https://travis-ci.org/Samuel-Oliveira/Java_CTe.svg?branch=master)](https://travis-ci.org/Samuel-Oliveira/Java_CTe) [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_CTe.svg) ](https://github.com/Samuel-Oliveira/Java_CTe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-cte.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-cte/4.00.9/jar)
API Java para consumo do WebService de CTe
## Dúvidas, Sugestões ou Consultoria
@@ -8,7 +8,7 @@ API Java para consumo do WebService de CTe
Para Iniciar :
-- Caso use Libs baixe o [java-cte-4.00.8.jar](https://github.com/Samuel-Oliveira/Java_CTe/raw/master/java-cte-4.00.8.jar) e o adicione às bibliotecas de Seu Projeto.
+- Caso use Libs baixe o [java-cte-4.00.9.jar](https://github.com/Samuel-Oliveira/Java_CTe/raw/master/java-cte-4.00.9.jar) e o adicione às bibliotecas de Seu Projeto.
- Baixe o [Schemas.rar](https://github.com/Samuel-Oliveira/Java_CTe/raw/master/Schemas.rar) e extraia na sua Máquina.
@@ -17,14 +17,14 @@ Para Iniciar :
br.com.swconsultoria
java-cte
- 4.00.8
+ 4.00.9
```
- Gradle :
```groovy
dependencies {
- implementation "br.com.swconsultoria:java-cte:4.00.8"
+ implementation "br.com.swconsultoria:java-cte:4.00.9"
}
```
diff --git a/pom.xml b/pom.xml
index d9e5411..65387d4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
br.com.swconsultoria
java-cte
- 4.00.9-SNAPSHOT
+ 4.00.10-SNAPSHOT
Java_CTe
API Java para consumo do WebService de CTe
https://github.com/Samuel-Oliveira/Java_CTe
@@ -85,7 +85,7 @@
br.com.swconsultoria
java_certificado
- 3.5
+ 3.6
diff --git a/src/main/java/br/com/swconsultoria/cte/dom/ConfiguracoesCte.java b/src/main/java/br/com/swconsultoria/cte/dom/ConfiguracoesCte.java
index 3e6fa72..591ac95 100644
--- a/src/main/java/br/com/swconsultoria/cte/dom/ConfiguracoesCte.java
+++ b/src/main/java/br/com/swconsultoria/cte/dom/ConfiguracoesCte.java
@@ -167,8 +167,8 @@ public static ConfiguracoesCte criarConfiguracoes(EstadosEnum estado, AmbienteEn
log.info(String.format("JAVA-CTE | Samuel Oliveira | samuel@swconsultoria.com.br " +
"| VERSAO=%s | DATA_VERSAO=%s | PASTA_SCHEMAS=%s | AMBIENTE=%s | ESTADO=%s",
- "4.00.8",
- "19/04/2024",
+ "4.00.9",
+ "08/06/2024",
pastaSchemas,
ambiente,
estado.getNome().toUpperCase()));
diff --git a/src/main/java/br/com/swconsultoria/cte/schema_400/retConsSitCTe/TRetConsSitCTe.java b/src/main/java/br/com/swconsultoria/cte/schema_400/retConsSitCTe/TRetConsSitCTe.java
index 0d44694..5ed427f 100644
--- a/src/main/java/br/com/swconsultoria/cte/schema_400/retConsSitCTe/TRetConsSitCTe.java
+++ b/src/main/java/br/com/swconsultoria/cte/schema_400/retConsSitCTe/TRetConsSitCTe.java
@@ -80,7 +80,7 @@
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "", namespace = "http://www.portalfiscal.inf.br/cte", propOrder = {
+@XmlType(propOrder = {
"tpAmb",
"verAplic",
"cStat",
@@ -89,7 +89,7 @@
"protCTe",
"procEventoCTe"
})
-@XmlRootElement(name = "TRetConsSitCTe")
+@XmlRootElement(name = "retConsSitCTe", namespace = "http://www.portalfiscal.inf.br/cte")
public class TRetConsSitCTe {
@XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true)
diff --git a/src/test/java/br/com/swconsultoria/cte/TesteConsultaCte.java b/src/test/java/br/com/swconsultoria/cte/TesteConsultaCte.java
index 0699dde..5307f9d 100644
--- a/src/test/java/br/com/swconsultoria/cte/TesteConsultaCte.java
+++ b/src/test/java/br/com/swconsultoria/cte/TesteConsultaCte.java
@@ -34,8 +34,10 @@ public static void main(String[] args) {
//Resultado
log.info("# Status: " + retorno.getCStat() + " - " + retorno.getXMotivo());
- TProtCTe.InfProt infProt = ObjetoCTeUtil.elementToObject(retorno.getProtCTe().getAny(),TProtCTe.InfProt.class);
- log.info("# Protocolo: " +infProt.getNProt());
+ if(retorno.getProtCTe() != null){
+ TProtCTe.InfProt infProt = ObjetoCTeUtil.elementToObject(retorno.getProtCTe().getAny(),TProtCTe.InfProt.class);
+ log.info("# Protocolo: " +infProt.getNProt());
+ }
} catch (Exception e) {
log.log(Level.SEVERE, "Erro ao consultar XML", e);