Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is a WSDL required with Spring-WS Services?

 
Mike London
Ranch Hand
Posts: 1208
6
  • Mark post as helpful
  • send pies
  • 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
 
bill simons
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 1208
6
  • Mark post as helpful
  • send pies
  • 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: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
completely missed it..sorry for that..
 
bill simons
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike I am sorry I missed this as well
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic