I’ve recreated a new webMethods web service based on a previous ESB Sonic web service.
All works well, except that with the new webservice, null fields are returned in the Response (with the previous web service, the null value fields were hidden, and we need the same working as before).
How may I make some null fields hidden with webMethods please ?
I have tried setting “Allow = True” and “Required = false” but the field is returning anyway in the response Document.
Regards
(I would appreciate to not have to change my mapping, testing value of the fields, etc…)
Thanks… but I was thinking that the Designer could bring me a solution (a kind of attribute field).
Yes Venkata you’re right, I was considering to code that in Java (I didn’t see any other solution) because on some web services I have almost 500 concerned fields…
but I was hesitating between filling the null value with empty string… or just remove the fields…
I thought Ur initial requirement is to remove null fields in Response.
"
I’ve recreated a new webMethods web service based on a previous ESB Sonic web service.
All works well, except that with the new webservice, null fields are returned in the Response (with the previous web service, the null value fields were hidden, and we need the same working as before).
"
Ok I see. so if the field is not required, the removing will work well, otherwise the Exception will occur in webMethods ?
In addition, I’m just curious to know how to retrieve these informations for a more general need…
maybe it will help me, one day ?
is there any function for this kind of options ? ( getOptions(IData) )
It has been a long time… I’ve forgotten the problem
More serioulsy, I think i’ve corrected the problem using the solution recommended by Holger (in this post)
Regards