Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Programming » HTTP web services » SQL Anywhere as an HTTP web server » How to develop web service applications in an HTTP web server

 

How to customize web pages

You must first evaluate the format of the web service invoked by the HTTP web server to customize your web pages. For example, web pages are formatted in HTML when the web service specifies the HTML type.

The RAW web service type provides the most customization because it requires that web service procedures and functions explicitly require coding to provide the required markup such as HTML or XML. The following tasks must be performed to customize web pages when using the RAW type:

  • Set the HTTP Content-Type header field to the appropriate MIME type, such as text/html, in the called stored procedure.

  • Apply appropriate markup for the MIME type when generating web page output from the called stored procedure.

 Example
 Setting the Content-Type header field
 Applying tagging conventions of the MIME-type
 See also