Re: Problem with Mule and CXF
Hi,
Good question, and yes the nested router is the component you should use if you want the functionality you describe.
Let's look at a small example configuration:
<service>
<inbound>
<cxf:inbound-endpoint address="http://localhost:8080/test"/>
</inbound>
<component class="com.test.YourWebService">
<binding interface="com.webservice.WebServiceInterface">
<outbound-endpoint address="http://test/webservice"/>
</binding>
</component>
</service>
Now what this configuration does is expose the YourWebService class as a web service on the http://localhost:8080/test address. The YourWebService class must define a class attribute with type WebServiceInterface and define a public setter for it. Then you can invoke the other web service from the YourWebService operation by calling the WebServiceInterface method.If you want to transform the response from the http://test/webservice web service you can simply define a transformer on the outbound-endpoint.
Hope this provides some help for you.
Best regards,
Tijs
|