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
<[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"
/>