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.
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 );
|Envoyer votre avis sur cette page par email.||Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|