주요 콘텐츠

matlab.wsdl.setWSDLToolPath

(To be removed) Location of WSDL tools

matlab.wsdl.setWSDLToolPath will be removed in a future release. Use the MATLAB® RESTful functions (webread and webwrite) or the MATLAB HTTP interface instead. For information about this interface, see Call Web Services from MATLAB Using HTTP. (since R2025b)

Description

matlab.wsdl.setWSDLToolPath(Name,Value) sets the paths to Java® JDK™ and Apache® CXF software. You must download these tools to use the matlab.wsdl.createWSDLClient interface.

Specify values for both Name arguments 'JDK' and 'CXF' before calling matlab.wsdl.createWSDLClient. The values are saved across sessions in your user settings.

example

paths = matlab.wsdl.setWSDLToolPath displays paths to the JDK and CXF software.

Examples

collapse all

Set jdk and cxf to valid paths on your system. For example,

jdk = 'E:/Program Files/win64/jdk';
cxf = 'c:\apache-cxf-3.4.2'
matlab.wsdl.setWSDLToolPath('JDK',jdk,'CXF',cxf)

Name-Value Arguments

collapse all

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: matlab.wsdl.setWSDLToolPath('CXF','C:\apache-cxf-4.1.3')

Path to Java Development Kit (JDK) software, specified as a string or a character vector. Download the software from https://adoptium.net/.

Example: 'E:/Program Files/win64/jdk'

Path to Apache CXF software, specified as a string or a character vector. CXF is an open-source services framework. Download the latest version of the software from https://cxf.apache.org/download.

Example: 'C:\apache-cxf-4.1.3'

Output Arguments

collapse all

Tool paths, returned as a structure with the fields:

Path to Java JDK software, specified as a character vector. If the value of JDK is empty, you cannot call matlab.wsdl.createWSDLClient.

Path to Apache CXF software, specified as a character vector. If the value of CXF is empty, you cannot call matlab.wsdl.createWSDLClient.

Version History

Introduced in R2014b

expand all