Using SOAP Bindings



Using SOAP Bindings

The Web Service Description Language (WSDL) is an XML-based syntax for describing XML Web services. Other chapters in this book deal extensively with WSDL, but for now note that one interesting feature of WSDL is its ability to describe a set of operations abstractly, or what's commonly called a binding.

You can use the WebServiceBindingAttribute attribute to indicate that a Web service implements a well-known abstract binding. This attribute will create a WSDL import statement in the automatically generated WSDL document. Then, using the SoapDocumentMethodAttribute attribute, the SoapRpcMethodAttribute attribute, or both, you can indicate which methods in the service implement which operations described in the binding.