Skip to Main Content Skip to Search
Product Documentation

Considerations When Using Web Services

XML-MATLAB Data Type Conversion Used in Web Services

MATLAB SOAP functions automatically convert XML data types used in SOAP messages to MATLAB types (classes), and vice-versa. The following table contains the XML type and the corresponding MATLAB type.

XML Data TypeMATLAB Type (Class) 

string

char array

boolean

logical scalar

decimal

double scalar

float

double scalar

double

double scalar

duration

double scalar

time

double scalar

date

double scalar

gYearMonth

char array

gYear

char array

gMonthDay

char array

hexbinary

double array

base64Binary

double array

anyURI

char array

QName

char array

Programming with Web Services

When creating MATLAB files that rely on Web services, consider the following:

Use common program control and error-handling routines to minimize the risks, such as:

For more information about program control and error-handling statements, see Error Reporting in a MATLAB Application.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS