HI,
Just to make the things more clear…
In my case the ‘documenToXMLString’ takes the document that has the ‘null’ values in the fields and produces a xml string with the element as
…
What I am expecting is if there is a null value it should create the xml element as …
This is my requirement, may be it not the case as webMethods does…
… The webservice input document types actually has all the fields as optional…
So when I do a field to field map from internal canonical document to web service input document… then these ‘null’ are introduced in the webservice input document,for the corresponding fields that are not present on the canonical doc(as fields may be optional)…
So what i think is if there is some work around to somehow restrict not to pass ‘null’ … then the documenToXMLString would not generate any empty tags…
If the value in field is ‘null’ then the documenToXMLString creates the empty tags ()… even though the fields on the weservice input document are marked optional…
May be I am not completely correct… But this is what it looks for me from debugging point of view…
Regards
pryWM
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services