Hi all.
I have a process in BPEL that invoke a web service. But when I run the
process it give the following error:
/[2012-02-16 11:24:23,776] INFO - ASSIGN - Assignment Fault:
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=73,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure:
No results for expression: 'ns:nombre' against '<?xml version="1.0"
encoding="UTF-8"?>
<insertarSolicitud xmlns="http://ws.wso2.org/dataservice"/>'
[2012-02-16 11:24:23,794] WARN - BpelProcess - Instance 6001 of
{http://insertar.com}insertarPrueba-33 has completed with fault:
FaultData:
[faultName={http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,
faulType=null
({http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure:
No results for expression: 'ns:nombre' against '<?xml version="1.0"
encoding="UTF-8"?>
<insertarSolicitud xmlns="http://ws.wso2.org/dataservice"/>')] @73/
I check the variable and its rigth. This is the bpel definitions. Any idea?
/<!-- insertarPrueba BPEL Process [Generated by the Eclipse BPEL
Designer] -->
<bpel:process name="insertarPrueba"
targetNamespace="http://insertar.com"
suppressJoinFailure="yes"
xmlns:tns="http://insertar.com"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ns="http://ws.wso2.org/dataservice">
<!-- Import the client WSDL -->
<bpel:import namespace="http://ws.wso2.org/dataservice"
location="DSLimpieza.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"></bpel:import>
<bpel:import location="insertarPruebaArtifacts.wsdl"
namespace="http://insertar.com"
importType="http://schemas.xmlsoap.org/wsdl/" />
<!-- ================================================================= -->
<!-- PARTNERLINKS -->
<!-- List of services participating in this BPEL process -->
<!-- ================================================================= -->
<bpel:partnerLinks>
<!-- The 'client' role represents the requester of this service. -->
<bpel:partnerLink name="client"
partnerLinkType="tns:insertarPrueba"
myRole="insertarPruebaProvider"
/>
<bpel:partnerLink name="insertarPL" partnerLinkType="tns:insertarPLType"
partnerRole="Role"></bpel:partnerLink>
</bpel:partnerLinks>
<!-- ================================================================= -->
<!-- VARIABLES -->
<!-- List of messages and XML documents used within this BPEL process -->
<!-- ================================================================= -->
<bpel:variables>
<!-- Reference to the message passed as input during initiation -->
<bpel:variable name="input"
messageType="tns:insertarPruebaRequestMessage"/>
<!--
Reference to the message that will be returned to the requester
-->
<bpel:variable name="output"
messageType="tns:insertarPruebaResponseMessage"/>
<bpel:variable name="insertarPLRequest"
messageType="ns:insertarSolicitudRequest"></bpel:variable>
</bpel:variables>
<!-- ================================================================= -->
<!-- ORCHESTRATION LOGIC -->
<!-- Set of activities coordinating the flow of messages across the -->
<!-- services integrated within this business process -->
<!-- ================================================================= -->
<bpel:sequence name="main">
<!-- Receive input from requester.
Note: This maps to operation defined in insertarPrueba.wsdl
-->
<bpel:receive name="receiveInput" partnerLink="client"
portType="tns:insertarPrueba"
operation="process" variable="input"
createInstance="yes"/>
<!-- Generate reply to synchronous request -->
<bpel:assign validate="no" name="Assign">
<bpel:copy>
<bpel:from>
<bpel:literal xml:space="preserve"><ns:insertarSolicitud
xmlns:ns="http://ws.apache.org/axis2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns:nombre></ns:nombre>
<ns:servicio></ns:servicio>
</ns:insertarSolicitud></bpel:literal>
</bpel:from><bpel:to part="parameters"
variable="insertarPLRequest"></bpel:to>
</bpel:copy>
<bpel:copy><bpel:from part="payload" variable="input">
<bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:nom]]></bpel:query>
</bpel:from>
<bpel:to part="parameters" variable="insertarPLRequest">
<bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[ns:nombre]]></bpel:query>
</bpel:to>
</bpel:copy>
<bpel:copy><bpel:from part="payload" variable="input">
<bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:ser]]></bpel:query>
</bpel:from>
<bpel:to part="parameters" variable="insertarPLRequest">
<bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[ns:servicio]]></bpel:query>
</bpel:to>
</bpel:copy>
</bpel:assign>
<bpel:sequence name="Sequence">
<bpel:invoke name="Invoke" partnerLink="insertarPL"
operation="insertarSolicitud" portType="ns:DSLimpiezaPortType"
inputVariable="insertarPLRequest"></bpel:invoke>
</bpel:sequence>
<bpel:reply name="replyOutput"
partnerLink="client"
portType="tns:insertarPrueba"
operation="process"
variable="output"
/>
</bpel:sequence>
</bpel:process>/
Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE
ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev