Main Content

matlab.wsdl.setWSDLToolPath

Location of WSDL tools

Description

example

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 preferences.

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)
p = matlab.wsdl.setWSDLToolPath;
if (isempty(p.JDK) || isempty(p.CXF))
    disp('Install the Java Development Kit (JDK) and Apache CXF programs.')
    disp('See the Set Up WSDL Tools example link at the end of this page.')
else
    disp('Paths set to:')
    matlab.wsdl.setWSDLToolPath
end

Input Arguments

collapse all

Name-Value Arguments

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: 'CXF','C:\apache-cxf-3.4.2'

Path to Java Development Kit (JDK) software, specified as a string or a character vector. Download the software from https://adoptopenjdk.net/. Choose OpenJDK™ 8 (Hot Spot).

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 software from https://cxf.apache.org/download and choose the latest release of 3.4.2.

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

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