You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Christian Bruckhoff <Ch...@gmx.de> on 2010/08/10 01:10:12 UTC

Changing the IP dynamically using XPath changes < to <

Hi.

I want to create a dynamic invoke of a web service. For this i need to 
copy the IPAddress from a variable to the service-ref variable. My 
approach for solving this problem was the one shown below. This assign 
will make the < occur as &lt; in the SOAP message of the invoke. How can 
i solve this problem?

TIA
Christian

-------

<bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
   <bpel:copy>
     <bpel:from>
       <![CDATA[concat('<sref:service-ref 
xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref"><EndpointReference 
xmlns="http://www.w3.org/2005/08/addressing"><Address>',concat('http://', $waterGauge/wg:ipAddress, 
$waterGauge/wg:getTimeSeriesPath) 
,'</Address></EndpointReference></sref:service-ref>')]]>
     </bpel:from>
     <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
   </bpel:copy>
   <bpel:copy>
     <bpel:from>$getTimeSeriesEndpoint</bpel:from>
     <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
   </bpel:copy>
</bpel:assign>
<bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL" 
operation="getTimeSeries" portType="xhydrotns:getTimeSeries_WebService" 
inputVariable="getTimeSeriesRequest" 
outputVariable="getTimeSeriesResponse" />

Re: Changing the IP dynamically using XPath changes < to <

Posted by Christian Bruckhoff <Ch...@gmx.de>.
Hi.

Am 13.08.2010 15:31, schrieb Tammo van Lessen:
> Hi Christian,
>
> could you please try an ODE 1.3.5 snapshot? The axis IL has been
> upgraded to Axis2 1.5, so I guess that the useOriginalWsdl issue has
> been fixed. ODE 2.0-exp was also on Axis2 1.5. Since 2.0 is an
> experimental build it is well possible that the xpath integration is flawed.
>

I tried the 1.3.5 snapshot. The processes didn't even deploy. 2.0 Beta 2 
and ODE 1.3.3 (or 1.3.4) at least deploy the processes.

Here's the error log of 1.3.5 (with Tomcat 7.0):

----------

INFO: Server startup in 46776 ms
12:10:22,375 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=1
12:10:22,390 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=2
12:10:22,390 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=3
12:10:22,390 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=4
12:10:22,390 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=5
12:10:22,390 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=6
12:10:22,390 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=7
12:10:22,406 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=8
12:10:22,421 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:) 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-sec
ext-1.0.xsd
12:10:22,468 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://www.xhydro.org/minimal/2009/09/XHydro.xsd
12:10:22,875 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://www.xhydro.org/minimal/2009/09/XHydro.xsd
12:10:22,890 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:) 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-sec
ext-1.0.xsd
12:10:22,890 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=1
12:10:22,890 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=2
12:10:22,906 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=3
12:10:22,906 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=4
12:10:22,906 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=5
12:10:22,906 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=6
12:10:22,906 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=7
12:10:22,906 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=8
12:10:22,937 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://www.xhydro.org/minimal/2009/09/XHydro.xsd
12:10:23,046 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://www.xhydro.org/minimal/2009/09/XHydro.xsd
12:10:23,046 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:) 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-sec
ext-1.0.xsd
12:10:23,046 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=1
12:10:23,046 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=2
12:10:23,062 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=3
12:10:23,062 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=4
12:10:23,062 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=5
12:10:23,062 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=6
12:10:23,078 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=7
12:10:23,078 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://localhost:9879/databaseWebService?xsd=8
12:10:23,078 ERROR [XSUtils] captureSchema: XMLParseException(s) in 
org.apache.x
erces.dom.DOMInputImpl@1d6e4a4
12:10:23,109 ERROR [BpelC] 
file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WE
B-INF/processes/processes/retrieveTimeSeries.bpel:15: error: 
[InvalidImport] The
  import "waterGauge.xsd" is invalid/malformed. */
12:10:23,109 FATAL [DefaultResourceFinder] openResource: invalid scheme 
(should
be urn:)  http://www.xhydro.org/minimal/2009/09/getTimeSeriesRequest.xsd
12:10:23,203 WARN  [SchemaModelImpl] Schema error
java.lang.IllegalStateException: Schema 
:http://www.xhydro.org/minimal/2009/09/g
etTimeSeriesRequest.xsd:file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WEB-I
NF/processes/processes/getTimeSeries.wsdl:http://www.xhydro.org/minimal/2009/09/
getTimeSeriesRequest.xsd:http://xhydro.org/ws/request not captured
         at 
org.apache.ode.utils.xsd.SchemaModelImpl$InternalSchemaResolver.resol
veEntity(SchemaModelImpl.java:200)
         at 
org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)

         at 
org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Sou
rce)
         at 
org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown
  Source)
         at 
org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknow
n Source)
         at 
org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown S
ource)
         at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown 
Source)
         at 
org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)

         at 
org.apache.xerces.impl.xs.XMLSchemaLoader.loadInputList(Unknown Sourc
e)
         at 
org.apache.ode.utils.xsd.SchemaModelImpl.newModel(SchemaModelImpl.jav
a:95)
         at 
org.apache.ode.bpel.compiler.WSDLRegistry.getSchemaModel(WSDLRegistry
.java:109)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.resolveXsdType(BpelCompiler
.java:427)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1
429)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.access$1000(BpelCompiler.ja
va:134)
         at 
org.apache.ode.bpel.compiler.BpelCompiler$8.run(BpelCompiler.java:118
0)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1
126)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compileScope(BpelCompiler.j
ava:1176)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compileSLC(BpelCompiler.jav
a:932)
         at 
org.apache.ode.bpel.compiler.ForEachGenerator.compile(ForEachGenerato
r.java:84)
         at 
org.apache.ode.bpel.compiler.BpelCompiler$7.run(BpelCompiler.java:963
)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1
126)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compileActivity(BpelCompile
r.java:959)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:9
08)
         at 
org.apache.ode.bpel.compiler.SequenceGenerator.compileChildren(Sequen
ceGenerator.java:54)
         at 
org.apache.ode.bpel.compiler.SequenceGenerator.compile(SequenceGenera
tor.java:45)
         at 
org.apache.ode.bpel.compiler.BpelCompiler$7.run(BpelCompiler.java:963
)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1
126)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compileActivity(BpelCompile
r.java:959)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:9
08)
         at 
org.apache.ode.bpel.compiler.BpelCompiler$5.run(BpelCompiler.java:762
)
         at 
org.apache.ode.bpel.compiler.BpelCompiler$8.run(BpelCompiler.java:122
6)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:1
126)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compileScope(BpelCompiler.j
ava:1176)
         at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:7
42)
         at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
         at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:349)
         at 
org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:2
13)
         at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
         at 
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java
:210)
         at 
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java
:171)
         at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:20
0)
         at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:16
8)
         at 
org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.j
ava:160)
         at 
org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPol
ler.java:60)
         at 
org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(Deploy
mentPoller.java:251)
12:10:23,265 WARN  [SchemaModelImpl] null:-1
12:10:23,265 WARN  [SchemaModelImpl]
12:10:23,265 WARN  [SchemaModelImpl] java.lang.IllegalStateException: 
Schema :ht
tp://www.xhydro.org/minimal/2009/09/getTimeSeriesRequest.xsd:file:/C:/Programme/
apache-tomcat-7.0.0/webapps/ode/WEB-INF/processes/processes/getTimeSeries.wsdl:h
ttp://www.xhydro.org/minimal/2009/09/getTimeSeriesRequest.xsd:http://xhydro.org/
ws/request not captured
12:10:23,265 ERROR [BpelC] null:119: error: [UndeclaredXsdType] Attempt 
to refer
ence undeclared XSD type "{http://www.w3.org/2001/XMLSchema}string".
12:10:23,296 ERROR [BpelC] 
file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WE
B-INF/processes/processes/retrieveTimeSeries.bpel:285: error: 
[UndeclaredVariabl
e] Attempt to reference undeclared variable "getTimeSeriesEndpointString".
12:10:23,312 ERROR [BpelC] null:298: error: [UndeclaredVariable] Attempt 
to refe
rence undeclared variable "getTimeSeriesEndpointString".
12:10:23,328 ERROR [ProcessStoreImpl] Deploy failed; error: 
[CompilationErrors]
Compilation completed with 4 error(s):
 
file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WEB-INF/processes/pro
cesses/retrieveTimeSeries.bpel:15: error: [InvalidImport] The import 
"waterGauge
.xsd" is invalid/malformed. */
         null:119: error: [UndeclaredXsdType] Attempt to reference 
undeclared XSD
  type "{http://www.w3.org/2001/XMLSchema}string".
 
file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WEB-INF/processes/pro
cesses/retrieveTimeSeries.bpel:285: error: [UndeclaredVariable] Attempt 
to refer
ence undeclared variable "getTimeSeriesEndpointString".
         null:298: error: [UndeclaredVariable] Attempt to reference 
undeclared va
riable "getTimeSeriesEndpointString".

org.apache.ode.bpel.compiler.api.CompilationException: error: 
[CompilationErrors
] Compilation completed with 4 error(s):
 
file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WEB-INF/processes/pro
cesses/retrieveTimeSeries.bpel:15: error: [InvalidImport] The import 
"waterGauge
.xsd" is invalid/malformed. */
         null:119: error: [UndeclaredXsdType] Attempt to reference 
undeclared XSD
  type "{http://www.w3.org/2001/XMLSchema}string".
 
file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WEB-INF/processes/pro
cesses/retrieveTimeSeries.bpel:285: error: [UndeclaredVariable] Attempt 
to refer
ence undeclared variable "getTimeSeriesEndpointString".
         null:298: error: [UndeclaredVariable] Attempt to reference 
undeclared va
riable "getTimeSeriesEndpointString".

         at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:7
84)
         at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
         at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:349)
         at 
org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:2
13)
         at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
         at 
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java
:210)
         at 
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java
:171)
         at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:20
0)
         at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:16
8)
         at 
org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.j
ava:160)
         at 
org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPol
ler.java:60)
         at 
org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(Deploy
mentPoller.java:251)
12:10:23,343 ERROR [DeploymentPoller] Deployment of processes failed, 
aborting f
or now.
org.apache.ode.bpel.iapi.ContextException: Deploy failed; error: 
[CompilationErr
ors] Compilation completed with 4 error(s):
 
file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WEB-INF/processes/pro
cesses/retrieveTimeSeries.bpel:15: error: [InvalidImport] The import 
"waterGauge
.xsd" is invalid/malformed. */
         null:119: error: [UndeclaredXsdType] Attempt to reference 
undeclared XSD
  type "{http://www.w3.org/2001/XMLSchema}string".
 
file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WEB-INF/processes/pro
cesses/retrieveTimeSeries.bpel:285: error: [UndeclaredVariable] Attempt 
to refer
ence undeclared variable "getTimeSeriesEndpointString".
         null:298: error: [UndeclaredVariable] Attempt to reference 
undeclared va
riable "getTimeSeriesEndpointString".

         at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:20
4)
         at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:16
8)
         at 
org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.j
ava:160)
         at 
org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPol
ler.java:60)
         at 
org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(Deploy
mentPoller.java:251)
Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error: 
[Compil
ationErrors] Compilation completed with 4 error(s):
 
file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WEB-INF/processes/pro
cesses/retrieveTimeSeries.bpel:15: error: [InvalidImport] The import 
"waterGauge
.xsd" is invalid/malformed. */
         null:119: error: [UndeclaredXsdType] Attempt to reference 
undeclared XSD
  type "{http://www.w3.org/2001/XMLSchema}string".
 
file:/C:/Programme/apache-tomcat-7.0.0/webapps/ode/WEB-INF/processes/pro
cesses/retrieveTimeSeries.bpel:285: error: [UndeclaredVariable] Attempt 
to refer
ence undeclared variable "getTimeSeriesEndpointString".
         null:298: error: [UndeclaredVariable] Attempt to reference 
undeclared va
riable "getTimeSeriesEndpointString".

         at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:7
84)
         at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
         at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:349)
         at 
org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:2
13)
         at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
         at 
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java
:210)
         at 
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java
:171)
         at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:20
0)
         ... 4 more

----------

If you need the code just say it an I will publish it.

Greetings
Christian

>
> On 13.08.2010 15:22, Christian Bruckhoff wrote:
>> Hi.
>>
>> Am 13.08.2010 11:23, schrieb Geert Monsieur:
>>> This is probably not the most 'clean' solution, but it's working for me:
>>>
>>> <bpel:copy>
>>>      <bpel:from>concat($url,'')</bpel:from>
>>>      <bpel:to partnerLink="partnerlink"/>
>>> </bpel:copy>
>>>
>>> $url is a xsd:string containing an url.
>>>
>>
>> Without any service-reference element? And why you still use concat
>> instead of only using $url?
>> Without the CDATA around concat, ODE 2.0Beta2 doesn't even recognize
>> concat as an XPath expression. And without the service-reference, the
>> system says, that it can't infer the transport information.
>>
>> ThX
>> Christian
>>
>>>
>>>
>>> On Tue, Aug 10, 2010 at 13:31, Christian Bruckhoff<
>>> Christian.Bruckhoff@gmx.de>   wrote:
>>>
>>>> Hi.
>>>>
>>>> Am 10.08.2010 11:07, schrieb Rafal Rusin:
>>>>
>>>>    I did sample test case for saxon parse. It works.
>>>>> Please try out small example first.
>>>>> Then if it doesn't work, please attach process so we could add it to
>>>>> integration tests.
>>>>>
>>>>
>>>> I tried a small example, using the code you posted below.
>>>> I found out, that the process works fine with ODE 1.3.3, but not with
>>>> ODE
>>>> 2.0 Beta2. I need ODE 2.0 Beta2, because it is the only version, working
>>>> with<parameter name="useOriginalwsdl">true</parameter>. All other
>>>> versions
>>>> don't create the right links to the schemaLocations of the imports.
>>>>
>>>> Is there another way to solve my problem (with or without saxon)? You
>>>> can
>>>> download the process as ZIP[1] or file by file[2].
>>>>
>>>> Greetings
>>>> Christian
>>>>
>>>> [1] http://www.uni-koblenz.de/~brchrist/20100810saxonParse.zip
>>>> [2] http://www.uni-koblenz.de/~brchrist/20100810saxonParse/
>>>>
>>>>
>>>>
>>>>> +++
>>>>> bpel-test/src/test/resources/bpel/2.0/TestXQueryExpression/HelloXQueryWorld.bpel
>>>>>
>>>>>      (kopia
>>>>> robocza)
>>>>> @@ -276,6 +276,30 @@
>>>>>                  </copy>
>>>>>                </assign>
>>>>>            </scope>
>>>>> +<scope>
>>>>> +<variables>
>>>>> +<variable name="nodeVar" type="xsd:anyType"/>
>>>>> +<variable name="textVar" type="xsd:string"/>
>>>>> +</variables>
>>>>> +<sequence>
>>>>> +<assign>
>>>>> +<copy>
>>>>> +<from
>>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
>>>>> +<![CDATA[ '<a><b>some-b-text</b></a>' ]]>
>>>>> +</from>
>>>>> +<to>$textVar</to>
>>>>> +</copy>
>>>>> +<copy>
>>>>> +<from xmlns:saxon="http://saxon.sf.net/"
>>>>>
>>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(xsd:string($textVar))</from>
>>>>>
>>>>> +<to variable="nodeVar"/>
>>>>> +</copy>
>>>>> +</assign>
>>>>> +<if>
>>>>> +<condition>$nodeVar/b/text() != 'some-b-text'</condition>
>>>>> +<throw faultName="error"/>
>>>>> +</if>
>>>>> +</sequence>
>>>>> +</scope>
>>>>>            <reply name="end"
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Aug 10, 2010 at 10:22 AM, Christian Bruckhoff
>>>>> <Ch...@gmx.de>    wrote:
>>>>>
>>>>>> Hi.
>>>>>>
>>>>>> Am 10.08.2010 08:57, schrieb Rafal Rusin:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> you need to convert string into node using saxon:parse. Please
>>>>>>> check out
>>>>>>> this:
>>>>>>> http://markmail.org/thread/zzcugme3c7z6l4zt
>>>>>>>
>>>>>>
>>>>>> If I use saxon with the following copy element, which I put between
>>>>>> the
>>>>>> other two, I get an error. But I don't know, where the problem in this
>>>>>> assignment is. Can you help me pls?
>>>>>>
>>>>>> TIA
>>>>>> Christian
>>>>>>
>>>>>> ------
>>>>>>
>>>>>> <bpel:copy>
>>>>>>    <bpel:from xmlns:saxon="http://saxon.sf.net/"
>>>>>>
>>>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(string($getTimeSeriesEndpoint))</bpel:from>
>>>>>>
>>>>>>    <bpel:to>$getTimeSeriesEndpoint</bpel:to>
>>>>>> </bpel:copy>
>>>>>>
>>>>>> ------
>>>>>>
>>>>>> ERROR - GeronimoLog.error(104) | Assignment Fault:
>>>>>> {
>>>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault,lineNo=289,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault%2ClineNo%3D289%2CfaultExplanation%3D%7Bhttp://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault>
>>>>>>
>>>>>> :
>>>>>> One or more static errors were reported during query analysis
>>>>>>
>>>>>>
>>>>>>    On Tue, Aug 10, 2010 at 1:10 AM, Christian Bruckhoff
>>>>>>> <Ch...@gmx.de>      wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hi.
>>>>>>>>
>>>>>>>> I want to create a dynamic invoke of a web service. For this i
>>>>>>>> need to
>>>>>>>> copy
>>>>>>>> the IPAddress from a variable to the service-ref variable. My
>>>>>>>> approach
>>>>>>>> for
>>>>>>>> solving this problem was the one shown below. This assign will make
>>>>>>>> the<
>>>>>>>> occur as&lt; in the SOAP message of the invoke. How can i solve this
>>>>>>>> problem?
>>>>>>>>
>>>>>>>> TIA
>>>>>>>> Christian
>>>>>>>>
>>>>>>>> -------
>>>>>>>>
>>>>>>>> <bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
>>>>>>>>    <bpel:copy>
>>>>>>>>      <bpel:from>
>>>>>>>>        <![CDATA[concat('<sref:service-ref
>>>>>>>>
>>>>>>>> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref
>>>>>>>> "><EndpointReference
>>>>>>>> xmlns="http://www.w3.org/2005/08/addressing
>>>>>>>> "><Address>',concat('http://',
>>>>>>>> $waterGauge/wg:ipAddress, $waterGauge/wg:getTimeSeriesPath)
>>>>>>>> ,'</Address></EndpointReference></sref:service-ref>')]]>
>>>>>>>>      </bpel:from>
>>>>>>>>      <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
>>>>>>>>    </bpel:copy>
>>>>>>>>    <bpel:copy>
>>>>>>>>      <bpel:from>$getTimeSeriesEndpoint</bpel:from>
>>>>>>>>      <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
>>>>>>>>    </bpel:copy>
>>>>>>>> </bpel:assign>
>>>>>>>> <bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL"
>>>>>>>> operation="getTimeSeries"
>>>>>>>> portType="xhydrotns:getTimeSeries_WebService"
>>>>>>>> inputVariable="getTimeSeriesRequest"
>>>>>>>> outputVariable="getTimeSeriesResponse"
>>>>>>>> />
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>
>

Re: Changing the IP dynamically using XPath changes < to <

Posted by Christian Bruckhoff <Ch...@gmx.de>.
Am 13.08.2010 15:31, schrieb Tammo van Lessen:
> Hi Christian,
>
> could you please try an ODE 1.3.5 snapshot? The axis IL has been
> upgraded to Axis2 1.5, so I guess that the useOriginalWsdl issue has
> been fixed. ODE 2.0-exp was also on Axis2 1.5. Since 2.0 is an
> experimental build it is well possible that the xpath integration is flawed.

Hi.

http://hudson.zones.apache.org is down. Is there a mirror to the latest 
nightly build?

Greetz
Christian

> Thanks,
>    Tammo
>
> On 13.08.2010 15:22, Christian Bruckhoff wrote:
>> Hi.
>>
>> Am 13.08.2010 11:23, schrieb Geert Monsieur:
>>> This is probably not the most 'clean' solution, but it's working for me:
>>>
>>> <bpel:copy>
>>>      <bpel:from>concat($url,'')</bpel:from>
>>>      <bpel:to partnerLink="partnerlink"/>
>>> </bpel:copy>
>>>
>>> $url is a xsd:string containing an url.
>>>
>>
>> Without any service-reference element? And why you still use concat
>> instead of only using $url?
>> Without the CDATA around concat, ODE 2.0Beta2 doesn't even recognize
>> concat as an XPath expression. And without the service-reference, the
>> system says, that it can't infer the transport information.
>>
>> ThX
>> Christian
>>
>>>
>>>
>>> On Tue, Aug 10, 2010 at 13:31, Christian Bruckhoff<
>>> Christian.Bruckhoff@gmx.de>   wrote:
>>>
>>>> Hi.
>>>>
>>>> Am 10.08.2010 11:07, schrieb Rafal Rusin:
>>>>
>>>>    I did sample test case for saxon parse. It works.
>>>>> Please try out small example first.
>>>>> Then if it doesn't work, please attach process so we could add it to
>>>>> integration tests.
>>>>>
>>>>
>>>> I tried a small example, using the code you posted below.
>>>> I found out, that the process works fine with ODE 1.3.3, but not with
>>>> ODE
>>>> 2.0 Beta2. I need ODE 2.0 Beta2, because it is the only version, working
>>>> with<parameter name="useOriginalwsdl">true</parameter>. All other
>>>> versions
>>>> don't create the right links to the schemaLocations of the imports.
>>>>
>>>> Is there another way to solve my problem (with or without saxon)? You
>>>> can
>>>> download the process as ZIP[1] or file by file[2].
>>>>
>>>> Greetings
>>>> Christian
>>>>
>>>> [1] http://www.uni-koblenz.de/~brchrist/20100810saxonParse.zip
>>>> [2] http://www.uni-koblenz.de/~brchrist/20100810saxonParse/
>>>>
>>>>
>>>>
>>>>> +++
>>>>> bpel-test/src/test/resources/bpel/2.0/TestXQueryExpression/HelloXQueryWorld.bpel
>>>>>
>>>>>      (kopia
>>>>> robocza)
>>>>> @@ -276,6 +276,30 @@
>>>>>                  </copy>
>>>>>                </assign>
>>>>>            </scope>
>>>>> +<scope>
>>>>> +<variables>
>>>>> +<variable name="nodeVar" type="xsd:anyType"/>
>>>>> +<variable name="textVar" type="xsd:string"/>
>>>>> +</variables>
>>>>> +<sequence>
>>>>> +<assign>
>>>>> +<copy>
>>>>> +<from
>>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
>>>>> +<![CDATA[ '<a><b>some-b-text</b></a>' ]]>
>>>>> +</from>
>>>>> +<to>$textVar</to>
>>>>> +</copy>
>>>>> +<copy>
>>>>> +<from xmlns:saxon="http://saxon.sf.net/"
>>>>>
>>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(xsd:string($textVar))</from>
>>>>>
>>>>> +<to variable="nodeVar"/>
>>>>> +</copy>
>>>>> +</assign>
>>>>> +<if>
>>>>> +<condition>$nodeVar/b/text() != 'some-b-text'</condition>
>>>>> +<throw faultName="error"/>
>>>>> +</if>
>>>>> +</sequence>
>>>>> +</scope>
>>>>>            <reply name="end"
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Aug 10, 2010 at 10:22 AM, Christian Bruckhoff
>>>>> <Ch...@gmx.de>    wrote:
>>>>>
>>>>>> Hi.
>>>>>>
>>>>>> Am 10.08.2010 08:57, schrieb Rafal Rusin:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> you need to convert string into node using saxon:parse. Please
>>>>>>> check out
>>>>>>> this:
>>>>>>> http://markmail.org/thread/zzcugme3c7z6l4zt
>>>>>>>
>>>>>>
>>>>>> If I use saxon with the following copy element, which I put between
>>>>>> the
>>>>>> other two, I get an error. But I don't know, where the problem in this
>>>>>> assignment is. Can you help me pls?
>>>>>>
>>>>>> TIA
>>>>>> Christian
>>>>>>
>>>>>> ------
>>>>>>
>>>>>> <bpel:copy>
>>>>>>    <bpel:from xmlns:saxon="http://saxon.sf.net/"
>>>>>>
>>>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(string($getTimeSeriesEndpoint))</bpel:from>
>>>>>>
>>>>>>    <bpel:to>$getTimeSeriesEndpoint</bpel:to>
>>>>>> </bpel:copy>
>>>>>>
>>>>>> ------
>>>>>>
>>>>>> ERROR - GeronimoLog.error(104) | Assignment Fault:
>>>>>> {
>>>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault,lineNo=289,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault%2ClineNo%3D289%2CfaultExplanation%3D%7Bhttp://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault>
>>>>>>
>>>>>> :
>>>>>> One or more static errors were reported during query analysis
>>>>>>
>>>>>>
>>>>>>    On Tue, Aug 10, 2010 at 1:10 AM, Christian Bruckhoff
>>>>>>> <Ch...@gmx.de>      wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hi.
>>>>>>>>
>>>>>>>> I want to create a dynamic invoke of a web service. For this i
>>>>>>>> need to
>>>>>>>> copy
>>>>>>>> the IPAddress from a variable to the service-ref variable. My
>>>>>>>> approach
>>>>>>>> for
>>>>>>>> solving this problem was the one shown below. This assign will make
>>>>>>>> the<
>>>>>>>> occur as&lt; in the SOAP message of the invoke. How can i solve this
>>>>>>>> problem?
>>>>>>>>
>>>>>>>> TIA
>>>>>>>> Christian
>>>>>>>>
>>>>>>>> -------
>>>>>>>>
>>>>>>>> <bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
>>>>>>>>    <bpel:copy>
>>>>>>>>      <bpel:from>
>>>>>>>>        <![CDATA[concat('<sref:service-ref
>>>>>>>>
>>>>>>>> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref
>>>>>>>> "><EndpointReference
>>>>>>>> xmlns="http://www.w3.org/2005/08/addressing
>>>>>>>> "><Address>',concat('http://',
>>>>>>>> $waterGauge/wg:ipAddress, $waterGauge/wg:getTimeSeriesPath)
>>>>>>>> ,'</Address></EndpointReference></sref:service-ref>')]]>
>>>>>>>>      </bpel:from>
>>>>>>>>      <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
>>>>>>>>    </bpel:copy>
>>>>>>>>    <bpel:copy>
>>>>>>>>      <bpel:from>$getTimeSeriesEndpoint</bpel:from>
>>>>>>>>      <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
>>>>>>>>    </bpel:copy>
>>>>>>>> </bpel:assign>
>>>>>>>> <bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL"
>>>>>>>> operation="getTimeSeries"
>>>>>>>> portType="xhydrotns:getTimeSeries_WebService"
>>>>>>>> inputVariable="getTimeSeriesRequest"
>>>>>>>> outputVariable="getTimeSeriesResponse"
>>>>>>>> />
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>
>

Re: Changing the IP dynamically using XPath changes < to <

Posted by Tammo van Lessen <tv...@gmail.com>.
Hi Christian,

could you please try an ODE 1.3.5 snapshot? The axis IL has been
upgraded to Axis2 1.5, so I guess that the useOriginalWsdl issue has
been fixed. ODE 2.0-exp was also on Axis2 1.5. Since 2.0 is an
experimental build it is well possible that the xpath integration is flawed.

Thanks,
  Tammo

On 13.08.2010 15:22, Christian Bruckhoff wrote:
> Hi.
> 
> Am 13.08.2010 11:23, schrieb Geert Monsieur:
>> This is probably not the most 'clean' solution, but it's working for me:
>>
>> <bpel:copy>
>>     <bpel:from>concat($url,'')</bpel:from>
>>     <bpel:to partnerLink="partnerlink"/>
>> </bpel:copy>
>>
>> $url is a xsd:string containing an url.
>>
> 
> Without any service-reference element? And why you still use concat
> instead of only using $url?
> Without the CDATA around concat, ODE 2.0Beta2 doesn't even recognize
> concat as an XPath expression. And without the service-reference, the
> system says, that it can't infer the transport information.
> 
> ThX
> Christian
> 
>>
>>
>> On Tue, Aug 10, 2010 at 13:31, Christian Bruckhoff<
>> Christian.Bruckhoff@gmx.de>  wrote:
>>
>>> Hi.
>>>
>>> Am 10.08.2010 11:07, schrieb Rafal Rusin:
>>>
>>>   I did sample test case for saxon parse. It works.
>>>> Please try out small example first.
>>>> Then if it doesn't work, please attach process so we could add it to
>>>> integration tests.
>>>>
>>>
>>> I tried a small example, using the code you posted below.
>>> I found out, that the process works fine with ODE 1.3.3, but not with
>>> ODE
>>> 2.0 Beta2. I need ODE 2.0 Beta2, because it is the only version, working
>>> with<parameter name="useOriginalwsdl">true</parameter>. All other
>>> versions
>>> don't create the right links to the schemaLocations of the imports.
>>>
>>> Is there another way to solve my problem (with or without saxon)? You
>>> can
>>> download the process as ZIP[1] or file by file[2].
>>>
>>> Greetings
>>> Christian
>>>
>>> [1] http://www.uni-koblenz.de/~brchrist/20100810saxonParse.zip
>>> [2] http://www.uni-koblenz.de/~brchrist/20100810saxonParse/
>>>
>>>
>>>
>>>> +++
>>>> bpel-test/src/test/resources/bpel/2.0/TestXQueryExpression/HelloXQueryWorld.bpel
>>>>
>>>>     (kopia
>>>> robocza)
>>>> @@ -276,6 +276,30 @@
>>>>                 </copy>
>>>>               </assign>
>>>>           </scope>
>>>> +<scope>
>>>> +<variables>
>>>> +<variable name="nodeVar" type="xsd:anyType"/>
>>>> +<variable name="textVar" type="xsd:string"/>
>>>> +</variables>
>>>> +<sequence>
>>>> +<assign>
>>>> +<copy>
>>>> +<from
>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
>>>> +<![CDATA[ '<a><b>some-b-text</b></a>' ]]>
>>>> +</from>
>>>> +<to>$textVar</to>
>>>> +</copy>
>>>> +<copy>
>>>> +<from xmlns:saxon="http://saxon.sf.net/"
>>>>
>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(xsd:string($textVar))</from>
>>>>
>>>> +<to variable="nodeVar"/>
>>>> +</copy>
>>>> +</assign>
>>>> +<if>
>>>> +<condition>$nodeVar/b/text() != 'some-b-text'</condition>
>>>> +<throw faultName="error"/>
>>>> +</if>
>>>> +</sequence>
>>>> +</scope>
>>>>           <reply name="end"
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Aug 10, 2010 at 10:22 AM, Christian Bruckhoff
>>>> <Ch...@gmx.de>   wrote:
>>>>
>>>>> Hi.
>>>>>
>>>>> Am 10.08.2010 08:57, schrieb Rafal Rusin:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> you need to convert string into node using saxon:parse. Please
>>>>>> check out
>>>>>> this:
>>>>>> http://markmail.org/thread/zzcugme3c7z6l4zt
>>>>>>
>>>>>
>>>>> If I use saxon with the following copy element, which I put between
>>>>> the
>>>>> other two, I get an error. But I don't know, where the problem in this
>>>>> assignment is. Can you help me pls?
>>>>>
>>>>> TIA
>>>>> Christian
>>>>>
>>>>> ------
>>>>>
>>>>> <bpel:copy>
>>>>>   <bpel:from xmlns:saxon="http://saxon.sf.net/"
>>>>>
>>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(string($getTimeSeriesEndpoint))</bpel:from>
>>>>>
>>>>>   <bpel:to>$getTimeSeriesEndpoint</bpel:to>
>>>>> </bpel:copy>
>>>>>
>>>>> ------
>>>>>
>>>>> ERROR - GeronimoLog.error(104) | Assignment Fault:
>>>>> {
>>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault,lineNo=289,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault%2ClineNo%3D289%2CfaultExplanation%3D%7Bhttp://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault>
>>>>>
>>>>> :
>>>>> One or more static errors were reported during query analysis
>>>>>
>>>>>
>>>>>   On Tue, Aug 10, 2010 at 1:10 AM, Christian Bruckhoff
>>>>>> <Ch...@gmx.de>     wrote:
>>>>>>
>>>>>>>
>>>>>>> Hi.
>>>>>>>
>>>>>>> I want to create a dynamic invoke of a web service. For this i
>>>>>>> need to
>>>>>>> copy
>>>>>>> the IPAddress from a variable to the service-ref variable. My
>>>>>>> approach
>>>>>>> for
>>>>>>> solving this problem was the one shown below. This assign will make
>>>>>>> the<
>>>>>>> occur as&lt; in the SOAP message of the invoke. How can i solve this
>>>>>>> problem?
>>>>>>>
>>>>>>> TIA
>>>>>>> Christian
>>>>>>>
>>>>>>> -------
>>>>>>>
>>>>>>> <bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
>>>>>>>   <bpel:copy>
>>>>>>>     <bpel:from>
>>>>>>>       <![CDATA[concat('<sref:service-ref
>>>>>>>
>>>>>>> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref
>>>>>>> "><EndpointReference
>>>>>>> xmlns="http://www.w3.org/2005/08/addressing
>>>>>>> "><Address>',concat('http://',
>>>>>>> $waterGauge/wg:ipAddress, $waterGauge/wg:getTimeSeriesPath)
>>>>>>> ,'</Address></EndpointReference></sref:service-ref>')]]>
>>>>>>>     </bpel:from>
>>>>>>>     <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
>>>>>>>   </bpel:copy>
>>>>>>>   <bpel:copy>
>>>>>>>     <bpel:from>$getTimeSeriesEndpoint</bpel:from>
>>>>>>>     <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
>>>>>>>   </bpel:copy>
>>>>>>> </bpel:assign>
>>>>>>> <bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL"
>>>>>>> operation="getTimeSeries"
>>>>>>> portType="xhydrotns:getTimeSeries_WebService"
>>>>>>> inputVariable="getTimeSeriesRequest"
>>>>>>> outputVariable="getTimeSeriesResponse"
>>>>>>> />
>>>>>>>
>>>>>>
>>>>>
>>>>
>>

-- 
Tammo van Lessen - http://www.taval.de

Re: Changing the IP dynamically using XPath changes < to <

Posted by Geert Monsieur <ge...@gmail.com>.
On Fri, Aug 13, 2010 at 15:22, Christian Bruckhoff <
Christian.Bruckhoff@gmx.de> wrote:

> Hi.
>
> Am 13.08.2010 11:23, schrieb Geert Monsieur:
>
>  This is probably not the most 'clean' solution, but it's working for me:
>>
>> <bpel:copy>
>>    <bpel:from>concat($url,'')</bpel:from>
>>    <bpel:to partnerLink="partnerlink"/>
>> </bpel:copy>
>>
>> $url is a xsd:string containing an url.
>>
>>
> Without any service-reference element? And why you still use concat instead
> of only using $url?
>

==> without the concat it doesn't work..., it's without service-reference
element, like mentioned on http://ode.apache.org/endpoint-references.html (<!--
Simple URL, without the wrapper -->)


> Without the CDATA around concat, ODE 2.0Beta2 doesn't even recognize concat
> as an XPath expression. And without the service-reference, the system says,
> that it can't infer the transport information.
>

I'm using the stable version 1.3.4.


>
> ThX
> Christian
>
>
>>
>> On Tue, Aug 10, 2010 at 13:31, Christian Bruckhoff<
>> Christian.Bruckhoff@gmx.de>  wrote:
>>
>>  Hi.
>>>
>>> Am 10.08.2010 11:07, schrieb Rafal Rusin:
>>>
>>>  I did sample test case for saxon parse. It works.
>>>
>>>> Please try out small example first.
>>>> Then if it doesn't work, please attach process so we could add it to
>>>> integration tests.
>>>>
>>>>
>>> I tried a small example, using the code you posted below.
>>> I found out, that the process works fine with ODE 1.3.3, but not with ODE
>>> 2.0 Beta2. I need ODE 2.0 Beta2, because it is the only version, working
>>> with<parameter name="useOriginalwsdl">true</parameter>. All other
>>> versions
>>> don't create the right links to the schemaLocations of the imports.
>>>
>>> Is there another way to solve my problem (with or without saxon)? You can
>>> download the process as ZIP[1] or file by file[2].
>>>
>>> Greetings
>>> Christian
>>>
>>> [1] http://www.uni-koblenz.de/~brchrist/20100810saxonParse.zip
>>> [2] http://www.uni-koblenz.de/~brchrist/20100810saxonParse/
>>>
>>>
>>>
>>>  +++
>>>>
>>>> bpel-test/src/test/resources/bpel/2.0/TestXQueryExpression/HelloXQueryWorld.bpel
>>>>    (kopia
>>>> robocza)
>>>> @@ -276,6 +276,30 @@
>>>>                </copy>
>>>>              </assign>
>>>>          </scope>
>>>> +<scope>
>>>> +<variables>
>>>> +<variable name="nodeVar" type="xsd:anyType"/>
>>>> +<variable name="textVar" type="xsd:string"/>
>>>> +</variables>
>>>> +<sequence>
>>>> +<assign>
>>>> +<copy>
>>>> +<from
>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
>>>> +<![CDATA[ '<a><b>some-b-text</b></a>' ]]>
>>>> +</from>
>>>> +<to>$textVar</to>
>>>> +</copy>
>>>> +<copy>
>>>> +<from xmlns:saxon="http://saxon.sf.net/"
>>>>
>>>>
>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(xsd:string($textVar))</from>
>>>> +<to variable="nodeVar"/>
>>>> +</copy>
>>>> +</assign>
>>>> +<if>
>>>> +<condition>$nodeVar/b/text() != 'some-b-text'</condition>
>>>> +<throw faultName="error"/>
>>>> +</if>
>>>> +</sequence>
>>>> +</scope>
>>>>          <reply name="end"
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Aug 10, 2010 at 10:22 AM, Christian Bruckhoff
>>>> <Ch...@gmx.de>   wrote:
>>>>
>>>>  Hi.
>>>>>
>>>>> Am 10.08.2010 08:57, schrieb Rafal Rusin:
>>>>>
>>>>>  Hello,
>>>>>>
>>>>>> you need to convert string into node using saxon:parse. Please check
>>>>>> out
>>>>>> this:
>>>>>> http://markmail.org/thread/zzcugme3c7z6l4zt
>>>>>>
>>>>>>
>>>>> If I use saxon with the following copy element, which I put between the
>>>>> other two, I get an error. But I don't know, where the problem in this
>>>>> assignment is. Can you help me pls?
>>>>>
>>>>> TIA
>>>>> Christian
>>>>>
>>>>> ------
>>>>>
>>>>> <bpel:copy>
>>>>>  <bpel:from xmlns:saxon="http://saxon.sf.net/"
>>>>>
>>>>>
>>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(string($getTimeSeriesEndpoint))</bpel:from>
>>>>>  <bpel:to>$getTimeSeriesEndpoint</bpel:to>
>>>>> </bpel:copy>
>>>>>
>>>>> ------
>>>>>
>>>>> ERROR - GeronimoLog.error(104) | Assignment Fault:
>>>>> {
>>>>>
>>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault,lineNo=289,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault%2ClineNo%3D289%2CfaultExplanation%3D%7Bhttp://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault>
>>>>> <
>>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault%2ClineNo%3D289%2CfaultExplanation%3D%7Bhttp://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault
>>>>> >
>>>>>
>>>>> :
>>>>> One or more static errors were reported during query analysis
>>>>>
>>>>>
>>>>>  On Tue, Aug 10, 2010 at 1:10 AM, Christian Bruckhoff
>>>>>
>>>>>> <Ch...@gmx.de>     wrote:
>>>>>>
>>>>>>
>>>>>>> Hi.
>>>>>>>
>>>>>>> I want to create a dynamic invoke of a web service. For this i need
>>>>>>> to
>>>>>>> copy
>>>>>>> the IPAddress from a variable to the service-ref variable. My
>>>>>>> approach
>>>>>>> for
>>>>>>> solving this problem was the one shown below. This assign will make
>>>>>>> the<
>>>>>>> occur as&lt; in the SOAP message of the invoke. How can i solve this
>>>>>>> problem?
>>>>>>>
>>>>>>> TIA
>>>>>>> Christian
>>>>>>>
>>>>>>> -------
>>>>>>>
>>>>>>> <bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
>>>>>>>  <bpel:copy>
>>>>>>>    <bpel:from>
>>>>>>>      <![CDATA[concat('<sref:service-ref
>>>>>>>
>>>>>>> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref
>>>>>>> "><EndpointReference
>>>>>>> xmlns="http://www.w3.org/2005/08/addressing
>>>>>>> "><Address>',concat('http://',
>>>>>>> $waterGauge/wg:ipAddress, $waterGauge/wg:getTimeSeriesPath)
>>>>>>> ,'</Address></EndpointReference></sref:service-ref>')]]>
>>>>>>>    </bpel:from>
>>>>>>>    <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
>>>>>>>  </bpel:copy>
>>>>>>>  <bpel:copy>
>>>>>>>    <bpel:from>$getTimeSeriesEndpoint</bpel:from>
>>>>>>>    <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
>>>>>>>  </bpel:copy>
>>>>>>> </bpel:assign>
>>>>>>> <bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL"
>>>>>>> operation="getTimeSeries"
>>>>>>> portType="xhydrotns:getTimeSeries_WebService"
>>>>>>> inputVariable="getTimeSeriesRequest"
>>>>>>> outputVariable="getTimeSeriesResponse"
>>>>>>> />
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>

Re: Changing the IP dynamically using XPath changes < to <

Posted by Christian Bruckhoff <Ch...@gmx.de>.
Hi.

Am 13.08.2010 11:23, schrieb Geert Monsieur:
> This is probably not the most 'clean' solution, but it's working for me:
>
> <bpel:copy>
>     <bpel:from>concat($url,'')</bpel:from>
>     <bpel:to partnerLink="partnerlink"/>
> </bpel:copy>
>
> $url is a xsd:string containing an url.
>

Without any service-reference element? And why you still use concat 
instead of only using $url?
Without the CDATA around concat, ODE 2.0Beta2 doesn't even recognize 
concat as an XPath expression. And without the service-reference, the 
system says, that it can't infer the transport information.

ThX
Christian

>
>
> On Tue, Aug 10, 2010 at 13:31, Christian Bruckhoff<
> Christian.Bruckhoff@gmx.de>  wrote:
>
>> Hi.
>>
>> Am 10.08.2010 11:07, schrieb Rafal Rusin:
>>
>>   I did sample test case for saxon parse. It works.
>>> Please try out small example first.
>>> Then if it doesn't work, please attach process so we could add it to
>>> integration tests.
>>>
>>
>> I tried a small example, using the code you posted below.
>> I found out, that the process works fine with ODE 1.3.3, but not with ODE
>> 2.0 Beta2. I need ODE 2.0 Beta2, because it is the only version, working
>> with<parameter name="useOriginalwsdl">true</parameter>. All other versions
>> don't create the right links to the schemaLocations of the imports.
>>
>> Is there another way to solve my problem (with or without saxon)? You can
>> download the process as ZIP[1] or file by file[2].
>>
>> Greetings
>> Christian
>>
>> [1] http://www.uni-koblenz.de/~brchrist/20100810saxonParse.zip
>> [2] http://www.uni-koblenz.de/~brchrist/20100810saxonParse/
>>
>>
>>
>>> +++
>>> bpel-test/src/test/resources/bpel/2.0/TestXQueryExpression/HelloXQueryWorld.bpel
>>>     (kopia
>>> robocza)
>>> @@ -276,6 +276,30 @@
>>>                 </copy>
>>>               </assign>
>>>           </scope>
>>> +<scope>
>>> +<variables>
>>> +<variable name="nodeVar" type="xsd:anyType"/>
>>> +<variable name="textVar" type="xsd:string"/>
>>> +</variables>
>>> +<sequence>
>>> +<assign>
>>> +<copy>
>>> +<from
>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
>>> +<![CDATA[ '<a><b>some-b-text</b></a>' ]]>
>>> +</from>
>>> +<to>$textVar</to>
>>> +</copy>
>>> +<copy>
>>> +<from xmlns:saxon="http://saxon.sf.net/"
>>>
>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(xsd:string($textVar))</from>
>>> +<to variable="nodeVar"/>
>>> +</copy>
>>> +</assign>
>>> +<if>
>>> +<condition>$nodeVar/b/text() != 'some-b-text'</condition>
>>> +<throw faultName="error"/>
>>> +</if>
>>> +</sequence>
>>> +</scope>
>>>           <reply name="end"
>>>
>>>
>>>
>>>
>>> On Tue, Aug 10, 2010 at 10:22 AM, Christian Bruckhoff
>>> <Ch...@gmx.de>   wrote:
>>>
>>>> Hi.
>>>>
>>>> Am 10.08.2010 08:57, schrieb Rafal Rusin:
>>>>
>>>>> Hello,
>>>>>
>>>>> you need to convert string into node using saxon:parse. Please check out
>>>>> this:
>>>>> http://markmail.org/thread/zzcugme3c7z6l4zt
>>>>>
>>>>
>>>> If I use saxon with the following copy element, which I put between the
>>>> other two, I get an error. But I don't know, where the problem in this
>>>> assignment is. Can you help me pls?
>>>>
>>>> TIA
>>>> Christian
>>>>
>>>> ------
>>>>
>>>> <bpel:copy>
>>>>   <bpel:from xmlns:saxon="http://saxon.sf.net/"
>>>>
>>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(string($getTimeSeriesEndpoint))</bpel:from>
>>>>   <bpel:to>$getTimeSeriesEndpoint</bpel:to>
>>>> </bpel:copy>
>>>>
>>>> ------
>>>>
>>>> ERROR - GeronimoLog.error(104) | Assignment Fault:
>>>> {
>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault,lineNo=289,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault%2ClineNo%3D289%2CfaultExplanation%3D%7Bhttp://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault>
>>>> :
>>>> One or more static errors were reported during query analysis
>>>>
>>>>
>>>>   On Tue, Aug 10, 2010 at 1:10 AM, Christian Bruckhoff
>>>>> <Ch...@gmx.de>     wrote:
>>>>>
>>>>>>
>>>>>> Hi.
>>>>>>
>>>>>> I want to create a dynamic invoke of a web service. For this i need to
>>>>>> copy
>>>>>> the IPAddress from a variable to the service-ref variable. My approach
>>>>>> for
>>>>>> solving this problem was the one shown below. This assign will make
>>>>>> the<
>>>>>> occur as&lt; in the SOAP message of the invoke. How can i solve this
>>>>>> problem?
>>>>>>
>>>>>> TIA
>>>>>> Christian
>>>>>>
>>>>>> -------
>>>>>>
>>>>>> <bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
>>>>>>   <bpel:copy>
>>>>>>     <bpel:from>
>>>>>>       <![CDATA[concat('<sref:service-ref
>>>>>>
>>>>>> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref
>>>>>> "><EndpointReference
>>>>>> xmlns="http://www.w3.org/2005/08/addressing
>>>>>> "><Address>',concat('http://',
>>>>>> $waterGauge/wg:ipAddress, $waterGauge/wg:getTimeSeriesPath)
>>>>>> ,'</Address></EndpointReference></sref:service-ref>')]]>
>>>>>>     </bpel:from>
>>>>>>     <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
>>>>>>   </bpel:copy>
>>>>>>   <bpel:copy>
>>>>>>     <bpel:from>$getTimeSeriesEndpoint</bpel:from>
>>>>>>     <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
>>>>>>   </bpel:copy>
>>>>>> </bpel:assign>
>>>>>> <bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL"
>>>>>> operation="getTimeSeries" portType="xhydrotns:getTimeSeries_WebService"
>>>>>> inputVariable="getTimeSeriesRequest"
>>>>>> outputVariable="getTimeSeriesResponse"
>>>>>> />
>>>>>>
>>>>>
>>>>
>>>
>

Re: Changing the IP dynamically using XPath changes < to <

Posted by Geert Monsieur <ge...@gmail.com>.
This is probably not the most 'clean' solution, but it's working for me:

<bpel:copy>
   <bpel:from>concat($url,'')</bpel:from>
   <bpel:to partnerLink="partnerlink"/>
</bpel:copy>

$url is a xsd:string containing an url.

Cheers
Geert


On Tue, Aug 10, 2010 at 13:31, Christian Bruckhoff <
Christian.Bruckhoff@gmx.de> wrote:

> Hi.
>
> Am 10.08.2010 11:07, schrieb Rafal Rusin:
>
>  I did sample test case for saxon parse. It works.
>> Please try out small example first.
>> Then if it doesn't work, please attach process so we could add it to
>> integration tests.
>>
>
> I tried a small example, using the code you posted below.
> I found out, that the process works fine with ODE 1.3.3, but not with ODE
> 2.0 Beta2. I need ODE 2.0 Beta2, because it is the only version, working
> with <parameter name="useOriginalwsdl">true</parameter>. All other versions
> don't create the right links to the schemaLocations of the imports.
>
> Is there another way to solve my problem (with or without saxon)? You can
> download the process as ZIP[1] or file by file[2].
>
> Greetings
> Christian
>
> [1] http://www.uni-koblenz.de/~brchrist/20100810saxonParse.zip
> [2] http://www.uni-koblenz.de/~brchrist/20100810saxonParse/
>
>
>
>> +++
>> bpel-test/src/test/resources/bpel/2.0/TestXQueryExpression/HelloXQueryWorld.bpel
>>    (kopia
>> robocza)
>> @@ -276,6 +276,30 @@
>>                </copy>
>>              </assign>
>>          </scope>
>> +<scope>
>> +<variables>
>> +<variable name="nodeVar" type="xsd:anyType"/>
>> +<variable name="textVar" type="xsd:string"/>
>> +</variables>
>> +<sequence>
>> +<assign>
>> +<copy>
>> +<from
>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
>> +<![CDATA[ '<a><b>some-b-text</b></a>' ]]>
>> +</from>
>> +<to>$textVar</to>
>> +</copy>
>> +<copy>
>> +<from xmlns:saxon="http://saxon.sf.net/"
>>
>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(xsd:string($textVar))</from>
>> +<to variable="nodeVar"/>
>> +</copy>
>> +</assign>
>> +<if>
>> +<condition>$nodeVar/b/text() != 'some-b-text'</condition>
>> +<throw faultName="error"/>
>> +</if>
>> +</sequence>
>> +</scope>
>>          <reply name="end"
>>
>>
>>
>>
>> On Tue, Aug 10, 2010 at 10:22 AM, Christian Bruckhoff
>> <Ch...@gmx.de>  wrote:
>>
>>> Hi.
>>>
>>> Am 10.08.2010 08:57, schrieb Rafal Rusin:
>>>
>>>> Hello,
>>>>
>>>> you need to convert string into node using saxon:parse. Please check out
>>>> this:
>>>> http://markmail.org/thread/zzcugme3c7z6l4zt
>>>>
>>>
>>> If I use saxon with the following copy element, which I put between the
>>> other two, I get an error. But I don't know, where the problem in this
>>> assignment is. Can you help me pls?
>>>
>>> TIA
>>> Christian
>>>
>>> ------
>>>
>>> <bpel:copy>
>>>  <bpel:from xmlns:saxon="http://saxon.sf.net/"
>>>
>>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(string($getTimeSeriesEndpoint))</bpel:from>
>>>  <bpel:to>$getTimeSeriesEndpoint</bpel:to>
>>> </bpel:copy>
>>>
>>> ------
>>>
>>> ERROR - GeronimoLog.error(104) | Assignment Fault:
>>> {
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault,lineNo=289,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault<http://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault%2ClineNo%3D289%2CfaultExplanation%3D%7Bhttp://docs.oasis-open.org/wsbpel/2.0/process/executable%7DsubLanguageExecutionFault>
>>> :
>>> One or more static errors were reported during query analysis
>>>
>>>
>>>  On Tue, Aug 10, 2010 at 1:10 AM, Christian Bruckhoff
>>>> <Ch...@gmx.de>    wrote:
>>>>
>>>>>
>>>>> Hi.
>>>>>
>>>>> I want to create a dynamic invoke of a web service. For this i need to
>>>>> copy
>>>>> the IPAddress from a variable to the service-ref variable. My approach
>>>>> for
>>>>> solving this problem was the one shown below. This assign will make
>>>>> the<
>>>>> occur as&lt; in the SOAP message of the invoke. How can i solve this
>>>>> problem?
>>>>>
>>>>> TIA
>>>>> Christian
>>>>>
>>>>> -------
>>>>>
>>>>> <bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
>>>>>  <bpel:copy>
>>>>>    <bpel:from>
>>>>>      <![CDATA[concat('<sref:service-ref
>>>>>
>>>>> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref
>>>>> "><EndpointReference
>>>>> xmlns="http://www.w3.org/2005/08/addressing
>>>>> "><Address>',concat('http://',
>>>>> $waterGauge/wg:ipAddress, $waterGauge/wg:getTimeSeriesPath)
>>>>> ,'</Address></EndpointReference></sref:service-ref>')]]>
>>>>>    </bpel:from>
>>>>>    <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
>>>>>  </bpel:copy>
>>>>>  <bpel:copy>
>>>>>    <bpel:from>$getTimeSeriesEndpoint</bpel:from>
>>>>>    <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
>>>>>  </bpel:copy>
>>>>> </bpel:assign>
>>>>> <bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL"
>>>>> operation="getTimeSeries" portType="xhydrotns:getTimeSeries_WebService"
>>>>> inputVariable="getTimeSeriesRequest"
>>>>> outputVariable="getTimeSeriesResponse"
>>>>> />
>>>>>
>>>>
>>>
>>

Re: Changing the IP dynamically using XPath changes < to <

Posted by Christian Bruckhoff <Ch...@gmx.de>.
Hi.

Am 10.08.2010 11:07, schrieb Rafal Rusin:
> I did sample test case for saxon parse. It works.
> Please try out small example first.
> Then if it doesn't work, please attach process so we could add it to
> integration tests.

I tried a small example, using the code you posted below.
I found out, that the process works fine with ODE 1.3.3, but not with 
ODE 2.0 Beta2. I need ODE 2.0 Beta2, because it is the only version, 
working with <parameter name="useOriginalwsdl">true</parameter>. All 
other versions don't create the right links to the schemaLocations of 
the imports.

Is there another way to solve my problem (with or without saxon)? You 
can download the process as ZIP[1] or file by file[2].

Greetings
Christian

[1] http://www.uni-koblenz.de/~brchrist/20100810saxonParse.zip
[2] http://www.uni-koblenz.de/~brchrist/20100810saxonParse/

>
> +++ bpel-test/src/test/resources/bpel/2.0/TestXQueryExpression/HelloXQueryWorld.bpel	(kopia
> robocza)
> @@ -276,6 +276,30 @@
>                 </copy>
>               </assign>
>           </scope>
> +<scope>
> +<variables>
> +<variable name="nodeVar" type="xsd:anyType"/>
> +<variable name="textVar" type="xsd:string"/>
> +</variables>
> +<sequence>
> +<assign>
> +<copy>
> +<from
> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
> +<![CDATA[ '<a><b>some-b-text</b></a>' ]]>
> +</from>
> +<to>$textVar</to>
> +</copy>
> +<copy>
> +<from xmlns:saxon="http://saxon.sf.net/"
> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(xsd:string($textVar))</from>
> +<to variable="nodeVar"/>
> +</copy>
> +</assign>
> +<if>
> +<condition>$nodeVar/b/text() != 'some-b-text'</condition>
> +<throw faultName="error"/>
> +</if>
> +</sequence>
> +</scope>
>           <reply name="end"
>
>
>
>
> On Tue, Aug 10, 2010 at 10:22 AM, Christian Bruckhoff
> <Ch...@gmx.de>  wrote:
>> Hi.
>>
>> Am 10.08.2010 08:57, schrieb Rafal Rusin:
>>> Hello,
>>>
>>> you need to convert string into node using saxon:parse. Please check out
>>> this:
>>> http://markmail.org/thread/zzcugme3c7z6l4zt
>>
>> If I use saxon with the following copy element, which I put between the
>> other two, I get an error. But I don't know, where the problem in this
>> assignment is. Can you help me pls?
>>
>> TIA
>> Christian
>>
>> ------
>>
>> <bpel:copy>
>>   <bpel:from xmlns:saxon="http://saxon.sf.net/"
>> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(string($getTimeSeriesEndpoint))</bpel:from>
>>   <bpel:to>$getTimeSeriesEndpoint</bpel:to>
>> </bpel:copy>
>>
>> ------
>>
>> ERROR - GeronimoLog.error(104) | Assignment Fault:
>> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault,lineNo=289,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault:
>> One or more static errors were reported during query analysis
>>
>>
>>> On Tue, Aug 10, 2010 at 1:10 AM, Christian Bruckhoff
>>> <Ch...@gmx.de>    wrote:
>>>>
>>>> Hi.
>>>>
>>>> I want to create a dynamic invoke of a web service. For this i need to
>>>> copy
>>>> the IPAddress from a variable to the service-ref variable. My approach
>>>> for
>>>> solving this problem was the one shown below. This assign will make the<
>>>> occur as&lt; in the SOAP message of the invoke. How can i solve this
>>>> problem?
>>>>
>>>> TIA
>>>> Christian
>>>>
>>>> -------
>>>>
>>>> <bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
>>>>   <bpel:copy>
>>>>     <bpel:from>
>>>>       <![CDATA[concat('<sref:service-ref
>>>>
>>>> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref"><EndpointReference
>>>> xmlns="http://www.w3.org/2005/08/addressing"><Address>',concat('http://',
>>>> $waterGauge/wg:ipAddress, $waterGauge/wg:getTimeSeriesPath)
>>>> ,'</Address></EndpointReference></sref:service-ref>')]]>
>>>>     </bpel:from>
>>>>     <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
>>>>   </bpel:copy>
>>>>   <bpel:copy>
>>>>     <bpel:from>$getTimeSeriesEndpoint</bpel:from>
>>>>     <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
>>>>   </bpel:copy>
>>>> </bpel:assign>
>>>> <bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL"
>>>> operation="getTimeSeries" portType="xhydrotns:getTimeSeries_WebService"
>>>> inputVariable="getTimeSeriesRequest"
>>>> outputVariable="getTimeSeriesResponse"
>>>> />
>>
>

Re: Changing the IP dynamically using XPath changes < to <

Posted by Rafal Rusin <ra...@intalio.com>.
I did sample test case for saxon parse. It works.
Please try out small example first.
Then if it doesn't work, please attach process so we could add it to
integration tests.

+++ bpel-test/src/test/resources/bpel/2.0/TestXQueryExpression/HelloXQueryWorld.bpel	(kopia
robocza)
@@ -276,6 +276,30 @@
               </copy>
             </assign>
         </scope>
+        <scope>
+          <variables>
+            <variable name="nodeVar" type="xsd:anyType"/>
+            <variable name="textVar" type="xsd:string"/>
+          </variables>
+          <sequence>
+            <assign>
+              <copy>
+                <from
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+                <![CDATA[ '<a><b>some-b-text</b></a>' ]]>
+                </from>
+                <to>$textVar</to>
+              </copy>
+              <copy>
+                <from xmlns:saxon="http://saxon.sf.net/"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(xsd:string($textVar))</from>
+                <to variable="nodeVar"/>
+              </copy>
+            </assign>
+            <if>
+              <condition>$nodeVar/b/text() != 'some-b-text'</condition>
+              <throw faultName="error"/>
+            </if>
+          </sequence>
+        </scope>
         <reply name="end"




On Tue, Aug 10, 2010 at 10:22 AM, Christian Bruckhoff
<Ch...@gmx.de> wrote:
> Hi.
>
> Am 10.08.2010 08:57, schrieb Rafal Rusin:
>> Hello,
>>
>> you need to convert string into node using saxon:parse. Please check out
>> this:
>> http://markmail.org/thread/zzcugme3c7z6l4zt
>
> If I use saxon with the following copy element, which I put between the
> other two, I get an error. But I don't know, where the problem in this
> assignment is. Can you help me pls?
>
> TIA
> Christian
>
> ------
>
> <bpel:copy>
>  <bpel:from xmlns:saxon="http://saxon.sf.net/"
> expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(string($getTimeSeriesEndpoint))</bpel:from>
>  <bpel:to>$getTimeSeriesEndpoint</bpel:to>
> </bpel:copy>
>
> ------
>
> ERROR - GeronimoLog.error(104) | Assignment Fault:
> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault,lineNo=289,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault:
> One or more static errors were reported during query analysis
>
>
>> On Tue, Aug 10, 2010 at 1:10 AM, Christian Bruckhoff
>> <Ch...@gmx.de>  wrote:
>>>
>>> Hi.
>>>
>>> I want to create a dynamic invoke of a web service. For this i need to
>>> copy
>>> the IPAddress from a variable to the service-ref variable. My approach
>>> for
>>> solving this problem was the one shown below. This assign will make the<
>>> occur as&lt; in the SOAP message of the invoke. How can i solve this
>>> problem?
>>>
>>> TIA
>>> Christian
>>>
>>> -------
>>>
>>> <bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
>>>  <bpel:copy>
>>>    <bpel:from>
>>>      <![CDATA[concat('<sref:service-ref
>>>
>>> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref"><EndpointReference
>>> xmlns="http://www.w3.org/2005/08/addressing"><Address>',concat('http://',
>>> $waterGauge/wg:ipAddress, $waterGauge/wg:getTimeSeriesPath)
>>> ,'</Address></EndpointReference></sref:service-ref>')]]>
>>>    </bpel:from>
>>>    <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
>>>  </bpel:copy>
>>>  <bpel:copy>
>>>    <bpel:from>$getTimeSeriesEndpoint</bpel:from>
>>>    <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
>>>  </bpel:copy>
>>> </bpel:assign>
>>> <bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL"
>>> operation="getTimeSeries" portType="xhydrotns:getTimeSeries_WebService"
>>> inputVariable="getTimeSeriesRequest"
>>> outputVariable="getTimeSeriesResponse"
>>> />
>

-- 
Regards,
Rafał Rusin
http://rrusin.blogspot.com

Re: Changing the IP dynamically using XPath changes < to <

Posted by Christian Bruckhoff <Ch...@gmx.de>.
Hi.

Am 10.08.2010 08:57, schrieb Rafal Rusin:
 > Hello,
 >
 > you need to convert string into node using saxon:parse. Please check 
out this:
 > http://markmail.org/thread/zzcugme3c7z6l4zt

If I use saxon with the following copy element, which I put between the 
other two, I get an error. But I don't know, where the problem in this 
assignment is. Can you help me pls?

TIA
Christian

------

<bpel:copy>
   <bpel:from xmlns:saxon="http://saxon.sf.net/" 
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">saxon:parse(string($getTimeSeriesEndpoint))</bpel:from>
   <bpel:to>$getTimeSeriesEndpoint</bpel:to>
</bpel:copy>

------

ERROR - GeronimoLog.error(104) | Assignment Fault: 
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault,lineNo=289,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}subLanguageExecutionFault: 
One or more static errors were reported during query analysis


> On Tue, Aug 10, 2010 at 1:10 AM, Christian Bruckhoff
> <Ch...@gmx.de>  wrote:
>> Hi.
>>
>> I want to create a dynamic invoke of a web service. For this i need to copy
>> the IPAddress from a variable to the service-ref variable. My approach for
>> solving this problem was the one shown below. This assign will make the<
>> occur as&lt; in the SOAP message of the invoke. How can i solve this
>> problem?
>>
>> TIA
>> Christian
>>
>> -------
>>
>> <bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
>>   <bpel:copy>
>>     <bpel:from>
>>       <![CDATA[concat('<sref:service-ref
>> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref"><EndpointReference
>> xmlns="http://www.w3.org/2005/08/addressing"><Address>',concat('http://',
>> $waterGauge/wg:ipAddress, $waterGauge/wg:getTimeSeriesPath)
>> ,'</Address></EndpointReference></sref:service-ref>')]]>
>>     </bpel:from>
>>     <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
>>   </bpel:copy>
>>   <bpel:copy>
>>     <bpel:from>$getTimeSeriesEndpoint</bpel:from>
>>     <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
>>   </bpel:copy>
>> </bpel:assign>
>> <bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL"
>> operation="getTimeSeries" portType="xhydrotns:getTimeSeries_WebService"
>> inputVariable="getTimeSeriesRequest" outputVariable="getTimeSeriesResponse"
>> />

Re: Changing the IP dynamically using XPath changes < to <

Posted by Rafal Rusin <ra...@intalio.com>.
Hello,

you need to convert string into node using saxon:parse. Please check out this:
http://markmail.org/thread/zzcugme3c7z6l4zt

On Tue, Aug 10, 2010 at 1:10 AM, Christian Bruckhoff
<Ch...@gmx.de> wrote:
> Hi.
>
> I want to create a dynamic invoke of a web service. For this i need to copy
> the IPAddress from a variable to the service-ref variable. My approach for
> solving this problem was the one shown below. This assign will make the <
> occur as &lt; in the SOAP message of the invoke. How can i solve this
> problem?
>
> TIA
> Christian
>
> -------
>
> <bpel:assign validate="no" name="assignGetTimeSeriesEndpoint">
>  <bpel:copy>
>    <bpel:from>
>      <![CDATA[concat('<sref:service-ref
> xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref"><EndpointReference
> xmlns="http://www.w3.org/2005/08/addressing"><Address>',concat('http://',
> $waterGauge/wg:ipAddress, $waterGauge/wg:getTimeSeriesPath)
> ,'</Address></EndpointReference></sref:service-ref>')]]>
>    </bpel:from>
>    <bpel:to variable="getTimeSeriesEndpoint"></bpel:to>
>  </bpel:copy>
>  <bpel:copy>
>    <bpel:from>$getTimeSeriesEndpoint</bpel:from>
>    <bpel:to partnerLink="getTimeSeriesPL"></bpel:to>
>  </bpel:copy>
> </bpel:assign>
> <bpel:invoke name="getTimeSeries" partnerLink="getTimeSeriesPL"
> operation="getTimeSeries" portType="xhydrotns:getTimeSeries_WebService"
> inputVariable="getTimeSeriesRequest" outputVariable="getTimeSeriesResponse"
> />
>



-- 
Regards,
Rafał Rusin
http://rrusin.blogspot.com