Webservices and Dates

Hi All,

So I wrote a webservice where the Date of Birth is one of the properties send through it.
The field is not mandatory in the data structure I created, so a null is an acceptable value.

When looking at the WSDL Outsystems generates:

 minOccurs="1" maxOccurs="1" name="DateOfBirth" type="s:date"/>

As you can see, the minOccurs = 1, so it needs to be sent through.

Is this a bug? Is there a workaround?

Kind Regards,
Charl Lotter

HI Charl,

It is not really a bug since in OutSystems Platform you don't have null. Only complex data types (entity/structure records), binaries and string data types (Text, Phone Number) are declared as optional in the WSDL as you can check here. For all these types when data is not send through you will have the default value for that data type on those variables.