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<
[email protected]> 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
<[email protected]> 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
<[email protected]> 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< 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"
/>