Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 6 HTTP Palette : HTTP Receiver

HTTP Receiver
Process Starter
Starts a process based on the receipt of a HTTP request.
Configuration
The Configuration tab has the following fields.
The HTTP Connection resource describes the characteristics of the connection used to receive incoming HTTP requests.
See HTTP Connection for more information about specifying shared resources.
Note: In the case of an incoming GET request, there is no message body, so this field has no effect on incoming GET requests.
Note: Specifying parameters in this field parses the query string of the request into the output schema, regardless of whether the Parse Post Method Data field is checked. Checking the Parse Post Method Data field and specifying parameters here is required to parse the message body along with the query string of the request.
Advanced
The Advanced tab contains the following fields:
Note: This option is not intended to be used with the Parse Post Method Data option on the Configuration tab. When Write to File is specified, the PostData output element becomes a choice element containing either the output FileName or the PostData depending upon whether the data exceeds the size specified in the Threshold Size field. It is recommended to use either the Write to File option or the Parse Post Method data option, but not both at the same time.
Note: Once written, the files created by using this option are not deleted automatically. You must manage the storage used by these files and delete them when they are no longer used.
Misc
The Misc tab contains the following fields:
See TIBCO ActiveMatrix BusinessWorks Process Design for more information about controlling the execution order of process instances and about XPath expressions.
Special Characters in HTTP Requests
Depending upon the content type of the data for the request, the request can contain URL-encoded data and the server is expected to decode the data. For example, an incoming request may have the following message body:
 
name=John%20Smith&address=500%201%2F2%20Main%20Street
If the message body is not parsed (Parse Post Method Data is unchecked on the Configuration tab), the body of the message remains URL-encoded in the PostData output element. If the message body is parsed, the data is decoded before being placed into the PostData output element, and that element would appear as follows:
 
name=John Smith&address=500 1/2 Main Street
Because the PostData output element can contain different data and be a different length depending upon whether the message body is parsed, it is recommended that you obtain data from the parameters output element when the message body is parsed.
See http://www.rfc-editor.org/rfc/rfc1738.txt for more information about the URL specification.
Output Headers
The Output Headers tab describes the data structure for the headers of the HTTP request. You can use the default structure, or you can alter the structure, if the incoming request has a specific data structure for the header of the request. This tab uses the mechanism described in Appendix A, Specifying Data Schema to specify the data structure for the headers. See that appendix for more information about creating a customized data structure.
Header structure is defined by the HTTP protocol. See the HTTP Protocol specification for more information about the fields and content of the header of a HTTP request. You can obtain this specification at www.w3.org.
The default header fields are the following.
This field specifies the content-coding values that are acceptable for response messages. For example, compress, gzip. See the HTTP specification for more information about this header field.
This field indicates the media type of the entity body sent to the receiver. For example, text/html; charset=ISO-8850-4. Media types are described in the HTTP specification.
This field allows the requestor to specify options desired for this connection. For example, the option close specifies that the requestor would like the connection to be closed when the request is complete.
Output
The output for the activity is the following.
"The header [ headerName ] is defined as non-Repeating Header in Input Headers. This header cannot have multiple occurences in DynamicHeaders."
content-disposition — To suggest a filename for an attachment, use "*;filename=<filename>" in this element. Note: HTTP servers may alter or choose to ignore the suggested name.
See http://www.faqs.org/rfcs/rfc2045.html for more information about MIME headers and their syntax.
Note: When the content type is specified as "text/*" (for example, "text/xml"), the attachment content is expected to be in either the textContent input element or the file name storing the attachment is expected to be in the fileName input element. When the content type is anything other than "text/*", the attachment content is expected to be in either the binaryContent input element or the file name storing the attachment is expected to be in the fileName input element.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved