How to Prevent Service Operation from failing when Third-Party sends value that is too large?
We created a REST Provider Web Service that contains a service operation (GET Method) that uses a Document Type Request and Response Message.
The Document, TN_SPDCHRT_RQST.V1, used in the Request Message was build using a record. The record contains two fields: SPEEDCHART_KEY (Character 10 positions) and EFFDT (Date 10 positions).
When the Third-party sends a speedchart_key that is greater than 10 positions or an invalid date. The service operation failed. The errorLog.html contained the error message, RESTListeningConnector:returnResponse() The Document Primitive: SPEEDCHART_KEY defined length is smaller than the value: {{SPEEDCHART_ID}}
The Service Operation also fails when the Third-party sends a date that is not in the correct format. The errorLog.html contains the error, 'RESTListeningConnector:returnResponse() Invalid date parameter retrieved for method GetValue of document primitive EFFDT. (2,1019)