Showing posts with label Spring WS. Show all posts
Showing posts with label Spring WS. Show all posts

Saturday, 28 July 2012

Exposing Web Service WSDL in Spring WS

You can expose WSDL of the Service in the Spring WS using configuration:

<ws:dynamic-wsdl id="definitionName" portTypeName="Type" locationUri="http://host:8080/serviceName/">
<ws:xsd location="/WEB-INF/transfer.xsd"/>
</ws:dynamic-wsdl>

It generates WSDL from XSD file. The wsdl can now be accessed through: http://host:8080/serviceName/definitionName.wsdl