In simple Java OO terms: I have one web service that returns an array of integers. I have another web service that accepts an array of integers. I want to feed the output from one webservice into the input of the other web service.
In WSDL/BPEL terms...
Service #1's operation personPositionInfoResponse, returns an array of integers as a complex type:
The from-spec of "<xs:complexType>" is not compatible with to-spec of "<xs:complexType>" - Element <ns:return> in httplocalhost...:8080/axis2/services/PersonalInfoService?wsdl differs from <ns:positionID> in httplocalhost...:8080/axis2/services/PositionSkillManagementService?wsdl different QNames: ns:return vs ns:positionID
You are trying to copy nodes , your xpath is pointing to nodes hence the error message that they are incompatible, and also may be the namespaces are different.
you can try using xslt to copy the contents.
Create a transform node and then in the input parameters specify $personalInfoServiceOutput.parameters and in output add [$positionSkillManagementInput.parameters.
Then create a new transformation and map the elements. It should add a for each element . refer this:-