IBM Support

Nullable time fields within Webservices always returned as null

Troubleshooting


Problem

Applying nullables to time fields within a Webservice is incorrectly returning empty values rather then the actual value.

Symptom

The scenario concerns an application which retrieves a basic record via a REST Webservice which in turn includes nullable time fields. Where users then edit the record to fill any of the time fields when the record is returned via the service those input values are ignored and the fields are returned as null.

A widget implementing a webservice call eg:
service MyWebservice
function testFunction(myTime time? in)
writeStdOut("Received time (must be current time): " + myTime);
end
will return the time as blank:"Received time (must be current time): "

Removing the nullable from the above service the applicable time is returned.

[{"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Web Services","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.0.1","Edition":"","Line of Business":{"code":"LOB70","label":"Z TPS"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
02 August 2018

UID

swg21665910