using mule cxf component



This is by far the coolest way to create a web service, using mule CXF. CXF is a component that allows you to easily create and expose a web service using Mule runtime.

Just create normal java interface and implements it. Cook up some Mule connector and you're good to publish your web service.

Lets create your interface.



Lets create your class. Notice we're not annotating it with @webservice.




Finish it up with the following Mule script :-



After this, we just have to consume this service and gets a return results.

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm