The SEND command is used to create XML content to send back as a response to the remote HTTP client program.
When the SEND command of this service is executed the following steps occur:
1. The service determines if this Unicode data needs to be archived.
2. The service uses the value of the CONTENT keyword to determine the value of the HTTP protocol content-type.
a. If no content value is available, the handler defaults to application/xml
b. If the content value is *XML, then content type will be application/xml
c. If the content value is *TEXTXML, then content type will be text/xml
3. The service creates a 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.
To send a custom CORS response, use the SET PROPERTY command to set the HTTP response properties and use the SEND RESPONSE(*EMPTY) to return no content.
SEND UAFILE(order.xml) UACACHE(20)