• 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

Is a WSDL required with Spring-WS Services?

 
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring-WS creates a WSDL automatically behind the scenes when you set up a Spinrg-WS Web Service XSD.

My question, however, is "is" the WSDL actually required with Spring WS?

There's no WSDL->>Java in non-JAX-WS services so I'm a bit confused by whether you need the WSDL here.

Appreciate any replies or clarifications on this.

Thanks,

Mike
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://static.springsource.org/spring-ws/sites/1.5/reference/html/tutorial.html

http://stackoverflow.com/questions/1575268/soap-and-spring

Here are some references above, hopefully they explain things a little bit.
If you want my opinion on the matter here it is


If you generating a service contract(a web service- either soap or restful then you need a wsdl. It is required...
The purpose of this is use xml to parse your data model classes.

you can use contract first basically you do this by hand(wsdl)
or you can have this generated by using a wizard
The downside of this approach their is no chance of updating.

In my opinion I would always use the first approach...I hope this helps
 
Ranch Hand
Posts: 645
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

a web service- either soap or restful then you need a wsdl



not for restful, that was the main reason behind simplicity of REST, though there is something similar called WADL but its not mandatory unlike WSDL for SOAP.

Cheers
-P
 
Mike London
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Praful Thakare wrote:

a web service- either soap or restful then you need a wsdl



not for restful, that was the main reason behind simplicity of REST, though there is something similar called WADL but its not mandatory unlike WSDL for SOAP.

Cheers
-P



Right, but Spring-WS is neither SOAP nor RESTFul as I understand it....hence my question.

- mike
 
Praful Thakare
Ranch Hand
Posts: 645
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
completely missed it..sorry for that..
 
bill simons
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mike I am sorry I missed this as well
reply
    Bookmark Topic Watch Topic
  • New Topic