Skip to content

Commit

Permalink
Se corrige error en response del servicio de lrfc cuando no se encuen…
Browse files Browse the repository at this point in the history
…tra el rfc en la lista
  • Loading branch information
DanielIxiguez committed Mar 2, 2020
1 parent 1bf52da commit 0ae4651
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
13 changes: 12 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
</properties>
<artifactId>SW-JAVA</artifactId>
<version>0.0.5.1</version>
<version>0.0.6.0</version>
<packaging>jar</packaging>
<scm>
<url>https://github.com/lunasoft/sw-sdk-java</url>
Expand Down Expand Up @@ -169,11 +169,22 @@
<artifactId>httpmime</artifactId>
<version>4.5.6</version>
</dependency>
<dependency>
<groupId>javax.xml.soap</groupId>
<artifactId>javax.xml.soap-api</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20180130</version>
</dependency>

<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.googlecode.juniversalchardet</groupId>
<artifactId>juniversalchardet</artifactId>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/Utils/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public class Constants {
public static String RELACIONADOS_XML_PATH = "/relations/xml";
public static String RELACIONADOS_UUID_PATH = "/relations/";
public static String PENDIENTES_CANCELAR_PATH = "/pendings/";
public static String SAVE_CSD = "/csd/save";
public static String TAXPAYERS_PATH = "/taxpayers/";
public static String SAVE_CSD = "/certificates/save";
public static String DISABLE_SEARCH_CSD = "/certificates/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public IResponse sendRequest(IRequest request) throws GeneralException, AuthExce
if (!body.isNull("messageDetail")) {
messageDetail = body.getString("messageDetail");
}
return new ValidateLrfcResponse(statusE, body.getString("status"), "", messageDetail);
return new ValidateLrfcResponse(statusE, body.getString("status"), body.getString("message"), messageDetail);
}
}
else {
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/Tests/Validate/SWValidateServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ public void testValidateNULL_LRFC_STRING_USER_PASSWORD() throws Exception {
SWValidateService api = new SWValidateService("demo","123456789",Utils.url_pruebas);
ValidateLrfcResponse response = null;
response = (ValidateLrfcResponse) api.ValidateLrfc(null);
System.out.println(response.message);
System.out.println(response.messageDetail);
System.out.println(response.Status);
System.out.println(response.HttpStatusCode);
System.out.println(response.message);
String expect_status = "error";
Assert.assertTrue(expect_status.equalsIgnoreCase(response.Status));
}
Expand Down

0 comments on commit 0ae4651

Please sign in to comment.