You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Rafal <ra...@gmail.com> on 2011/06/14 15:13:35 UTC
How to use ode:process-property('ode.localhost.address')
Hi,
I need to get server's ip address.
I write test process and I get error:
[BpelProcess] ProcessImpl completed with fault
'{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure'
Can somebody tell me what is wrong?
Thanks,
Rafal
My process:
<bpel:process name="test"
targetNamespace="http://www.test.pl"
xmlns:tns="http://www.test.pl"
xmlns:ode="http://www.apache.org/ode/type/extension"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
>
<bpel:import location="testArtifacts.wsdl" namespace="http://www.test.pl"
importType="http://schemas.xmlsoap.org/wsdl/" />
<bpel:partnerLinks>
<bpel:partnerLink name="client"
partnerLinkType="tns:test"
myRole="testProvider"
/>
</bpel:partnerLinks>
<bpel:variables>
<bpel:variable name="input"
messageType="tns:testRequestMessage"/>
<bpel:variable name="output"
messageType="tns:testResponseMessage"/>
</bpel:variables>
<bpel:sequence name="main">
<bpel:receive name="receiveInput" partnerLink="client"
portType="tns:test"
operation="process" variable="input"
createInstance="yes"/>
<bpel:assign>
<bpel:copy>
<bpel:from>ode:process-property('ode.localhost.address')</bpel:from>
<bpel:to part="payload" variable="output" />
</bpel:copy>
</bpel:assign>
<bpel:reply name="replyOutput"
partnerLink="client"
portType="tns:test"
operation="process"
variable="output"
/>
</bpel:sequence>
</bpel:process>
Re: How to use ode:process-property('ode.localhost.address')
Posted by Rafal <ra...@gmail.com>.
Yes. I am sure.
When I insert
<bpel:from>"test"</bpel:from>
instead of
<bpel:from>ode:process-property('ode.localhost.address')</bpel:from>
It works fine.
On Wed, Jun 15, 2011 at 10:54 AM, Christophe Noel
<Ch...@spacebel.be> wrote:
> I checked and your code is right for the process-property (as mentioned in http://ode.apache.org/xpath-extensions.html)
> Are you sure that the problem comes from the process-property ?
>
> -----Original Message-----
> From: Rafal [mailto:rafal.p123@gmail.com]
> Sent: mercredi 15 juin 2011 10:43
> To: user@ode.apache.org
> Subject: Re: How to use ode:process-property('ode.localhost.address')
>
> I tried this and I got the same error.
>
> On Tue, Jun 14, 2011 at 4:14 PM, Christophe Noel <Ch...@spacebel.be> wrote:
>> If I'm not wrong, you should use $ode:process-property instead ?
>>
>> -----Original Message-----
>> From: Rafal [mailto:rafal.p123@gmail.com]
>> Sent: mardi 14 juin 2011 15:14
>> To: user@ode.apache.org
>> Subject: How to use ode:process-property('ode.localhost.address')
>>
>> Hi,
>> I need to get server's ip address.
>> I write test process and I get error:
>> [BpelProcess] ProcessImpl completed with fault '{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure'
>> Can somebody tell me what is wrong?
>>
>> Thanks,
>>
>> Rafal
>>
>>
>> My process:
>> <bpel:process name="test"
>> targetNamespace="http://www.test.pl"
>> xmlns:tns="http://www.test.pl"
>> xmlns:ode="http://www.apache.org/ode/type/extension"
>> xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
>> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
>> >
>> <bpel:import location="testArtifacts.wsdl" namespace="http://www.test.pl"
>> importType="http://schemas.xmlsoap.org/wsdl/" />
>>
>> <bpel:partnerLinks>
>> <bpel:partnerLink name="client"
>> partnerLinkType="tns:test"
>> myRole="testProvider"
>> />
>> </bpel:partnerLinks>
>>
>> <bpel:variables>
>> <bpel:variable name="input"
>> messageType="tns:testRequestMessage"/>
>> <bpel:variable name="output"
>> messageType="tns:testResponseMessage"/>
>> </bpel:variables>
>>
>> <bpel:sequence name="main">
>> <bpel:receive name="receiveInput" partnerLink="client"
>> portType="tns:test"
>> operation="process" variable="input"
>> createInstance="yes"/>
>> <bpel:assign>
>> <bpel:copy>
>>
>> <bpel:from>ode:process-property('ode.localhost.address')</bpel:from>
>> <bpel:to part="payload" variable="output" />
>> </bpel:copy>
>> </bpel:assign>
>> <bpel:reply name="replyOutput"
>> partnerLink="client"
>> portType="tns:test"
>> operation="process"
>> variable="output"
>> />
>> </bpel:sequence>
>> </bpel:process>
>>
>
RE: How to use ode:process-property('ode.localhost.address')
Posted by Christophe Noel <Ch...@spacebel.be>.
I checked and your code is right for the process-property (as mentioned in http://ode.apache.org/xpath-extensions.html)
Are you sure that the problem comes from the process-property ?
-----Original Message-----
From: Rafal [mailto:rafal.p123@gmail.com]
Sent: mercredi 15 juin 2011 10:43
To: user@ode.apache.org
Subject: Re: How to use ode:process-property('ode.localhost.address')
I tried this and I got the same error.
On Tue, Jun 14, 2011 at 4:14 PM, Christophe Noel <Ch...@spacebel.be> wrote:
> If I'm not wrong, you should use $ode:process-property instead ?
>
> -----Original Message-----
> From: Rafal [mailto:rafal.p123@gmail.com]
> Sent: mardi 14 juin 2011 15:14
> To: user@ode.apache.org
> Subject: How to use ode:process-property('ode.localhost.address')
>
> Hi,
> I need to get server's ip address.
> I write test process and I get error:
> [BpelProcess] ProcessImpl completed with fault '{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure'
> Can somebody tell me what is wrong?
>
> Thanks,
>
> Rafal
>
>
> My process:
> <bpel:process name="test"
> targetNamespace="http://www.test.pl"
> xmlns:tns="http://www.test.pl"
> xmlns:ode="http://www.apache.org/ode/type/extension"
> xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
> >
> <bpel:import location="testArtifacts.wsdl" namespace="http://www.test.pl"
> importType="http://schemas.xmlsoap.org/wsdl/" />
>
> <bpel:partnerLinks>
> <bpel:partnerLink name="client"
> partnerLinkType="tns:test"
> myRole="testProvider"
> />
> </bpel:partnerLinks>
>
> <bpel:variables>
> <bpel:variable name="input"
> messageType="tns:testRequestMessage"/>
> <bpel:variable name="output"
> messageType="tns:testResponseMessage"/>
> </bpel:variables>
>
> <bpel:sequence name="main">
> <bpel:receive name="receiveInput" partnerLink="client"
> portType="tns:test"
> operation="process" variable="input"
> createInstance="yes"/>
> <bpel:assign>
> <bpel:copy>
>
> <bpel:from>ode:process-property('ode.localhost.address')</bpel:from>
> <bpel:to part="payload" variable="output" />
> </bpel:copy>
> </bpel:assign>
> <bpel:reply name="replyOutput"
> partnerLink="client"
> portType="tns:test"
> operation="process"
> variable="output"
> />
> </bpel:sequence>
> </bpel:process>
>
Re: How to use ode:process-property('ode.localhost.address')
Posted by Rafal <ra...@gmail.com>.
I tried this and I got the same error.
On Tue, Jun 14, 2011 at 4:14 PM, Christophe Noel
<Ch...@spacebel.be> wrote:
> If I'm not wrong, you should use $ode:process-property instead ?
>
> -----Original Message-----
> From: Rafal [mailto:rafal.p123@gmail.com]
> Sent: mardi 14 juin 2011 15:14
> To: user@ode.apache.org
> Subject: How to use ode:process-property('ode.localhost.address')
>
> Hi,
> I need to get server's ip address.
> I write test process and I get error:
> [BpelProcess] ProcessImpl completed with fault '{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure'
> Can somebody tell me what is wrong?
>
> Thanks,
>
> Rafal
>
>
> My process:
> <bpel:process name="test"
> targetNamespace="http://www.test.pl"
> xmlns:tns="http://www.test.pl"
> xmlns:ode="http://www.apache.org/ode/type/extension"
> xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
> >
> <bpel:import location="testArtifacts.wsdl" namespace="http://www.test.pl"
> importType="http://schemas.xmlsoap.org/wsdl/" />
>
> <bpel:partnerLinks>
> <bpel:partnerLink name="client"
> partnerLinkType="tns:test"
> myRole="testProvider"
> />
> </bpel:partnerLinks>
>
> <bpel:variables>
> <bpel:variable name="input"
> messageType="tns:testRequestMessage"/>
> <bpel:variable name="output"
> messageType="tns:testResponseMessage"/>
> </bpel:variables>
>
> <bpel:sequence name="main">
> <bpel:receive name="receiveInput" partnerLink="client"
> portType="tns:test"
> operation="process" variable="input"
> createInstance="yes"/>
> <bpel:assign>
> <bpel:copy>
> <bpel:from>ode:process-property('ode.localhost.address')</bpel:from>
> <bpel:to part="payload" variable="output" />
> </bpel:copy>
> </bpel:assign>
> <bpel:reply name="replyOutput"
> partnerLink="client"
> portType="tns:test"
> operation="process"
> variable="output"
> />
> </bpel:sequence>
> </bpel:process>
>
RE: How to use ode:process-property('ode.localhost.address')
Posted by Christophe Noel <Ch...@spacebel.be>.
If I'm not wrong, you should use $ode:process-property instead ?
-----Original Message-----
From: Rafal [mailto:rafal.p123@gmail.com]
Sent: mardi 14 juin 2011 15:14
To: user@ode.apache.org
Subject: How to use ode:process-property('ode.localhost.address')
Hi,
I need to get server's ip address.
I write test process and I get error:
[BpelProcess] ProcessImpl completed with fault '{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure'
Can somebody tell me what is wrong?
Thanks,
Rafal
My process:
<bpel:process name="test"
targetNamespace="http://www.test.pl"
xmlns:tns="http://www.test.pl"
xmlns:ode="http://www.apache.org/ode/type/extension"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
>
<bpel:import location="testArtifacts.wsdl" namespace="http://www.test.pl"
importType="http://schemas.xmlsoap.org/wsdl/" />
<bpel:partnerLinks>
<bpel:partnerLink name="client"
partnerLinkType="tns:test"
myRole="testProvider"
/>
</bpel:partnerLinks>
<bpel:variables>
<bpel:variable name="input"
messageType="tns:testRequestMessage"/>
<bpel:variable name="output"
messageType="tns:testResponseMessage"/>
</bpel:variables>
<bpel:sequence name="main">
<bpel:receive name="receiveInput" partnerLink="client"
portType="tns:test"
operation="process" variable="input"
createInstance="yes"/>
<bpel:assign>
<bpel:copy>
<bpel:from>ode:process-property('ode.localhost.address')</bpel:from>
<bpel:to part="payload" variable="output" />
</bpel:copy>
</bpel:assign>
<bpel:reply name="replyOutput"
partnerLink="client"
portType="tns:test"
operation="process"
variable="output"
/>
</bpel:sequence>
</bpel:process>