Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » BPEL Designer » xpath problem in a simple assign operation
xpath problem in a simple assign operation [message #9926] Thu, 11 October 2007 13:05 Go to next message
Eclipse UserFriend
Originally posted by: kehops31.hotmail.fr

Hi,
I have got a problem with the bpel designer.
I created a default synchronous bpel process.
I just added an assign to set the output result with a sample data string
like "sample". I deployed on apache ode.

In the asign property, i tried $output.payload/tns:result
and /tns:result

in both cases when i tested, i have such errors:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
- <soapenv:Body>
- <soapenv:Fault
xmlns:soapenv="http://docs.oasis-open.org/wsbpel/2.0/process/executable";>
<faultcode>soapenv:selectionFailure</faultcode>
<faultstring> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}se lectionFailure
No results for expression: {OXPath10Expression
$output.payload/tns:result}</faultstring>
<detail />
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

If anyone has a solution, the good query to put, please tell me.

The copy part of the bpel file:
<bpws:assign name="Assign" validate="yes">
<bpws:copy>
<bpws:from>
<bpws:literal>sample</bpws:literal>
</bpws:from>
<bpws:to part="payload" variable="output">
<bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0 "><![CDATA[$output.payload/tns:result]]></bpws:query>
</bpws:to>
</bpws:copy>
</bpws:assign>
Re: xpath problem in a simple assign operation [message #11163 is a reply to message #9926] Wed, 15 October 2008 16:56 Go to previous message
Chris Ma is currently offline Chris MaFriend
Messages: 1
Registered: July 2009
Junior Member
herve wrote:

> Hi,
> I have got a problem with the bpel designer.
> I created a default synchronous bpel process.
> I just added an assign to set the output result with a sample data string
> like "sample". I deployed on apache ode.

> In the asign property, i tried $output.payload/tns:result
> and /tns:result

> in both cases when i tested, i have such errors:
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> - <soapenv:Body>
> - <soapenv:Fault
> xmlns:soapenv="http://docs.oasis-open.org/wsbpel/2.0/process/executable";>
> <faultcode>soapenv:selectionFailure</faultcode>
>
<faultstring> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}se lectionFailure
> No results for expression: {OXPath10Expression
> $output.payload/tns:result}</faultstring>
> <detail />
> </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>

> If anyone has a solution, the good query to put, please tell me.

> The copy part of the bpel file:
> <bpws:assign name="Assign" validate="yes">
> <bpws:copy>
> <bpws:from>
> <bpws:literal>sample</bpws:literal>
> </bpws:from>
> <bpws:to part="payload" variable="output">
> <bpws:query
>
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0 "><![CDATA[$output.payload/tns:result]]></bpws:query>
> </bpws:to>
> </bpws:copy>
> </bpws:assign>


Hi,

I faced the same problem, you can try to rewrite the "to" as following.

> <bpws:to part="payload" variable="output">
> <bpws:query
>
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0 "><![CDATA[$output.payload/tns:result]]></bpws:query>
> </bpws:to>

<bpws:to part="payload" variable="output" query="/tns:result"/>

Anyway, I don't want to be like that... everytime do it manually...
anybody can help?
Previous Topic:How to start "ODE Deployment Descriptor Editor"?
Next Topic:Problem Getting Dependancy
Goto Forum:
  


Current Time: Tue Apr 23 10:22:30 GMT 2024

Powered by FUDForum. Page generated in 0.03129 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top