File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes proper way to define a WSDL ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "proper way to define a WSDL ?" Watch "proper way to define a WSDL ?" New topic
Author

proper way to define a WSDL ?

Pourang Emami
Ranch Hand

Joined: Sep 21, 2002
Posts: 127
A WSDL file is an interface over an underlying process.
My question is that what is the proper way to define this interface.
is there just one WSDL file per a process? or there should be distinct WSDL file for each method (sub_process)in the main process?
Thank you for your answer.


Best Regards,<br />Pourang Emami
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32767
WSDL can define several methods in the same file, which will then be addressed through the same URN. Having different WSDL files thus implies different URNs. Whether that makes sense in your case depends on how closely linked your methods are functionally.


Android appsImageJ pluginsJava web charts
Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
"An interface over an underlying process" is only one view you could take of WSDL - one that'd be encouraged by ideas like BPEL, I'd imagine. You could equally take an RPC view of the world (in the old CORBA sense). In this case, a WSDL can simply be thought of as defining an interface - like the Java interface construct. This should let you apply more familiar design principles to deciding what goes in that interface.

I think of a WSDL as a facade to an application - this takes an RPC-view of Web services, which isn't strictly necessary, but IMO applies to most current uses of Web services. Like a facade, a WSDL (in theory) provides a clean interface to a system, hiding the complexity of implementation. This is the view I use when defining a WSDL.


-Tim
 
 
subject: proper way to define a WSDL ?
 
Threads others viewed
Tomcat Server and axis application --prob. starting context
Using .wsdl in JSP
To pass file object to webservice
how to generate documentation for a webservice
doubt in web service - confused in a class which is neither ws nor client
IntelliJ Java IDE