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
posted
0
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.
"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.