09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

SOAP Method Invocation<br />

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

A method invocation is performed by creating the request header and body and<br />

processing the returned response header and body. The request and response<br />

headers can consist of standard transport protocol-specific and extended headers.<br />

In the case of SMTP (e-mail), the method invocation can be done by the filter<br />

interface of the e-mail server, which invokes a Java method with the<br />

e-mail-message-body as argument. This results in remote invocation of the POST<br />

method on the AQ servlet. The response is e-mailed directly to the recipient<br />

specified in the reply of the message. The response header can contain<br />

SMTP-protocol-related headers also.<br />

HTTP Headers<br />

The POST method within the HTTP request header performs the SOAP method<br />

invocation. The request should include the header SOAPMethodName, whose value<br />

indicates the method to be invoked on the target. The value consists of a URI<br />

followed by a "#", followed by a method name (which must not include the "#"<br />

character), as follows:<br />

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

The URI used for the interface must match the implied or specified namespace<br />

qualification of the method name element in the SOAP:Body part of the payload.<br />

Method Invocation Body<br />

SOAP method invocation consists of a method request and optionally a method<br />

response. The SOAP method request and method response are an HTTP request<br />

and response, respectively, whose content is an XML document that consists of the<br />

root and mandatory body elements. This XML document is referred to as the SOAP<br />

payload in the rest of this chapter.<br />

The SOAP payload is defined as follows:<br />

The SOAP root element is the top element in the XML tree.<br />

<br />

The SOAP payload headers contain additional information that must travel<br />

<br />

with the request.<br />

The method request is represented as an XML element with additional elements<br />

for parameters. It is the first child of the SOAP:Body element. This request can<br />

be one of the AQ XML client requests described in the next section.<br />

Internet Access to <strong>Advanced</strong> <strong>Queuing</strong> 17-5

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

Saved successfully!

Ooh no, something went wrong!