On Thu, Feb 16, 2012 at 10:08 PM, Leslier López Nicot <lni...@uci.cu> wrote:

>  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";<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";<http://ws.wso2.org/dataservice>/>')]
> @73*
>

Hi Leslie,
The problem is a namespace conflict.
In the root process element you have defined xmlns:ns="
http://ws.wso2.org/dataservice";. But in the variable it's xmlns:ns="
http://ws.apache.org/axis2";.

So when your xpath query for *ns:nombre* , it returns selection failure as
prefix in the following assigned variable has a different namespace.

<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>

>
>
>
>
> 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"; <http://insertar.com>
>          suppressJoinFailure="yes"
>          xmlns:tns="http://insertar.com"; <http://insertar.com>
>          xmlns:bpel=
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable";<http://docs.oasis-open.org/wsbpel/2.0/process/executable>
>          
> xmlns:ns="http://ws.wso2.org/dataservice";<http://ws.wso2.org/dataservice>
> >
>
>     <!-- Import the client WSDL -->
>     <bpel:import 
> namespace="http://ws.wso2.org/dataservice";<http://ws.wso2.org/dataservice>location="DSLimpieza.wsdl"
>  importType=
> "http://schemas.xmlsoap.org/wsdl/"; <http://schemas.xmlsoap.org/wsdl/>
> ></bpel:import>
>     <bpel:import location="insertarPruebaArtifacts.wsdl" namespace=
> "http://insertar.com"; <http://insertar.com>
>             
> importType="http://schemas.xmlsoap.org/wsdl/";<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"; <http://ws.apache.org/axis2> xmlns:xsi=
> "http://www.w3.org/2001/XMLSchema-instance";<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>*
>
>   <http://www.antiterroristas.cu/>
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Thanks,
Denis
----------------------------------------------------------
*Denis Weerasiri*
Software Engineer
Integration Technologies Team, WSO2 Inc.; http://wso2.com,
*email: denis <http://goog_277208233/>** [AT] wso2.com <http://wso2.com/>*
*phone: +94117639629
*
*site: 
**https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/>
*blog: **http://ddweerasiri.blogspot.com* <http://ddweerasiri.blogspot.com/>
*
twitter: **http://twitter.com/ddweerasiri* <http://twitter.com/ddweerasiri>*
linked-in: 
**http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri>
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to