How to assign array in a BPEL process?

A from-spec and to-spec must not select more than one element or attribute. In your case it appears to select all return elements in your variable's part (i.e. The items of the array).

Try to copy the element that wraps the items (i.e. The ns1:displayResponse element) and copy this element to ns2:processResponse (the wrapping element in the to-variable).

Up vote 1 down vote favorite share g+ share fb share tw.

I have a simple string as input and after calling a web service which adds the string to an array. Now I have to assign the array to the output(which I have set as a string array in the schema). The enterprise manager gives a fault and says the result contains multiple nodes for the XPath expression given.

The Assign activity is shown as pending. So basically how do I assign an array or a list to the output variable which is also set as an array. The wsdl file used is: @vanto Is there a way to assign an array from input variable to invoke_input variable?

The problem is there are multiple inputs in my web service so I am not able to copy the wrapping element in input variable to wrapping variable in invoke variable. Will copy the snippet of the code here : The problem is only one is of list type all others are of string type. The XML for this is: jdeveloper bpel link|improve this question edited Nov 4 '11 at 12:21Tim Post?15.9k23779 asked Oct 20 '11 at 8:50user100477983.

Hard to tell without seeing the and the XSD contents. – vanto Oct 20 '11 at 9:17 – user1004779 Oct 20 '11 at 9:30 ^This is the xsd. The is: – user1004779 Oct 20 '11 at 9:31.

A from-spec and to-spec must not select more than one element or attribute. In your case it appears to select all elements in your variable's part (i.e. The items of the array).

Try to copy the element that wraps the items (i.e. The ns1:displayResponse element) and copy this element to ns2:processResponse (the wrapping element in the to-variable). Since both source and target elements seem to be in different namespaces and are of different types, you probably need to run it through an XSLT script (using doXSLTransform) to translate it from the source schema to the target schema.

It worked. Thanks @vanto – user1004779 Oct 20 '11 at 10:02 Great to hear that. Do you need any more help with this question?

– vanto Oct 23 '11 at 11:03.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions