Skip to content

Commit

Permalink
restructured gettable request and upped version
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Nov 30, 2023
1 parent 9240515 commit 277c9dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>com.milmove.trdmlambda</groupId>
<artifactId>trdm-lambda</artifactId>
<version>0.4.1.0</version>
<version>0.4.1.1</version>
<name>trdm java spring interface</name>
<description>Project for deploying a Java RESTful interface for SOAP requests to TRDM.</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ private GetTableResponse createSoapRequest(GetTableRequest request)
ReturnTableInput input = new ReturnTableInput();
TRDM trdm = new TRDM();
trdm.setPhysicalName(request.getPhysicalName());
trdm.setReturnContent(request.isReturnContent());
trdm.setReturnContent(Boolean.valueOf(request.isReturnContent()));
trdm.setContentUpdatedSinceDateTime(DatatypeFactory.newInstance()
.newXMLGregorianCalendar(request.getContentUpdatedSinceDateTime()));

// Check if the optional fields of date time filters were provided
// If so, then apply filters accordingly
Expand All @@ -129,6 +126,10 @@ private GetTableResponse createSoapRequest(GetTableRequest request)

// Set the columnFilters object to the trdm object
trdm.setColumnFilters(columnFilters);
} else {
// If no dates are provided, return content updated since date time as normal
trdm.setContentUpdatedSinceDateTime(DatatypeFactory.newInstance()
.newXMLGregorianCalendar(request.getContentUpdatedSinceDateTime()));
}
// Nest our classes for the XML SOAP body creation per WSDL specifications
input.setTRDM(trdm);
Expand Down

0 comments on commit 277c9dd

Please sign in to comment.