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

SQL Anywhere 10.0.1 » QAnywhere » Mobile Web Services » Making web service requests

Making web service requests Next Page

Synchronous web service requests


Synchronous web service requests are used when the application is connected to a network. With this method, a web service request is made by calling a method on the service binding class, and the result is returned only when the web service response has been received from the server.

Example

The following example makes a request to get the USD-to-CAD exchange rate:

//C#
double r = service.ConversionRate( Currency.USD, Currency.CAD );

// Java
double r = service.conversionRate( NET.webserviceX.Currency.USD, NET.webserviceX.Currency.CAD );