To solve the problem, put <cxf-client> inside the <outbound-endpoint> section (NOT BEFORE THIS), changing the following code
<cxf:jaxws-client clientClass="com.xyz.services.WSServices" port="WSServicesSoap" wsdlLocation="classpath:wsdl-file.wsdl" operation="GimmeDataOperation" /> <outbound-endpoint exchange-pattern="request-response" address="http://localhost:8083/OutboundService" />
which produces the output of ReleasingInputStream for
<outbound-endpoint exchange-pattern="request-response" address="http://localhost:8083/OutboundService" > <cxf:jaxws-client clientClass="com.xyz.services.WSServices" port="WSServicesSoap" wsdlLocation="classpath:wsdl-file.wsdl" operation="GimmeDataOperation" /> </outbound-endpoint>
which returns the expected object.
source share