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

SQL Anywhere 12.0.0 » SQL Anywhere Server - Programming » HTTP web services » Using SQL Anywhere as an HTTP web server » Developing web service applications in an HTTP web server


Customizing 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. For more information on supported web service types, see Choosing a web service 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.

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