Best way to handle null numbers from SOAP proxy objects in Flex / ActionScript

I use SOAP services in Flex 3 using proxies created by WSDL, created by tools in Flex Builder. Some SOAP objects have zero-integer properties that are converted to zero during the conversion process of a SOAP-local object. We are considering the magic number approach, where if the service returns -1, we treat it as zero. This is obviously a hack and may not work in some situations (situations where -1 is a valid #, for example).

Has anyone out there found a better solution?

+4
source share
1 answer

Flex Soap Encoder changes NaN to Null. Extend this class and cancel this behavior.

0
source

Source: https://habr.com/ru/post/1285669/


All Articles