title: Apache ODE BPEL soapenv:Server axis2ns1:selectionFailure
body: <p>I am new to BPEL and struggling to get started.</p>
  
  <p>I created a simple If/Else workflow, but getting the following error when I am testing the wsdl file with eclipse web services explorer: </p>
  
  <pre><code>soapenv:Server axis2ns1:selectionFailure
  </code></pre>
  
  <p>My understanding from other similar questions is its probably something very simple and related to namespace or variable name in the if condition, but I can't understand why, and how to solve it.</p>
  
  <p>I am using Apache ODE 1.3.7 on Eclipse 4.7.1 Oxygen and Tomcat 8.5.</p>
  
  <p>This is my workflow design:</p>
  
  <p><a href="https://i.stack.imgur.com/tVHMv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tVHMv.png" alt="workflow design"></a></p>
  
  <p>BPEL FILE:</p>
  
  <pre><code>&lt;!-- Flow1 BPEL Process [Generated by the Eclipse BPEL Designer] --&gt;
  &lt;!-- Date: Mon Nov 13 23:18:38 AST 2017 --&gt;
  &lt;bpel:process name="Flow1"
           targetNamespace="http://Flow1"
           suppressJoinFailure="yes"
           xmlns:tns="http://Flow1"
           xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
           &gt;
  
      &lt;!-- Import the client WSDL --&gt;
      &lt;bpel:import location="Flow1Artifacts.wsdl" namespace="http://Flow1" 
              importType="http://schemas.xmlsoap.org/wsdl/" /&gt;
  
      &lt;!-- ================================================================= --&gt;         
      &lt;!-- PARTNERLINKS                                                      --&gt;
      &lt;!-- List of services participating in this BPEL process               --&gt;
      &lt;!-- ================================================================= --&gt;         
      &lt;bpel:partnerLinks&gt;
          &lt;!-- The 'client' role represents the requester of this service. --&gt;
          &lt;bpel:partnerLink name="client"
                       partnerLinkType="tns:Flow1"
                       myRole="Flow1Provider"
                       /&gt;
      &lt;/bpel:partnerLinks&gt;
  
      &lt;!-- ================================================================= --&gt;         
      &lt;!-- VARIABLES                                                         --&gt;
      &lt;!-- List of messages and XML documents used within this BPEL process  --&gt;
      &lt;!-- ================================================================= --&gt;         
      &lt;bpel:variables&gt;
          &lt;!-- Reference to the message passed as input during initiation --&gt;
          &lt;bpel:variable name="input"
                    messageType="tns:Flow1RequestMessage"/&gt;
  
          &lt;!-- 
            Reference to the message that will be returned to the requester
            --&gt;
          &lt;bpel:variable name="output"
                    messageType="tns:Flow1ResponseMessage"/&gt;
      &lt;/bpel:variables&gt;
  
      &lt;!-- ================================================================= --&gt;         
      &lt;!-- ORCHESTRATION LOGIC                                               --&gt;
      &lt;!-- Set of activities coordinating the flow of messages across the    --&gt;
      &lt;!-- services integrated within this business process                  --&gt;
      &lt;!-- ================================================================= --&gt;         
      &lt;bpel:sequence name="main"&gt;
  
          &lt;!-- Receive input from requester. 
               Note: This maps to operation defined in Flow1.wsdl 
               --&gt;
          &lt;bpel:receive name="receiveInput" partnerLink="client"
                   portType="tns:Flow1"
                   operation="process" variable="input"
                   createInstance="yes"/&gt;
  
          &lt;!-- Generate reply to synchronous request --&gt;
  
  
  
          &lt;bpel:if name="If"&gt;
              &lt;bpel:condition expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"&gt;&lt;![CDATA[$input.payload/tns:input="John"]]&gt;&lt;/bpel:condition&gt;
          &lt;bpel:sequence name="Sequence"&gt;
                  &lt;bpel:assign validate="no" name="Assign"&gt;
                      &lt;bpel:copy&gt;
                          &lt;bpel:from&gt;
                              &lt;bpel:literal xml:space="preserve"&gt;Hi John&lt;/bpel:literal&gt;
                          &lt;/bpel:from&gt;
                          &lt;bpel:to part="payload" variable="output"&gt;
                              &lt;bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"&gt;&lt;![CDATA[tns:result]]&gt;&lt;/bpel:query&gt;
                          &lt;/bpel:to&gt;
                      &lt;/bpel:copy&gt;
                  &lt;/bpel:assign&gt;
                  &lt;bpel:reply name="replyOutput" partnerLink="client" portType="tns:Flow1" operation="process" variable="output" /&gt;
  
              &lt;/bpel:sequence&gt;
              &lt;bpel:else&gt;
                  &lt;bpel:sequence name="Sequence1"&gt;
                      &lt;bpel:assign validate="no" name="Assign1"&gt;
                          &lt;bpel:copy&gt;
                              &lt;bpel:from&gt;
                                  &lt;bpel:literal xml:space="preserve"&gt;Not john&lt;/bpel:literal&gt;
                              &lt;/bpel:from&gt;
                              &lt;bpel:to part="payload" variable="output"&gt;
                                  &lt;bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"&gt;&lt;![CDATA[tns:result]]&gt;&lt;/bpel:query&gt;
                              &lt;/bpel:to&gt;
                          &lt;/bpel:copy&gt;
                      &lt;/bpel:assign&gt;
                      &lt;bpel:reply name="Reply" partnerLink="client" operation="process" portType="tns:Flow1" variable="output"&gt;&lt;/bpel:reply&gt;
                  &lt;/bpel:sequence&gt;
              &lt;/bpel:else&gt;
  
          &lt;/bpel:if&gt;
      &lt;/bpel:sequence&gt;
  &lt;/bpel:process&gt;
  </code></pre>
  
  <p>WSDL FILE:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;definitions name="Flow1"
          targetNamespace="http://Flow1"
          xmlns:tns="http://Flow1"
          xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
          xmlns="http://schemas.xmlsoap.org/wsdl/"
          xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
          &gt;
  
  &lt;!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       TYPE DEFINITION - List of types participating in this BPEL process 
       The BPEL Designer will generate default request and response types
       but you can define or import any XML Schema type and use them as part 
       of the message types.
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --&gt;    
      &lt;types&gt;
          &lt;schema attributeFormDefault="unqualified" elementFormDefault="qualified" 
                  targetNamespace="http://Flow1" 
                  xmlns="http://www.w3.org/2001/XMLSchema"&gt;
  
              &lt;element name="Flow1Request"&gt;
                  &lt;complexType&gt;
                      &lt;sequence&gt;
                          &lt;element name="input" type="string"/&gt;
                      &lt;/sequence&gt;
                  &lt;/complexType&gt;
              &lt;/element&gt;
  
              &lt;element name="Flow1Response"&gt;
                  &lt;complexType&gt;
                      &lt;sequence&gt;
                          &lt;element name="result" type="string"/&gt;
                      &lt;/sequence&gt;
                  &lt;/complexType&gt;
              &lt;/element&gt;
          &lt;/schema&gt;
      &lt;/types&gt;
  
  
  &lt;!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       MESSAGE TYPE DEFINITION - Definition of the message types used as 
       part of the port type defintions
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --&gt;    
      &lt;message name="Flow1RequestMessage"&gt;
          &lt;part name="payload" element="tns:Flow1Request"/&gt;
      &lt;/message&gt;
      &lt;message name="Flow1ResponseMessage"&gt;
          &lt;part name="payload" element="tns:Flow1Response"/&gt;
      &lt;/message&gt;
  
  &lt;!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       PORT TYPE DEFINITION - A port type groups a set of operations into
       a logical service unit.
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --&gt;    
  
      &lt;!-- portType implemented by the Flow1 BPEL process --&gt;
      &lt;portType name="Flow1"&gt;
          &lt;operation name="process"&gt;
              &lt;input  message="tns:Flow1RequestMessage" /&gt;
              &lt;output message="tns:Flow1ResponseMessage"/&gt;
          &lt;/operation&gt;
      &lt;/portType&gt;   
  &lt;!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       PARTNER LINK TYPE DEFINITION
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --&gt;    
      &lt;plnk:partnerLinkType name="Flow1"&gt;
          &lt;plnk:role name="Flow1Provider" portType="tns:Flow1"/&gt;
      &lt;/plnk:partnerLinkType&gt;
  
  
  &lt;!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       BINDING DEFINITION - Defines the message format and protocol details
       for a web service.
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --&gt;
      &lt;binding name="Flow1Binding" type="tns:Flow1"&gt;
          &lt;soap:binding style="document"
              transport="http://schemas.xmlsoap.org/soap/http" /&gt;
          &lt;operation name="process"&gt;
              &lt;soap:operation
                  soapAction="http://Flow1/process" /&gt;
              &lt;input&gt;
                  &lt;soap:body use="literal" /&gt;
              &lt;/input&gt;
              &lt;output&gt;
                  &lt;soap:body use="literal" /&gt;
              &lt;/output&gt;
          &lt;/operation&gt;
      &lt;/binding&gt;
  
  &lt;!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       SERVICE DEFINITION - A service groups a set of ports into
       a service unit.
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --&gt;
      &lt;service name="Flow1Service"&gt;
          &lt;port name="Flow1Port" binding="tns:Flow1Binding"&gt;
              &lt;soap:address location="http://localhost:8084/ode/processes/Flow1" /&gt;
          &lt;/port&gt;
      &lt;/service&gt;
  &lt;/definitions&gt;
  </code></pre>
  
  <p>and Deploy.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03" xmlns:Flow1="http://Flow1"&gt;
    &lt;process name="Flow1:Flow1"&gt;
      &lt;active&gt;true&lt;/active&gt;
      &lt;retired&gt;false&lt;/retired&gt;
      &lt;process-events generate="all"/&gt;
      &lt;provide partnerLink="client"&gt;
        &lt;service name="Flow1:Flow1Service" port="Flow1Port"/&gt;
      &lt;/provide&gt;
    &lt;/process&gt;
  &lt;/deploy&gt;
  </code></pre>