wood burning stoves 2.0*
The moose likes Web Services and the fly likes WSDL and WebServices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL and WebServices" Watch "WSDL and WebServices" New topic
Author

WSDL and WebServices

Kodo Tan
Ranch Hand

Joined: Aug 14, 2001
Posts: 105
Hi all
Sorry for asking this dumb question - "Must all web services come with WSDL ?" Are there any web services that work without any WSDL files ?
Thanks in advance.

Cheers
Kodo
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Well, if a web service doesn't have a published WSDL document, how would anyone know how to use it? The WSDL doesn't have to be a physical file, however. Many platforms have such a feature that generates the WSDL document on-the-fly for a web service when invoked with a simple HTTP GET request having "?wsdl" appended to the URL.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Howard Kushner
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 361
Actually there is a UDDI API for interrogating the registry directly.
Regards,


Howard Kushner<br />IBM Certified Enterprise Developer - WebSphere Studio Application Developer V5.0<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - Web Services with WebSphere Studio V5.1<br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1931182108/" target="_blank" rel="nofollow">Developing J2EE Applications with WebSphere Studio</a> my Certification Study Guide for IBM Test 287
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Howard, I'm not reading you?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Ok. I think you meant that the client doesn't need a published WSDL because she can interrogate a UDDI registry for the information. Did I get it right? If I did, I'll have to point out that the UDDI registry will still point to a WSDL document for the technical "instructions" to actually invoke the web service.
vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
WSDL needs to be made available to any client by webservice provider for interactions with webservices.
Originally posted by Kodo Tan:
Hi all
Sorry for asking this dumb question - "Must all web services come with WSDL ?" Are there any web services that work without any WSDL files ?
Thanks in advance.

Cheers
Kodo


Thanks
Vikas Sharma
SCJP(1.4)
Howard Kushner
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 361
Please allow me to try again
Although the UDDI registry may be backed by references to WSDL, we can discover and bind dynamically (programmatically) to web services. You may want to check out the links below.
The API to which I previously referred:
http://www-124.ibm.com/developerworks/oss/uddi4j/
A more complete set of solutions:
http://www.uddi.org/solutions.html
Have fun!
Regards,
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Interesting. Would you happen to have an example of such an UDDI record? I only remember tModelInstanceInfo having an element "overview document", which is a URL. I looked at the JUDDI/UDDI4J API but I can't see how one would actually invoke a web service using that API.
Howard Kushner
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 361
As you have so correctly pointed out, with our SOA we have to publish, find, and bind. With that in mind, check out the following URL for Apache SOAP.
http://www.apache.org/dist/ws/soap/version-2.3.1/
Are we having fun yet?
Regards,
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Being the lazy person I am, would you please relief me from browsing through a near-dead Apache project...
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Are you talking about putting only the SOAP endpoint address into a tModel record and then assuming that the client knows what kind of a SOAP envelope she should send into that endpoint? This thing is really bugging me now
 
GeeCON Prague 2014
 
subject: WSDL and WebServices