Dequeue Using AQ XML Servlet
You can perform dequeue requests over the Internet using SOAP.
See Also: Oracle9i Application Developer's Guide - Advanced Queuing for information about receiving AQ messages using SOAP.
In the Books0nline scenario, assume that the East shipping application receives AQ messages with a correlation identifier 'RUSH' over the Internet.
Example 23-4 Receiving and Dequeuing AQ XML Messages
The dequeue request will have the following format: <?xml version="1.0"?>
<Envelope xmlns= "http://schemas.xmlsoap.org/soap/envelope/"> <Body>
<AQXmlReceive xmlns = "http://ns.oracle.com/AQ/schemas/access"> <consumer_options>
<destination>ES_ES_bookedorders_que</destination>
<consumer_name>East_Shipping</consumer_name>
<selector>
<correlation>RUSH</correlation> </selector> </consumer_options>
<AQXmlCommit/>
</AQXmlReceive> </Body> </Envelope>
IDAP and AQ XML Schemas
IDAP exposes a SOAP and AQ XML schema to the client. All documents sent by the parser are validated against these schemas:
■ SOAP schema — http://schemas/xmlsoap.org/soap/envelope/
■ AQ XML schema — http://ns.oracle.com/AQ/schemas/access
See Also:
■ Oracle9i Application Developer's Guide - Advanced Queuing,
Chapter 8, for more detail on how to implement structured message payloads applications using either DBMS_AQADM or Java (JDBC)
■ Oracle9i Supplied PL/SQL Packages and Types Reference for more information about DBMS_TRANSFORM.
Post a comment