Create a Web service to facilitate data transfer with SOAP or HTTP.
Database Version | Web Service Privileges |
---|---|
SAP Sybase IQ 15.3 and 15.4 | Requires DBA authority. |
SAP Sybase IQ 16.0 | Requires MANAGE ANY WEB SERVICE system privilege. |
In a multiplex configuration, the coordinator node is running.
Option | Description |
---|---|
Select a resource for which the web service will be created | From the list, select the resource for which the Web service will be created. |
(Multiplex only) Select a multiplex server on which to we service will be created? | From the list, select the multiplex server on which the Web service will be created. |
SCC agent status | The SCC agent for the multiplex server must be registered and authenticated in order to create a Web service on it. If the SCC Agent status indicates unregistered, click the Register Agent and Authenticate Agent buttons to register and authenticate. |
What do you want to name the new web service? | Enter a unique name for the new procedure; maximum of 128 characters. The Web service name must not begin or end with a slash (/) or contain two or more consecutive slashes. |
Option | Description |
---|---|
Which type of web service do you want to create?` | From the list, select the Web service type. Valid values are:
|
Do you want this web service to be enabled. | Select to enable the Web service. |
Option | Description |
---|---|
Off | The remainder of the URL path is not permitted. e.g. http://<host-name>/<service-name> |
On | The remainder of the URL path is permitted and is set as a single parameter. e.g. http://<host-name>/<service-name>/aaa/bbb/ccc url=aaa/bbb/ccc |
Elements | The remainder of the URL path is permitted and is set as multiple parameters. e.g. http://<host-name>/<service-name>/aaa/bbb/ccc url1=aaa, url2=bbb, url3=ccc |
Format | Description |
---|---|
Default | This format is equivalent to .NET in all cases except for SOAP services that are handled by a DISH service. In such cases, the DISH service's format is used instead of the SOAP service's format. |
.NET | This format is used for .NET clients that can accept Microsoft's Dataset format. This is useful to SOAP clients developed with Microsoft and Microsoft-compatible tools. |
Concrete |
This is a generic format used by SOAP toolkits such as JAX-RPC (JAVA) to generate interfaces that correlate to a result set returned by SQL Anywhere. Select Expose an explicit response object for this web service to have this web service expose an explicit response object if the service calls a procedure that returns a result set. The XML schema of this object will contain column names and data types based on the result set. |
XML | This is the most compatible format; it simply returns the result set as a string. Clients will need to parse this string to access the various elements within it. |
Behavior | Description |
---|---|
Off | This is the default behavior. No data typing of inputs and outputs (DNET is String only). Equivalent to the behavior in SQL Anywhere version 9.0.x. |
On | Supports data typing for input parameters and result set responses. |
In | Supports data typing for input parameters only. XML and CONCRETE formats contain no type information; DNET is String only. |
Out | Supports data typing for result set responses of all SOAP service formats; input parameters are Strings only. |
Method | Description |
---|---|
HEAD | Retrieve information written in a response header. |
GET | Request a response |
POST | Submit data to be processed by a resource |
PUT | Upload a resource |
DELETE | Remove a resource |
Option | Description |
---|---|
Require authentication for this web service | Select if authentication is required to execute the Web service. |
User | If user authentication is required, select a user from the list. |
Defining an SQL command is optional for Raw, XML, HTML or JSON service types. You must select the This web service has the following SQL statement option before you can enter the SQL command. For SOAP or DISH service types, the This web service has the following SQL statement option is unavailable since defining an SQL command is mandatory.
Services without statements cause serious security risk because they permit Web clients to execute arbitrary commands. When creating services without statements, you must enable authorization, which forces all clients to provide a valid user name and password. Sybase recommends that all production systems define statements in their services.
In a non-production environment, you can create services that do not include statements. Services configured in this way can be useful when you are testing a service, or want a general way to access information. Either omit the statement entirely or use the phrase NULL in place of the statement.