In the Enterprise Explorer, you can map a Web service definition to one or more proxy tables in an Adaptive Server Enterprise database, then use the proxy tables to define queries and SELECT statements. You can also use proxy tables that have already been defined in the database.
This feature uses the Web Services Consumer component in Adaptive Server 12.5.x and later.
The Web Services as Tables folder at the top level of an Adaptive Server Enterprise connection profile in the Enterprise Explorer view displays all proxy tables that have been mapped from Web service definitions in the current database. From the pop-up menu, you can map a new Web service to one or more proxy tables and refresh the view of proxy tables in the database.
In the Select WSDL dialog, select From URL.
Enter http://www.xmethods.net/sd/2001/TemperatureService.wsdl and click OK.
The proxy table is added to the Web Services as Tables folder.
To use the proxy table in a query:
From the SQL File Editor toolbar, click the Select statement toolbar button.
Select "getTemp" from the Select Tables dialog.
Select "Return" in the table displayed in the Table Layout view.
In the Where view, define a condition with "_zipcode" on the left side (Column) and enter a value such as 80303 on the right side (value).
Click the Execute toolbar button to execute the query.
There are some restrictions on the use of proxy tables in defining queries and SQL statements. For a complete description of the restrictions that apply to the use of proxy tables, see the Web Services User's Guide in the Adaptive Server Enterprise documentation set included with Sybase WorkSpace.