I have a very simple proyect, in my request I have a complex element:
<xsd:schema xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
targetNamespace="
http://xml.netbeans.org/schema/surtido.xsd"
xmlns:tns="
http://xml.netbeans.org/schema/surtido.xsd"
elementFormDefault="qualified" >
<xsd:element name="PKSurtido">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="cdgArticuloOrigen" type="xsd:string"></xsd:element>
<xsd:element name="cdgArticuloDestino" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
and the response is a string. In my bpel I assign cdgArticuloOrigen (this value is no null) to the response:
<copy>
<from>$inOperacion.articulos/ns0:cdgArticuloOrigen</from>
<to variable="outOperacion" part="respuesta"/>
</copy>
but a always I have the same exception:
BPCOR-6151: The process instance has been terminated because a fault was not handled; Fault Name is {
http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure; Fault Data is <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:sxeh="
http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling" type="sxeh:faultMessage" version="1.0" xmlns:jbi="
http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"><jbi:part>BPCOR-6174: Selection Failure occurred in BPEL({
http://enterprise.netbeans.org/bpel/surtido2/surtido2}surtido2) at line 24</jbi:part></jbi:message>
com.sun.jbi.engine.bpel.core.bpel.exception.StandardException: BPCOR-6174: Selection Failure occurred in BPEL({
http://enterprise.netbeans.org/bpel/surtido2/surtido2}surtido2) at line 24
BPCOR-6129: Line Number is 22
BPCOR-6130: Activity Name is Assign1
at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.createVirtualFaultUnit(BPELInterpreter.java:251)
at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:218)
at com.sun.jbi.engine.bpel.core.bpel.engine.BusinessProcessInstanceThread.execute(BusinessProcessInstanceThread.java:98)
at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.process(BPELProcessManagerImpl.java:1031)
at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:289)
at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:1291)
at com.sun.jbi.engine.bpel.BPELSEInOutThread.processRequest(BPELSEInOutThread.java:420)
at com.sun.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:252)
at com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:183)
I attach the proyect bpel and composite
proyect.rar