This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Is a WSDL required with Spring-WS Services? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Is a WSDL required with Spring-WS Services?" Watch "Is a WSDL required with Spring-WS Services?" New topic
Author

Is a WSDL required with Spring-WS Services?

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
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

Joined: Jul 16, 2012
Posts: 5
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

Joined: Feb 10, 2001
Posts: 613
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


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
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

Joined: Feb 10, 2001
Posts: 613
completely missed it..sorry for that..
bill simons
Greenhorn

Joined: Jul 16, 2012
Posts: 5
Mike I am sorry I missed this as well
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is a WSDL required with Spring-WS Services?
 
Similar Threads
Regarding Spring-WS
How I make a web client except any certificate via https
How to generate wsdl with spring ws
how to consume a webservice using axis2
Axis2 - WSDL to code