You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Matthieu Riou <ma...@offthelip.org> on 2008/09/19 16:36:11 UTC
Re: ODE while error
Hi,
Can you try the following:
a) Change the types of repeatTimes and repeat to int.
b) Use XPath 2.0 instead of XPath 1.0. This requires adding the
queryLanguage and expressionLanguage attributes in the process element
declaration like here:
http://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X/distro/src/examples-war/HelloWorld2/HelloWorld2.bpel
Thanks,
Matthieu
On Thu, Sep 18, 2008 at 9:54 PM, yebo <ye...@qq.com> wrote:
>
> http-consumer xbean.xml:
>
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
> xmlns:impl="http://bupt.edu.cn"
> xmlns:bp="http://getHelloWorld"
> xmlns:cp="http://ode.fivesight.com/schemas/2006/06/27/dd"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://servicemix.apache.org/http/1.0
> http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
> <http:endpoint service="impl:HelloService"
> endpoint="Hello"
> targetService="impl:HelloService"
> defaultOperation="impl:getHelloWorld"
> role="consumer"
> locationURI="http://0.0.0.0:8192/HelloService/"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> soap="true" />
>
> </beans>
>
>
>
> http-provide xbean.xml:
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:impl="http://bupt.edu.cn"
> xmlns:yebo="http://bupt.yebo"
> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://servicemix.apache.org/http/1.0
> http://servicemix.apache.org/schema/servicemix-http-3.2.2.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
> <http:endpoint service="yebo:yebo_HelloService"
> endpoint="yebo_helloHttpPort"
> role="provider"
> locationURI="http://localhost:8181/Hello/services/Hello"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> soap="true" />
>
> </beans>
>
> --
> View this message in context:
> http://www.nabble.com/ODE--while--error-tp19566046p19566230.html
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>
Re: ODE while error
Posted by yebo <ye...@qq.com>.
Hi, i have changed my bpel according your suggestion, but this time it can't
get out of while
my bpel:
<?xml version="1.0" encoding="UTF-8"?>
<!--
BPEL Process Definition
Edited using ActiveBPEL(r) Designer Version 4.1.0
(http://www.active-endpoints.com)
-->
<bpel:process
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ns1="http://bupt.edu.cn" xmlns:ns2="CreateConference.xsl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="getHelloWorld"
suppressJoinFailure="yes" targetNamespace="http://getHelloWorld"
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
<bpel:import importType="http://schemas.xmlsoap.org/wsdl/"
location="WSDL/Hello.wsdl" namespace="http://bupt.edu.cn"/>
<bpel:partnerLinks>
<bpel:partnerLink myRole="getHelloPLTRole" name="TestHelloPLT"
partnerLinkType="ns1:TestHelloPLT" partnerRole="getHelloPLTRole"/>
</bpel:partnerLinks>
<bpel:variables>
<bpel:variable messageType="ns1:getHelloWorldRequest"
name="getHelloWorldRequest"/>
<bpel:variable messageType="ns1:getHelloWorldResponse"
name="getHelloWorldResponse"/>
<bpel:variable name="repeatTimes" type="xsd:int"/>
<bpel:variable name="repeat" type="xsd:int"/>
</bpel:variables>
<bpel:sequence name="TestSequence">
<bpel:receive createInstance="yes" name="TestReceive"
operation="getHelloWorld" partnerLink="TestHelloPLT" portType="ns1:Hello"
variable="getHelloWorldRequest"/>
<bpel:assign name="Initial">
<bpel:copy>
<bpel:from>
<bpel:literal>1</bpel:literal>
</bpel:from>
<bpel:to variable="repeatTimes"/>
</bpel:copy>
<bpel:copy>
<bpel:from>
<bpel:literal>5</bpel:literal>
</bpel:from>
<bpel:to variable="repeat"/>
</bpel:copy>
</bpel:assign>
<bpel:invoke inputVariable="getHelloWorldRequest" name="TestInvoke"
operation="getHelloWorld" outputVariable="getHelloWorldResponse"
partnerLink="TestHelloPLT" portType="ns1:Hello"/>
<bpel:while name="TestWhile">
<bpel:condition>$repeatTimes < 5</bpel:condition>
<bpel:sequence name="TestSequence">
<bpel:assign>
<bpel:copy>
<bpel:from variable="repeatTimes">
<bpel:query>$repeatTimes + '1'</bpel:query>
</bpel:from>
<bpel:to variable="repeatTimes"/>
</bpel:copy>
</bpel:assign>
</bpel:sequence>
</bpel:while>
<bpel:assign>
<bpel:copy>
<bpel:from part="parameters" variable="getHelloWorldResponse">
<bpel:query>concat(ns1:getHelloWorldReturn, 'Hello',
$repeatTimes, 'haha', $repeat )</bpel:query>
</bpel:from>
<bpel:to part="parameters" variable="getHelloWorldResponse">
<bpel:query>ns1:getHelloWorldReturn</bpel:query>
</bpel:to>
</bpel:copy>
</bpel:assign>
<bpel:reply operation="getHelloWorld" partnerLink="TestHelloPLT"
portType="ns1:Hello" variable="getHelloWorldResponse"/>
</bpel:sequence>
</bpel:process>
Hi,
Can you try the following:
a) Change the types of repeatTimes and repeat to int.
b) Use XPath 2.0 instead of XPath 1.0. This requires adding the
queryLanguage and expressionLanguage attributes in the process element
declaration like here:
http://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X/distro/src/examples-war/HelloWorld2/HelloWorld2.bpel
Thanks,
Matthieu http://www.nabble.com/file/p19574699/HelloBPEL-sa-1.0-SNAPSHOT.zip
HelloBPEL-sa-1.0-SNAPSHOT.zip
--
View this message in context: http://www.nabble.com/ODE--while--error-tp19566046p19574699.html
Sent from the Apache Ode User mailing list archive at Nabble.com.
Re: ODE while error
Posted by yebo <ye...@qq.com>.
I have resolve it. Thank you very much. Thank you very much.
Hi,
Can you try the following:
a) Change the types of repeatTimes and repeat to int.
b) Use XPath 2.0 instead of XPath 1.0. This requires adding the
queryLanguage and expressionLanguage attributes in the process element
declaration like here:
http://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.X/distro/src/examples-war/HelloWorld2/HelloWorld2.bpel
Thanks,
Matthieu
--
View this message in context: http://www.nabble.com/ODE--while--error-tp19566046p19575820.html
Sent from the Apache Ode User mailing list archive at Nabble.com.