Copyright © tutorialspoint.com
The <portType> element combines multiple message elements to form a complete oneway or round-trip operation. For example, a <portType> can combine one request and one response message into a single request/response operation. This is most commonly used in SOAP services. A portType can define multiple operations. Lets take a piece of code from the Example Session:
Patterns of OperationWSDL supports four basic patterns of operation: One-way :The service receives a message. The operation therefore has a single input element. The grammar for a one-way operation is:
Request-response:The service receives a message and sends a response. The operation therefore has one input element, followed by one output element. To encapsulate errors, an optional fault element can also be specified. The grammar for a request-response operation is:
Solicit-response:The service sends a message and receives a response. The operation therefore has one output element, followed by one input element. To encapsulate errors, an optional fault element can also be specified. The grammar for a solicit-response operation is:
Notification :The service sends a message. The operation therefore has a single output element. Following is the grammer for a notification operation:
|
Copyright © tutorialspoint.com