aspose file tools*
The moose likes Web Services and the fly likes WSDL question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL question" Watch "WSDL question" New topic
Author

WSDL question

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
If a webservice is published, i.e. the wsdl is publicly available is it possible to know if the web service is SOAP or REST?

Thanks.
sandy chops
Greenhorn

Joined: Nov 11, 2010
Posts: 8
WSDL is an XML-based language for describing a web service.
Soap is specification and REST is a stype.

REST and WSDL are not related.
Jim Akmer
Ranch Hand

Joined: Jul 06, 2010
Posts: 104
You can tell by the binding section of WSDL. Check for SOAP binding.
WSDL is not specific to SOAP. It supports non-SOAP web services.
Actually WSDL 2.0 offers better support for RESTful web services since it accepts all HTTP request methods (not only POST and GET)
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Jim Akmer wrote:Actually WSDL 2.0 offers better support for RESTful web services since it accepts all HTTP request methods (not only POST and GET)


That's interesting as Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language doesn't mention RESTful web services at all.

Regards,
Dan
Jim Akmer
Ranch Hand

Joined: Jul 06, 2010
Posts: 104
That is not accurate. It defines HTTP binding WSDL 2.0
Also check this out: Describe Restful WS with WSDL 2.0
 
jQuery in Action, 2nd edition
 
subject: WSDL question