09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Internet Data Access Presentation (IDAP)<br />

SOAP Message Structure<br />

The IDAP namespace has the value<br />

<br />

http://ns.oracle.com/AQ/schemas/access<br />

SOAP structures a message request or response as follows:<br />

SOAP envelope (the root or top element in an XML tree))<br />

SOAP header (first element under the root)<br />

SOAP body (the AQ XML document)<br />

The SOAP Envelope<br />

The tag of this root element is SOAP:Envelope. SOAP defines a global attribute<br />

SOAP:encodingStyle that indicates serialization rules used instead of those<br />

described by the SOAP specification. This attribute may appear on any element and<br />

is scoped to that element and all child elements not themselves containing such an<br />

attribute. Omitting SOAP:encodingStyle means that type specification has been<br />

followed (unless overridden by a parent element).<br />

The SOAP envelope also contains namespace declarations and additional attributes,<br />

provided they are namespace qualified. Additional namespace-qualified<br />

subelements can follow the body.<br />

SOAP Headers<br />

The tag of this first element under the root is SOAP:Header. A SOAP header passes<br />

necessary information, such as the transaction ID, with the request. The header is<br />

encoded as a child of the SOAP:Envelope XML element. Headers are identified by<br />

the name element and are namespace-qualified. A header entry is encoded as an<br />

embedded element.<br />

The SOAP Body<br />

The SOAP body, tagged SOAP:Body, contains a first subelement whose name is the<br />

method name. This method request element contains elements for each input and<br />

output parameter. The element names are the parameter names. The body also<br />

contains SOAP:Fault, indicating information about an error.<br />

For performing AQ operations, the SOAP body must contain an AQ XML<br />

document. The AQ XML document has the namespace<br />

http://ns.oracle.com/AQ/schemas/access<br />

17-4 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

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

Saved successfully!

Ooh no, something went wrong!