• Post Reply Bookmark Topic Watch Topic
  • New Topic

proper way to define a WSDL ?

 
Pourang Emami
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim West
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!