Giancarlo,
Actually everything has been said by Charles. But just in case you
want to modify your stub module by hand, I created a quick & dirty
example to show how NULL support could be added.
Basically I added a NULL indicator field for each "nillable" field to
the stub module:
D year 10I 0
D year_isNull N
Then I changed the stub module to look at the "isNull" field in order
to decide whether to generate the code as usually (isNull = *OFF) or
to produce a NULL value, e.g.:
if (not i_tns_echoGDataTypesRequest.gDataTypes.year_isNull);
request = request +
'<year>' +
Marshaller_toGYear(
i_tns_echoGDataTypesRequest.gDataTypes.year
) +
'</year>';
else;
request = request +
'<year xsi:nil="true"/>';
endif;
Feel free to look at the attached sample. Compare the old versions
(without _N) with the modified modules (with suffix _N) to see the
differences.
Sorry, but there will be no more support for the next two weeks.
Regards,
Thomas.
ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 20.04.2011 14:29:03:
> Von: gdefilippis@xxxxxxx
> An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Datum: 20.04.2011 14:37
> Betreff: WSDL2RPG
> Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>
>
>
> Hy all.... i've a problem......
>
> in WSDL that i'd use is present
> this element:
>
> in my request if i found "nillable="true" i must use:
>
>
> How i can do this???
>
> Thanks all for answer......
>
> Giancarlo
>
----------------------------------------------------------------------
-
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> [1]http://www.scottklement.com/mailman/listinfo/ftpapi
>
----------------------------------------------------------------------
-
--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the
intended recipient only. Access, disclosure, copying, distribution, or
reliance on any of it by anyone else is prohibited and may be a
criminal
offence. Please delete if obtained in error and email confirmation to
the sender.
References
1. http://www.scottklement.com/mailman/listinfo/ftpapi
Attachment:
WSDL2RPG_Null_Values.zip
Description: Zip archive
----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubscribe, please go to: http://www.scottklement.com/mailman/listinfo/ftpapi -----------------------------------------------------------------------