Main Content

createClassFromWsdl

(Removed) Create MATLAB class based on WSDL document

createClassFromWsdl has been removed. Use matlab.wsdl.createWSDLClient instead. For more information, see Compatibility Considerations.

Description

createClassFromWsdl(source) creates a MATLAB® class based on the service name defined in source.

createClassFromWsdl creates a class folder, @servicename, in the current folder. The class folder contains:

  • A method file for each Web service operation.

  • A display method, display.m.

  • A constructor, servicename.m.

Input Arguments

collapse all

Web Services Description Language (WSDL) document, specified as a string. The name must include the location of the document, using one of the following:

  • URL

  • Full path

  • Relative path

Version History

Introduced before R2006a

collapse all

R2021b: createClassFromWsdl has been removed

The matlab.wsdl.createWSDLClient function replaces the createClassFromWsdl function to communicate with Web services from MATLAB using Web Services Description Language (WSDL). matlab.wsdl.createWSDLClient lets you specify additional information needed to access the WSDL document. For more information, see weboptions.

To get started using matlab.wsdl.createWSDLClient,

  1. Download supported versions of the Java® JDK™ and Apache® CXF programs. For more information, see Set Up WSDL Tools.

  2. Set the paths to these programs:

    matlab.wsdl.setWSDLToolPath('JDK',jdk,'CXF',cxf)

    where jdk is the path to the JDK installation and cxf is the path to the CXF program.

To update your code, consider this example. Suppose that there is a Web service with this URL:

url = 'https://examplesite.com/samplewebservice';

Replace the following call to createClassFromWsdl:

createClassFromWsdl(strcat(url,'?WSDL'))

with:

matlab.wsdl.createWSDLClient(url)

Note

matlab.wsdl.createWSDLClient does not support RPC-encoded WSDL documents.