External Interfaces |
Programming with Web Services
Because the Internet is inherently unpredictable, make sure that you take proper precautions in programming with Web services. One way to minimize the risk is to use common program control and error-handling routines.
Common programming techniques that you might use include
try - catch
statement:
if
statement to cache the WSDL locally:
wsdlUrl = 'http://www.xmethods.net/sd/2001/TemperatureService.wsdl'; wsdlFile = 'TemperatureService.wsdl'; if ~(exist(wsdlFile,'file') == 2) urlwrite(wsdlUrl,wsdlFile); end
error
function used in an try - catch
statement:
For more information about program control and error-handling statements, see the MATLAB Programming documentation.
Understanding Web Service Limitations | Simple M-File Example |
© 1994-2005 The MathWorks, Inc.