I need to create a web-application in java which consumes SOAP based .Net web service. For this which tool and framework I shall use?
Things to be considered are:
- Open Source
- API for generating a SOAP request from a WSDL file. (I have done some samples with AXIS 2.)
- Easy implementation ( like PLAY/GRAILS frameworks) to optimize developer productivity.
I have found this link : http://playframework.wordpress.com/2010/08/15/web-services-using-play/ which sounds easier to build but not sure about the complexities when the requirement changes over a period of time.
As of now there will not be any data base to store any details. But the requirement might change once the prototype is finished.
Thanks in advance.
Spring web services is pretty nice, and has an easy to use client layer.
There's configuration work you have to do in spring XML or java based config, but once that's done, it's pretty easy:
StreamSource source = new StreamSource(new StringReader(msgText)); StreamResult result = new StreamResult(System.out); webServiceTemplate.sendSourceAndReceiveToResult( uri, source, result);
The uri parameter is optional (there's a method where you don't need it) if you want to send the message to the default URI for the webServiceTemplate object.
The particular example deals with straight xml, but there's more advanced features for marshalling/unmarshalling objects, security, etc...