aspose file tools
The moose likes Web Services and the fly likes How to generate wsdl with spring ws Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How to generate wsdl with spring ws" Watch "How to generate wsdl with spring ws" New topic
Author

How to generate wsdl with spring ws

Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 30
Hi guys,
I don't understang how to generate the wsdl after build my simple service.
I have my sample-spring-servlet-ws.xml :

After do the MAVEN INSTALL I put my war in the webapp of Tomcat, after the deploy how i can generte the wsdl??
I try with the path in the url of browser : http://localhost:8080//sample-spring-ws/sample.wsdl but don't function or I tyr to put simple : /sample-spring-ws/sample.wsdl but nothing.

Someone can give me an help, please!!

Thank you

Dora Di Donato
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
Spring web services mainly use the contract-first approach when developing web services. In such a case you need to write the WSDL yourself.
With that said, you can generate a (first version ?) of your WSDL by writing an endpoint implementation class annotated with JAX-WS annotations and deploy it to a server (GlassFish or Tomcat with Metro, for example).
The JAX-WS web service stack will then generate the WSDL for you. This WSDL can then be used in subsequent development of the web service with Spring web services.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to generate wsdl with spring ws
 
Similar Threads
Spring Annotation configuration
The prefix "oxm" for element "oxm:jaxb2-marshaller" is not bound
[Spring Security] No bean named 'springSecurityFilterChain' is defined
Problem with <util:map - Invalid nested exception is org.xml.sax.SAXParseException
Dependency injection problem