25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

► S-MethodResult<br />

This service primitive returns the response to an operation request. It can be<br />

invoked only after a preceding S-MethodInvoke has occurred. The following<br />

parameters can be used for this service primitive: client <strong>and</strong> server<br />

transaction ID (distinguishes between pending transactions), status (tells,<br />

through the equivalent of the HTTP status code, RFC 2616, the state of the<br />

requested operation invoked by S-MethodInvoke through the client),<br />

response headers (as described under S-MethodeInvoke, the response body,<br />

the data associated with the response or, if the status indicates an error,<br />

contains further detailed error information), <strong>and</strong> acknowledgment headers<br />

(can be used to return some information back to the server).<br />

► S-Disconnect<br />

Used to disconnect a session, or to notify a user that a session could not be<br />

established. Prior to issuing this, any incomplete transactions must be<br />

aborted.<br />

Client Provider<br />

Server<br />

S-Connect.req<br />

S-MethodInvoke.req<br />

S-Connect.cnf<br />

S-MethodInvoke.cnf<br />

S-MethodResult.ind<br />

S-MethodResult.res<br />

S-Disconnect.req<br />

S-Disconnect.ind<br />

further S-Method primitives<br />

S-Connect.ind<br />

S-Connect.res<br />

S-MethodInvoke.ind<br />

S-MethodInvoke.res<br />

S-MethodResult.req<br />

S-MethodResult.cnf<br />

S-Disconnect.ind<br />

Figure 18-14 Normal session flow: Establishment, actions, <strong>and</strong> disconnection<br />

This sequence of events can be explained as follows:<br />

1. The client’s session layer starts with a S-Connect.req request. The server’s<br />

session layer notifies its upper layer (application layer) through an<br />

S-Connect.ind indication that a connection request is received.<br />

Chapter 18. Wireless Application Protocol 689

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

Saved successfully!

Ooh no, something went wrong!