I am consuming a web service from BPEL process and using a Copy operation I am assigning one of the input parameters of the web service.
The input parameter structure of the web service is a node containing almost 442 elements and only one of that 442 is a mandatory element. I assign a value '100' to that element using the copy operation in the BPEL process.
However, when testing, the web service call fails because the copy operation actually assigns 442 carriage returns as the value for this parameter instead of '100' and invokes the web service.
Don't know why it behaves so strange, I must be a doing silly mistake somewhere.
i assume you're using a xslt transformation (since you're mapping 442 elements)
are you using copy-of in the xslt with a template to 'copy' the whole input to the output?
you could add an extra constraint in there to check with something like string-length(.) > 0 then copy-of
so you only copy element nodes which contain data