How to locate path of generated wsdl in Spring-ws

spring, spring-ws, web-services

Solution

Your wsdl should be accessible through:

http://<servername>:<port>/<context-path>/loginService.wsdl

Can you try this and tell us if it doesn't work?

Problem

I have generated webservice using spring-ws. I have deployed my application in tomcat and deployed without any error. I am not able to find the path for WSDL. Please help me how to form path for wsdl. My web.xml: ``` <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>listener><servlet><servlet-name>spring-ws</servlet-name><servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class></servlet><servlet-mapping><servlet-name>sprig-ws</servlet-name><url-pattern>/</url-pattern></servlet-mapping> <context-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/spring-ws--servlet.xml</param-value></context-param> ``` spring-ws-servlet.xml ``` <bean class="org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter"> <constructor-arg ref="marshaller" /> </bean> <bean id="marshaller" class="org.springframework.oxm.xmlbeans.XmlBeansMarshaller"> </bean> <bean id="loginEndpoint" class="com.cloudexult.endpoint.LoginEndpoint"> </bean> <sws:dynamic-wsdl id="loginmanager" portTypeName="LoginService" locationUri="/loginService/" targetNamespace="http://www.example.org/Login/definitions"> <sws:xsd location="/WEB-INF/schema/Login.xsd"/> </sws:dynamic-wsdl> ```

Original source