I'm trying to use the cxf:jaxws-client in conjunction with an http outbound endpoint to consume a web service using Mule 3.3. I have read a number of sources (e.g. Mule CXF Marshall Response) indicating if I want to receive the unmarshalled Java object returned by my operation, the cxf:jaxws-client element should be placed inside the outbound-endpoint, e.g. something like:
<http:outbound-endpoint host="localhost" port="9001" path="crmService?wsdl">
<cxf:jaxws-client operation="getSomething" serviceClass="com.something.Service" />
</http:outbound-endpoint>
However, when I try this I get a schema error in Mule Studio stating "JAX-WS client is not allowed to be a child of element HTTP". If the above is not allowed, how do I get hold of the unmarshalled object returned by the operation?
cxf:jaxws-client
is placed before thehttp:outbound-endpoint
. – David Dossot