Thanks Amal!! it works now.

I think problem was that outer element e.g. ns:PatientsIDs is not needed.

--Srinath

On Thu, Apr 23, 2015 at 2:50 PM, Amal Gunatilake <[email protected]> wrote:

> Hi Srinath,
>
> Please find the updated BPEL package attached herewith.
> Here when copying an array to another element I have used the Ode xpath
> extensions (insert-as-last-into).
>
> Please find more information under following location.
> http://ode.apache.org/extensions/xpath-extensions.html
>
> Thank you,
> Amal
>
> On Thu, Apr 23, 2015 at 10:03 AM, Srinath Perera <[email protected]> wrote:
>
>> I have  assign that looks like following
>>
>> <assign name="Assign2">
>>
>>             <copy>
>>
>>                 <from>
>>
>>                     <literal>
>>
>>                         <ns:PatientDataRequest>
>>
>>                         </ns:PatientDataRequest>
>>
>>                     </literal>
>>
>>                 </from>
>>
>>                 <to>$patientDataInput.part</to>
>>
>>             </copy>
>>
>>             <copy>
>>
>>                 <from>$patientListOutput.part/ns:PatientsIDs/ns:id</from>
>>
>>                 <to>$patientDataInput.part/ns:PatientDataRequest/ns:id</
>> to>
>>
>>             </copy>
>>
>>         </assign>
>>
>> When I run it, it give the error
>>
>> Fault Explanation
>> <https://127.0.0.1:9443/carbon/bpel/instance_view.jsp?iid=3354#>
>>
>> Fault Name{
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailureFault
>> Message
>>
>> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure: 
>> R-Value expression "{OXPath10Expression 
>> $patientListOutput.part/ns:PatientsIDs/ns:id}" did not select any nodes.
>>
>> Fault Data
>>
>> <no-data>No data available.</no-data>
>>
>> Error Line80
>>
>> while
>>
>> patientListOutput values ( take from BPS concole) looks like following.
>>
>>
>> Value of patientListOutput 
>> <https://127.0.0.1:9443/carbon/bpel/instance_view.jsp?iid=3354#>
>>
>> <message>
>>    <part>
>>       <PatientsIDs xmlns="http://wso2.org/bps/samples/PatientData/schema"; 
>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"; 
>> xmlns:m="http://wso2.org/bps/samples/PatientData/schema";>
>>          <id>0</id>
>>          <id>1</id>
>>          <id>2</id>
>>       </PatientsIDs>
>>    </part>
>>    <MessageID headerPart="true">
>>       <MessageID xmlns="http://www.w3.org/2005/08/addressing"; 
>> xmlns:wsa="http://www.w3.org/2005/08/addressing"; 
>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>urn:uuid:9cf3bd7c-fbf4-48d9-bb51-804b0bff5a57</MessageID>
>>    </MessageID>
>>    <Action headerPart="true">
>>       <Action xmlns="http://www.w3.org/2005/08/addressing"; 
>> xmlns:wsa="http://www.w3.org/2005/08/addressing"; 
>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>urn:mediate</Action>
>>    </Action>
>> </message>
>>
>> From above, it should match. I am not sure what is wrong.
>>
>> I have attached the BPEL and WSDL below.
>>
>>
>> --Srinath
>>
>>
>> p.s. if you want to run this, put proxy services in .xml file to ESB with 
>> offset 1.
>>
>> --
>> ============================
>> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
>> Site: http://people.apache.org/~hemapani/
>> Photos: http://www.flickr.com/photos/hemapani/
>> Phone: 0772360902
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Kind regards,
>
> *Amal Gunatilake*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>



-- 
============================
Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
Site: http://people.apache.org/~hemapani/
Photos: http://www.flickr.com/photos/hemapani/
Phone: 0772360902
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to