Note that there are some explanatory texts on larger screens.

plurals
  1. POWhich namespace on assign operation in bpel to use - selectionFailure, no results for expression
    primarykey
    data
    text
    <p>The situation is that I have a fairly simple BPEL process that invokes a service. I want to access the response message elements and assign then to another service (or even to the result of the BPEL process itself to return to the client). The issue I am having is that the imported wsdl for the service to invoke has a namespace declaration in it e.g. ldap and all the imported xsd elements for that wsdl also have the same ldap namespace declared.</p> <pre><code>&lt;definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ldap="http://webservices.hrldaplookup.ecis.police.uk/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://webservices.hrldaplookup.ecis.police.uk/" name="LDAPLookupServiceImpl"&gt; </code></pre> <p>This is then imported into my BPEL process, again using the ldap namespace.</p> <pre><code> &lt;bpel:process name="HRLDAPProces" targetNamespace="http://ldap.ecis.police.uk/Person/process" suppressJoinFailure="yes" xmlns:tns="http://ldap.ecis.police.uk/Person/process" xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ldap="http://webservices.hrldaplookup.ecis.police.uk/" xmlns:ns1="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://uk.police.ecis.police.uk/athena/services/ConstrainedValueService" xmlns:ns="http://webservices.cvmanagement.athena.ecis.police.uk/"&gt; &lt;!-- Import the client WSDL --&gt; &lt;bpel:import namespace="http://webservices.cvmanagement.athena.ecis.police.uk/" location="ConstrainedValueService.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"&gt;&lt;/bpel:import&gt; &lt;bpel:import namespace="http://uk.police.ecis.police.uk/athena/services/ConstrainedValueService" location="ConstrainedValueService_1.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"&gt;&lt;/bpel:import&gt; &lt;bpel:import namespace="http://webservices.hrldaplookup.ecis.police.uk/" location="LDAPLookupServiceImpl.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"&gt;&lt;/bpel:import&gt; &lt;bpel:import location="HRLDAPProcesArtifacts.wsdl" namespace="http://ldap.ecis.police.uk/Person/process" importType="http://schemas.xmlsoap.org/wsdl/" /&gt; </code></pre> <p>When the service is invoked the response message has its own arbitrary namespaces assigned to the elements. </p> <pre><code>&lt;getPersonnelResponse xmlns="http://webservices.hrldaplookup.ecis.police.uk/" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://webservices.hrldaplookup.ecis.police.uk/" xmlns:ns3="http://ldap.ecis.police.uk/Person" xmlns:ns4="http://ecis.police.uk/ldaplookupservice"&gt;&lt;personnelData xmlns="http://ecis.police.uk/ldaplookupservice"&gt;&lt;detail xmlns="http://ldap.ecis.police.uk/Person"&gt; </code></pre> <p>When I want to assign variable parameter parts to something else I don't know which namespace to use.</p> <pre><code>$LDAPLookupResponse.parameters/ldap:personnelData/ldap:detail/item[1] </code></pre> <p>or </p> <pre><code>$LDAPLookupResponse.parameters/ns2:personnelData/ns4:detail/ns4:item[1] </code></pre> <p>Neither seem to work.</p> <p>I'm sure I am just missing something simple, I just need pointing in the right direction.</p> <p>Thanks</p> <p>I'm using WSO2 Business Process server.</p> <p>Full bpel process is <a href="http://pastebin.com/Gy9REF1t" rel="nofollow">here</a> as requested by Thilini Ishaka - thanks!</p> <p>and the log file for the error is </p> <pre><code>TID: [0] [BPS] [2013-01-21 16:22:47,750] DEBUG {org.wso2.carbon.bpel.messagetrace} - Service invocation completed: MEXId: hqejbhcnphr7xlanvn6p6t :: {http://webservices.hrldaplookup.ecis.police.uk/}LDAPLookupServiceImpl.getPersonnel {org.wso2.carbon.bpel.messagetrace} TID: [0] [BPS] [2013-01-21 16:22:47,750] TRACE {org.wso2.carbon.bpel.messagetrace} - Response message: MEXId: hqejbhcnphr7xlanvn6p6t :: &lt;?xml version='1.0' encoding='utf-8'?&gt;&lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;S:Body&gt;&lt;ns2:getPersonnelResponse xmlns:ns2="http://webservices.hrldaplookup.ecis.police.uk/" xmlns:ns4="http://ecis.police.uk/ldaplookupservice" xmlns:ns3="http://ldap.ecis.police.uk/Person"&gt;&lt;ns4:personnelData&gt;&lt;ns3:detail&gt;&lt;ns3:item title="Managers Name"&gt;Bob NELSON PSE 56619&lt;/ns3:item&gt;&lt;ns3:item title="Fullname"&gt;Conrad CRAMPTON PSE 52704&lt;/ns3:item&gt;&lt;ns3:item title="Rank"&gt;PSE&lt;/ns3:item&gt;&lt;ns3:item title="Collar Number"&gt;46052704&lt;/ns3:item&gt;&lt;ns3:item title="Location"&gt;Headquarters&lt;/ns3:item&gt;&lt;ns3:item title="Email address"&gt;conrad.crampton@kent.pnn.police.uk&lt;/ns3:item&gt;&lt;ns3:item title="Last Name"&gt;Crampton&lt;/ns3:item&gt;&lt;ns3:item title="Force Number"&gt;52704&lt;/ns3:item&gt;&lt;ns3:item title="Managers Force Number"&gt;56619&lt;/ns3:item&gt;&lt;ns3:item title="First Name"&gt;Conrad&lt;/ns3:item&gt;&lt;/ns3:detail&gt;&lt;/ns4:personnelData&gt;&lt;/ns2:getPersonnelResponse&gt;&lt;/S:Body&gt;&lt;/S:Envelope&gt; {org.wso2.carbon.bpel.messagetrace} TID: [0] [BPS] [2013-01-21 16:22:47,750] INFO {org.apache.ode.bpel.runtime.ASSIGN} - Assignment Fault: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=322,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure: R-Value expression "{OXPath10Expression $LDAPLookupResponse.parameters//ldap:item[@title = 'Rank']}" did not select any nodes. {org.apache.ode.bpel.runtime.ASSIGN} TID: [0] [BPS] [2013-01-21 16:22:47,750] INFO {org.apache.ode.bpel.runtime.ASSIGN} - Assignment Fault: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=322,faultExplanation={http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure: R-Value expression "{OXPath10Expression $LDAPLookupResponse.parameters//ldap:item[@title = 'Rank']}" did not select any nodes. {org.apache.ode.bpel.runtime.ASSIGN} TID: [0] [BPS] [2013-01-21 16:22:47,765] WARN {org.apache.ode.bpel.engine.BpelProcess} - Instance 3652 of {http://ldap.ecis.police.uk/Person/process}HRLDAPProces-31 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: R-Value expression "{OXPath10Expression $LDAPLookupResponse.parameters//ldap:item[@title = 'Rank']}" did not select any nodes.)] @322 {org.apache.ode.bpel.engine.BpelProcess} TID: [0] [BPS] [2013-01-21 16:22:47,765] WARN {org.apache.ode.bpel.engine.BpelProcess} - Instance 3652 of {http://ldap.ecis.police.uk/Person/process}HRLDAPProces-31 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: R-Value expression "{OXPath10Expression $LDAPLookupResponse.parameters//ldap:item[@title = 'Rank']}" did not select any nodes.)] @322 {org.apache.ode.bpel.engine.BpelProcess} TID: [0] [BPS] [2013-01-21 16:22:47,859] DEBUG {org.wso2.carbon.bpel.messagetrace} - Reply Sent: HRLDAPProces.{http://ldap.ecis.police.uk/Person/process}process {org.wso2.carbon.bpel.messagetrace} TID: [0] [BPS] [2013-01-21 16:22:47,859] TRACE {org.wso2.carbon.bpel.messagetrace} - Response message: &lt;?xml version='1.0' encoding='utf-8'?&gt;&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt;&lt;wsa:Action&gt;http://ldap.ecis.police.uk/Person/process/HRLDAPProces/processResponse&lt;/wsa:Action&gt;&lt;wsa:RelatesTo&gt;http://identifiers.wso2.com/messageid/1358785364081/1999227541&lt;/wsa:RelatesTo&gt;&lt;/soapenv:Header&gt;&lt;soapenv:Body&gt;&lt;soapenv:Fault&gt;&lt;faultcode&gt;soapenv:Server&lt;/faultcode&gt;&lt;faultstring xmlns:axis2ns2="http://docs.oasis-open.org/wsbpel/2.0/process/executable"&gt;axis2ns2:selectionFailure&lt;/faultstring&gt;&lt;detail/&gt;&lt;/soapenv:Fault&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt; {org.wso2.carbon.bpel.messagetrace} TID: [0] [BPS] [2013-01-21 16:23:17,875] INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} - 'admin@carbon.super [-1234]' logged in at [2013-01-21 16:23:17,875+0000] {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload