You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Pablo Marco <bl...@gmail.com> on 2011/01/29 18:19:09 UTC

selectionFailure

Hi,

  I'm new to the list and to ODE (also to BPEL). I'm trying to run
some basic BPEL processes, and in this case I keep getting a
selectionFailure when trying to run the following:

<variables>
     <variable name="myVar" messageType="test:HelloMessage"/>
     <variable name="pruebaUsuarioInput"
messageType="pusu:creaUsuarioRequest" />
</variables>

<assign name="inicializadorBrutal">
				<copy>
					<from>
						<literal>
							<pusu:parameters>
								<pusu:username>brito</pusu:username>
								<pusu:password>bruword</pusu:password>
								<pusu:email>brutal@bruto.com</pusu:email>
							</pusu:parameters>
						</literal>
					</from>
					<to variable="pruebaUsuarioInput" part="parameters"/>
				</copy>	
	<copy>
              <from part="TestPart" variable="myVar">
              <to>$pruebaUsuarioInput.parameters/username</to>
        </copy>
</assign>

  The first copy works perfectly but the second keeps giving me
problems. This was the code as generated using NetBeans BPEL plugin.
Trying with Eclipse BPEL, generates the following for the second copy:

<copy>
              <bpel:from part="TestPart" variable="myVar"></bpel:from>
              <bpel:to part="parameters" variable="pruebaUsuarioInput">
                    <bpel:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
                        <![CDATA[username]]>
                    </bpel:query>
                </bpel:to>
</copy>

but I get the same selectionFailure error.

  I'm trying to run this on ODE 1.3.4 on tomcat 5.5.31.

Regards,

Pablo


PS: These are the definitions for HelloMessage and creaUsuarioRequest:

    <wsdl:message name="HelloMessage">
        <wsdl:part name="TestPart" type="xsd:string"/>
    </wsdl:message>


  <wsdl:message name="creaUsuarioRequest">
    <wsdl:part element="tns:creaUsuario" name="parameters"/>
  </wsdl:message>
 <wsdl:types>
    <xsd:schema targetNamespace="http://www.example.org/PruebaUsuario/">
      <xsd:element name="creaUsuario">
        <xsd:complexType>
          <xsd:sequence>
          	<xsd:element name="username" type="xsd:string"/>
          	<xsd:element name="password" type="xsd:string"/>
          	<xsd:element name="email" type="xsd:string"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="creaUsuarioResponse">
        <xsd:complexType>
          <xsd:sequence>

          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
  </wsdl:types>

Re: selectionFailure

Posted by Pablo Marco <bl...@gmail.com>.
Thank you very much. Now it works.

Regards,

Pablo


On Sat, Jan 29, 2011 at 8:45 PM, Waruna Ranasinghe <wa...@gmail.com> wrote:
> Hi Pablo,
>
> On 29 January 2011 22:49, Pablo Marco <bl...@gmail.com> wrote:
>
>> Hi,
>>
>>  I'm new to the list and to ODE (also to BPEL). I'm trying to run
>> some basic BPEL processes, and in this case I keep getting a
>> selectionFailure when trying to run the following:
>>
>> <variables>
>>     <variable name="myVar" messageType="test:HelloMessage"/>
>>     <variable name="pruebaUsuarioInput"
>> messageType="pusu:creaUsuarioRequest" />
>> </variables>
>>
>> <assign name="inicializadorBrutal">
>>                                <copy>
>>                                        <from>
>>                                                <literal>
>>                                                        <pusu:parameters>
>>                                                                *
>> <pusu:username>brito</pusu:**username>*
>>
>>  <pusu:password>bruword</pusu:password>
>>                                                                <pusu:email>
>> brutal@bruto.com</pusu:email>
>>                                                        </pusu:parameters>
>>                                                </literal>
>>                                        </from>
>>                                        <to variable="pruebaUsuarioInput"
>> part="parameters"/>
>>                                </copy>
>>        <copy>
>>              <from part="TestPart" variable="myVar">
>>              <to>$pruebaUsuarioInput.parameters/username</to>
>>
> Since you have specified a namespace (*<pusu:username>brito</pusu:**
> username>*) when initializing the pruebaUsuarioInput variable. You need to
> specify that namespace when selecting that element. Therefore <to> would be
> <to>$pruebaUsuarioInput.parameters/*pusu:*username</to>
>
>
>
>>        </copy>
>> </assign>
>>
>>  The first copy works perfectly but the second keeps giving me
>> problems. This was the code as generated using NetBeans BPEL plugin.
>> Trying with Eclipse BPEL, generates the following for the second copy:
>>
>> <copy>
>>              <bpel:from part="TestPart" variable="myVar"></bpel:from>
>>              <bpel:to part="parameters" variable="pruebaUsuarioInput">
>>                    <bpel:query
>> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
>>
> Same applies to this as well.
>
>
> Thanks,
> Waruna
>
>>                        <![CDATA[*pusu:*username]]>
>>                    </bpel:query>
>>                </bpel:to>
>> </copy>
>>
>> but I get the same selectionFailure error.
>>
>>  I'm trying to run this on ODE 1.3.4 on tomcat 5.5.31.
>>
>> Regards,
>>
>> Pablo
>>
>>
>> PS: These are the definitions for HelloMessage and creaUsuarioRequest:
>>
>>    <wsdl:message name="HelloMessage">
>>        <wsdl:part name="TestPart" type="xsd:string"/>
>>    </wsdl:message>
>>
>>
>>  <wsdl:message name="creaUsuarioRequest">
>>    <wsdl:part element="tns:creaUsuario" name="parameters"/>
>>  </wsdl:message>
>>  <wsdl:types>
>>    <xsd:schema targetNamespace="http://www.example.org/PruebaUsuario/">
>>      <xsd:element name="creaUsuario">
>>        <xsd:complexType>
>>          <xsd:sequence>
>>                <xsd:element name="username" type="xsd:string"/>
>>                <xsd:element name="password" type="xsd:string"/>
>>                <xsd:element name="email" type="xsd:string"/>
>>          </xsd:sequence>
>>        </xsd:complexType>
>>      </xsd:element>
>>      <xsd:element name="creaUsuarioResponse">
>>        <xsd:complexType>
>>          <xsd:sequence>
>>
>>          </xsd:sequence>
>>        </xsd:complexType>
>>      </xsd:element>
>>    </xsd:schema>
>>  </wsdl:types>
>>
>
>
>
> --
> -----------------------------------------------------
> Regards,
> Waruna Ranasinghe
>
> blog: http://warunapw.blogspot.com
> twitter: http://twitter.com/warunapww
> http://lk.linkedin.com/in/waruna
> www.facebook.com/waruna.ranasinghe
>

Re: selectionFailure

Posted by Waruna Ranasinghe <wa...@gmail.com>.
Hi Pablo,

On 29 January 2011 22:49, Pablo Marco <bl...@gmail.com> wrote:

> Hi,
>
>  I'm new to the list and to ODE (also to BPEL). I'm trying to run
> some basic BPEL processes, and in this case I keep getting a
> selectionFailure when trying to run the following:
>
> <variables>
>     <variable name="myVar" messageType="test:HelloMessage"/>
>     <variable name="pruebaUsuarioInput"
> messageType="pusu:creaUsuarioRequest" />
> </variables>
>
> <assign name="inicializadorBrutal">
>                                <copy>
>                                        <from>
>                                                <literal>
>                                                        <pusu:parameters>
>                                                                *
> <pusu:username>brito</pusu:**username>*
>
>  <pusu:password>bruword</pusu:password>
>                                                                <pusu:email>
> brutal@bruto.com</pusu:email>
>                                                        </pusu:parameters>
>                                                </literal>
>                                        </from>
>                                        <to variable="pruebaUsuarioInput"
> part="parameters"/>
>                                </copy>
>        <copy>
>              <from part="TestPart" variable="myVar">
>              <to>$pruebaUsuarioInput.parameters/username</to>
>
Since you have specified a namespace (*<pusu:username>brito</pusu:**
username>*) when initializing the pruebaUsuarioInput variable. You need to
specify that namespace when selecting that element. Therefore <to> would be
<to>$pruebaUsuarioInput.parameters/*pusu:*username</to>



>        </copy>
> </assign>
>
>  The first copy works perfectly but the second keeps giving me
> problems. This was the code as generated using NetBeans BPEL plugin.
> Trying with Eclipse BPEL, generates the following for the second copy:
>
> <copy>
>              <bpel:from part="TestPart" variable="myVar"></bpel:from>
>              <bpel:to part="parameters" variable="pruebaUsuarioInput">
>                    <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
>
Same applies to this as well.


Thanks,
Waruna

>                        <![CDATA[*pusu:*username]]>
>                    </bpel:query>
>                </bpel:to>
> </copy>
>
> but I get the same selectionFailure error.
>
>  I'm trying to run this on ODE 1.3.4 on tomcat 5.5.31.
>
> Regards,
>
> Pablo
>
>
> PS: These are the definitions for HelloMessage and creaUsuarioRequest:
>
>    <wsdl:message name="HelloMessage">
>        <wsdl:part name="TestPart" type="xsd:string"/>
>    </wsdl:message>
>
>
>  <wsdl:message name="creaUsuarioRequest">
>    <wsdl:part element="tns:creaUsuario" name="parameters"/>
>  </wsdl:message>
>  <wsdl:types>
>    <xsd:schema targetNamespace="http://www.example.org/PruebaUsuario/">
>      <xsd:element name="creaUsuario">
>        <xsd:complexType>
>          <xsd:sequence>
>                <xsd:element name="username" type="xsd:string"/>
>                <xsd:element name="password" type="xsd:string"/>
>                <xsd:element name="email" type="xsd:string"/>
>          </xsd:sequence>
>        </xsd:complexType>
>      </xsd:element>
>      <xsd:element name="creaUsuarioResponse">
>        <xsd:complexType>
>          <xsd:sequence>
>
>          </xsd:sequence>
>        </xsd:complexType>
>      </xsd:element>
>    </xsd:schema>
>  </wsdl:types>
>



-- 
-----------------------------------------------------
Regards,
Waruna Ranasinghe

blog: http://warunapw.blogspot.com
twitter: http://twitter.com/warunapww
http://lk.linkedin.com/in/waruna
www.facebook.com/waruna.ranasinghe