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 ); |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |