13.07.2015 Views

Action Request System 5.1 Developing AR System Applications ...

Action Request System 5.1 Developing AR System Applications ...

Action Request System 5.1 Developing AR System Applications ...

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.

<strong>Action</strong> <strong>Request</strong> <strong>System</strong> <strong>5.1</strong>2 The mid tier extracts the web service name and the operation name from theSOAP request packet. It retrieves from the <strong>AR</strong> <strong>System</strong> server, the web serviceobject corresponding to the web service name, and searches the web servicefor details about the operation, such as the operation type (Create, Get, andSet), the query string, and the input and output mappings. Then it expandsthe xpath expressions in the query string, extracts the XML document fromthe SOAP request packet, and sends it to the <strong>AR</strong> <strong>System</strong> server along with theoperation type, the input and output mappings, and the expanded querystring.3 The <strong>AR</strong> <strong>System</strong> server parses the XML document using the mappinginformation and converts it into field data. The data is treated differentlyaccording to the operation type:! For the Get operation types, the <strong>AR</strong> <strong>System</strong> server ignores the input fields.! For the Create operation type, the <strong>AR</strong> <strong>System</strong> server creates a new entrywith the input fields.! For the Set operation type, the <strong>AR</strong> <strong>System</strong> server searches for an entryusing the expanded query string and then modifies the data using theinput fields.For complex documents the data is pushed into one or more forms. Thisaction may trigger some filters.4 The <strong>AR</strong> server also uses the mapping information to get the data from one ormore records and generates an XML document. The data is again treateddifferently according to the operation type:! For the Get operation type, the <strong>AR</strong> <strong>System</strong> server performs a query basedon the query string.! For the Create operation type, the <strong>AR</strong> <strong>System</strong> server reads the record thatwas created.! For the Set operation type, the <strong>AR</strong> <strong>System</strong> server reads the record that wasmodified.This action may also trigger some filters.5 The XML document is returned to the mid tier.6 The mid tier packages the XML document as a SOAP response and returns itto the external client.282 "Chapter 12—Creating and Using Web Services

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

Saved successfully!

Ooh no, something went wrong!