CONTENT

LANSA Integrator

CONTENT

The optional keyword CONTENT is used by HTTP services to control the type of content being accepted or the content type being sent.

It is highly recommended not to use the CONTENT keyword and accept the default value.

All HTTP services and content handlers are expecting a particular content type, if content is being received and its content type does not match the content, then use the CONTENT keyword to tell the service to accept the content if the content type matches the keyword value.

Some Outbound services and content handlers use the CONTENT keyword to specify the type of content to be created. The SEND command available with HTTPInboundSVService service and InboundSeparatedValue handler use the CONTENT keyword to direct the service to create CSV or TSV content.

A CONTENT keyword value of *ANY allows the service or content handler to receive content with any content type.

It is recommended to use the short cut names for the content keyword value.

*XML

application/xml

*TEXTXML

text/xml

*TEXTPLAIN

text/plain

*SOAP

application/soap+xml

*HTML

text/html

*XHTML

application/xhtml+xml

*CSV

application/comma-separated-values

*TEXTCSV

text/ x-comma-separated-values

*TSV

application/comma-separated-values

*TEXTTSV

text/ x-tab-separated-values

*X12

application/edi-x12

*EDIFACT

application/edifact

*STREAM

application/octet-stream

*PDF

application/pdf

*ZIP

application/zip

*JSON

application/json

*EXCEL

application/vnd.ms-excel

*CRL

application/pkix-crl

*GIF

image/gif

*PNG

image/png

*JPEG

image/jpeg

*SVG

image/svg+xml

*MPEG

audio/mpeg

*MPEG4

video/mpeg4

 

 Example

 

SERVICE_LOAD SERVICE(HTTPInboundXMLService) CONTENT(*HTML)

 

SERVICE_LOAD SERVICE(HTTPInboundXMLService) CONTENT(*ANY)