When the SEND command of this service is executed the following steps occur:
1. The service uses the value of the CONTENT keyword to determine the type of separated values to create:
2. If no content value is available, the service defaults to content type of the received content. If no protocol content type is found the service defaults to *CSV.
3. If the content value is *CSV, then content type will be application/comma-separated-values
4. If the content value is *TEXTCSV, then content type will be text/comma-separated-values
5. If the content value is *TSV, then content type will be application/tab-separated-values
6. If the content value is *TEXTTSV, then content type will be text/tab-separated-values
7. If the content value is not a valid separated value content type then CSV data is created, but the specified content type is sent.
8. Depending on the optional SVHEAD keyword, a header record to be inserted at the beginning of the data.
9. The service creates Unicode data using all entries in the list, if there is no list argument then zero length content is created.
10. The service determines if this Unicode data needs to be archived.
11. The service creates an HTTP response to return to the remote client.
The optional UAFILE and UAPATH keywords are available to inform the remote client program of a recommended path and filename for the content. LANSA Integrator UserAgent will add these file and path names to the save popup menu on the response panel.
Syntax:
|
Example
SEND ARCHIVE(/folder/file.csv)