sp_webservices

Creates and manages the proxy tables used in the SAP ASE Web Services Engine.

Syntax

To create a proxy table:
sp_webservices 'add', 'wsdl_uri' [, sds_name] 
	[, 'method_name=proxy_table
	 [,method_name=proxy_table ]* ' ]
To display usage information for sp_webservices:
sp_webservices help [, ’option’]
To list the proxy tables mapped to a WSDL file:
sp_webservices 'list' [, 'wsdl_uri'] [, sds_name]
To modify timeout setting:
sp_webservices 'modify', 'wsdl_uri', 'timeout=time'
To remove proxy tables mapped to a WSDL file:
sp_webservices 'remove', 'wsdl_uri' [, sds_name]
Options for User-Defined Web Services:
  • To create a database alias for user-defined Web services:
    sp_webservices 'addalias' alias_name , database_name
  • To deploy a user-defined Web service:
    sp_webservices 'deploy', ['all' | 'service_name']
  • To drop a database alias in user-defined Web services:
    sp_webservices 'dropalias' alias_name
  • To list the proxy tables mapped to a WSDL file in user-defined Web services:
    sp_webservices 'listudws' [, 'service_name']
  • To list a database alias or aliases for a user-defined Web service.
    sp_webservices 'listalias'
  • To undeploy a user-defined Web service:
    sp_webservices 'undeploy', ['all' | 'service_name']

Parameters

Examples

Usage

If you not specify method_name and proxy_table values for a Web method, the proxy table generated for the Web method is, by default, the name of the Web method specified in the WSDL file. If there is already a proxy table with the name of this Web method, a new proxy table is generated with a name like:

method_nameN

Where:

  • method_name – is the default proxy table name

  • N – is a digit from 1 to 9 denoting each successive mapping of the Web method. There can be as many as 99 duplicate proxy tables.

If you do specify method_name and proxy_table values for a Web method, the name of the proxy table must be new. If there is already a proxy table with the name specified in proxy_table, an error results, and none of the Web methods specified in the add option are mapped to proxy tables.

The output from the add option lists the methods that have been successfully mapped to proxy tables as well as those that have not been mapped. The name of a proxy table for an unmapped Web method is indicated as NULL in the output from the add option.

Note: The columns used for input and output vary for proxy tables generated for RPC/encoded Web methods and document/literal Web methods. A proxy table representing an RPC/encoded Web method contains a column for each input and output parameter. A proxy table representing a document/literal Web method contains two columns, _inxml and outxml.
See also:
  • create service in Reference Manual: Commands

  • Web Services User’s Guide

Permissions

You must be a user with webservices_role (for deploy and undeploy) to execute sp_webservices. Permission checks do not differ based on the granular permissions settings.

The system role webservices_role is required to use the deploy and undeploy options for sp_webservices. To execute a user-defined Web service, a valid login and permissions to execute the corresponding stored procedure are required.

To create, drop, and execute user-defined Web services, you need the same privileges as are necessary to create, drop, and execute stored procedures in SAP ASE. See the System Administration Guide for details on how to set the proper privileges using the grant and revoke commands.

Auditing

  • Audit event number 110 corresponds to the deploy option of sp_webservices.

  • Audit event number 111 corresponds to the undeploy option of sp_webservices.

User-defined Web services are modeled as stored procedures within SAP ASE. In manipulating user-defined Web services, SAP ASE generates the following events using the existing auditing coverage for stored procedures:

  • The creation of a user-defined Web service – Event 11 named "Create Procedure" is generated

  • The dropping of a user-defined Web service – Event 28 named "Drop Procedure" is generated

  • The execution of a user-defined Web service – Event 38 named "Execution of Stored Procedure" is generated

For detailed information on existing auditing functionality, see the System Administration Guide.

In addition to existing auditing functionality, SAP ASE provides two audit events for the deploy and undeploy options of sp_webservices.

Audit records are stored in the sysaudits system table. You can enable auditing for Web services with the following command:
sp_audit "security", "all", "all", "on"