How to use xPath to extract a element from a xml stringin BPEL workflow?

I have a xml string passed into the BPEL workflow, and I need to extract the value of "serviceOrderGuid" (see the xml string below), how I can use BPEL mapper to do this? I am using NetBeans 6.0/M10.

Thanks

Kebin

<Parameters xmlns="http://www.sunmicrosoft.com/TrueOMF/WorkflowInformation.xsd">

<Parameter isIn="false" isOut="true" name="serviceOrderGuid">

<Value>5e8c9de9-f9b9-4815-bc06-e1572ff122f2</Value>

</Parameter>

<Parameter isIn="false" isOut="true" name="elementOfferGuid">

<Value>4f7c9de2-f9b9-4815-bc06-e1572ee122e2</Value>

</Parameter>

</Parameters>

[658 byte] By [kew98a] at [2007-11-27 11:42:13]
# 1

This is a NB question, i believe. so a NB group mail posting would be more appropriate.

The mapper should show the the attributes on the mapper tree. you should select it and drop where ever you want.

It will generate a query like

Parameters/Parameter/@serviceOrderGuid, @ is an indication that it is an attribute. This is XPath/XQuery standard.

hope that helps,

Kiran

kiran.bhumanaa at 2007-7-29 17:42:54 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Do you think, the future version of NB BPEL mapper will provide this functionality?

what do you do for the above problem because current version of NB doesn't provide the query to retrieve the value of xml string.

Thanks

Kebin

kew98a at 2007-7-29 17:42:54 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

Kebin,

Your question is not clear.

Is there a schema for your "xml string"? Does the mapper show the schema structure or not?

Are you saying that the schema is just "xsd:string"?

kiran.bhumanaa at 2007-7-29 17:42:54 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

Can you post the editor related questions in

nbentpack@netbeans.org

kiran.bhumanaa at 2007-7-29 17:42:54 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5

The xml string is of type "xsd:string",m it is passed in as string and assigned to a local variable of tyep "xsd:string". How can I retrived the serviceOrderGuid from the string and assign it to another variable of type "xsd:string"?

Thanks

kebin

kew98a at 2007-7-29 17:42:54 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...