Hi Smith, 'ignoreMissingFromData' is an optional attribute and if not
specified it's value will default to 'no'. You don't have to explicitly
include this attribute unless you do NOT want the copy statement to
throw a fault when it can't find the from value. This would be true for
elements which are optional. If you do have a lot of optional elements
in your source xsd then it would be best to set the
'ignoreMissingFromData' attribute to yes for optional elements.
Also if you have a lot of optional elements and do not want to set this
attribute on each copy, you can set the 'ignoreMissingFromData'
attribute at the process level. Note however that the
'ignoreMissingFromData' attribute at the process level is not the same
as the one at the copy level (they belong to different namespaces). The
'ignoreMissingFromData' at the process level is specific to the sun BPEL
SE. It will cause the BPEL SE to not throw a fault for ANY copy when the
'From' data is missing (Even when data is missing for required
attributes). This is for convenience and should be used with some caution.
Here is a link to usage of 'ignoreMissingFromData' at process level
http://wiki.open-esb.java.net/Wiki.jsp?page=Process%20Level%20Ignore%20Missing%20From%20DataHope this helps.
Vinay Mulakkayala
Open ESB Community (
http://open-esb.org)
smith_tech wrote:
> Hi
>
> I have a WSDL, with input and output messages defined. Both in input and
> output, I am having optional and mandatory data elements specified in the
> XSD's.
>
> Optional as minOccurs=0
> mandatory as minOccurs=1
>
> While copying the data elements in the BPEL assign activity, do we need to
> say "ignoreMissingFromData=yes" for both optional and mandatory data
> elements ?
>
> What is the best practice to copy in BPEL, is it sufficient to say
> "ignoreMissingFromData=yes" for only optional data elements.
>
> Thanks,
> Smith.
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]