First of all, how do you initialize an entire document as null? I need to ensure that every field is sent to the customer when documenttoxmlstring is run.
Also, I’m working with Webmethods 7.1.2 and am struggling mightily with generating a field that looks like this:
After looking around for hours, I see that the answer was supposedly right in my face as there is an optional field associated with documentToXMLstring called generateNilTags, but I can’t get it to work for me for nothing.
I’ve read everything I can in the Built-In Reference concerning this and still can’t get it to work. The field continues to show as and that xsi:nil attribute is a must.
Based on what I read, I checked and confirmed the following:
The document field is set to “allow nulls”
DocumentTypeName is being provided
both generateRequiredTags and generateNilTags are both set to True
Only thing left is me wondering if Webmethods is seeing my field as truly being null. I think it is. True, the document field is being mapped to, but there’s no value. went to the top part of the document, set a blank value which I hoped is the equivalent of initialize the doc with nulls, but I do not really know.
Is there perhaps somethng out there whereas after all the mapping is done to the document, I can run something which would convert all blank fields to nulls? This is a little confusing. Is both and considered null?
If anyone has any advice on this, it would be greatly appreciated, even if it’s a workaround. I have just a few more days to get this done for the customer and am totally frustrated, as I am not very experienced with working with namespaces. I need to send that nil attribute. Thanks for your help.