on 09-26-2016 5:18 PM
Hi Narsaiah!
I think the right way is to ask your vendor to change WSDL if element is not obligatory. In other case you can get errors if any schema validation is performed on target side. Or at least you can fill this element with empty value but not to remove it.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Narsaiah,
As per my understanding, If target element you want to skip or disable in absence of data from sender then you can change occurrence to 0:1 as you are not considering it as mandatory field.
And it is of no use keeping it 1:1 and using some logic to skip.
Regards,
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check below one:
Message Mapping:
When source Filed is present :
When source isn't present :
UDF :
Execution Type :Single Value
LeafStructureNode node = ((LeafStructureNode)container.getParameter("STRUCTURE_NODE"));
if(var1.length()>0)
{
node.setQName("F1");
return var1;
}
else
{
node.setOccurences(0, 0);
return "";
}
Br,
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.