• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to generate wsdl with spring ws

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
It will give me the powers of the gods. Not bad for a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic