Setting MIME type at runtime

Override the GWS default media format for messages.

If the MIME type is not set by the WSMedia attribute, you can specify the format at runtime by calling the REST service engine option with either JSON or XML, or both. For example:
com.WebServiceEngine.SetOption("server_restdefaultformat","xml")
com.WebServiceEngine.SetOption("server_restdefaultformat","both")