11.07.2015 Views

y - Net Developer

y - Net Developer

y - Net Developer

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

amrameshreddy.blog.com20 CHAPTER 1 ■ INTRODUCING SERVICE-ORIENTED ARCHITECTUREramrameshreddy.blog.comDefinitionsDefinitions are expressed in XML and include both data type and message definitions. Thesedefinitions are based upon an agreed-on XML vocabulary that in turn should be based on aset of industry-wide vocabulary. If you need to use data type and message definitions betweenorganizations, then an industry-wide vocabulary is recommended.■Note Definitions are not constraints to XML and can be expressed in formats other than XML. As anexample, you can use the Object Management Group (OMG) IDL instead of XML. If you use a different definitionformat, as with XML, both the senders and receivers would need to agree on the format and thevocabulary. However, as per the official W3C WSDL specification, the preference is to use XSD as the canonicaltype system. Sticking to this would ensure maximum interoperability and platform neutrality.OperationsOperations describe the actions for the message supported by the web service and can be oneof four types, as listed in Table 1-3. In a WSDL document structure, operations are representedusing the element, which is the most important element because it defines theoperations that can be performed. In context of the OO paradigm, each operation is a method.Table 1-3. Operation TypesErrorOne-wayRequest-responseSolicit-responseNotificationDescriptionThe service endpoint receives a message.The service endpoint receives a message and sends a correlatedmessage.The service endpoint sends a message and receives a correlatedmessage.The service endpoint sends a message.Figure 1-6 shows the structure of a WSDL document, which consists of abstract definitionsand concrete descriptions. On the left is the abstract definition where the data type’s definitionis a container for using some type system such as XSD. Message definitions, as the name suggests,are the typed definitions of the data being communicated. An operation is a descriptionof the action supported by the service and contains one or more data types and message definitions,as shown in Figure 1-6. Port types are a set of operations supported by more than oneendpoint. All of these are brought together by the binding, which is the concrete protocol anddata format specified for a particular port type. A port is a single endpoint defined as the combinationof the binding and the network address. Most developers do not handcraft the WSDLbut instead use the underlying .NET Framework to generate this for them.ramrameshreddyramrameshreddy

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!