Main Content

createSoapMessage

(Removed) Create SOAP (Simple Object Access Protocol) message to send to server

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

Description

message = createSoapMessage(namespace,method,values,names,types) creates a SOAP message.

message = createSoapMessage(namespace,method,values,names,types,style) creates message with specified style.

Input Arguments

collapse all

Location of Web service, specified as a string in the form of a valid Uniform Resource Identifier (URI).

Name of Web service operation, specified as a string.

Input arguments for method, specified as a cell array.

Parameter for method, specified as a cell array.

XML data types for values, specified as a cell array.

Style for structuring the SOAP message, specified as one of these values. Use a style supported by the service specified in namespace.

'rpc'

Remote Procedure Call (RPC) encoding

'document'

Document-style encoding

Output Arguments

collapse all

Java document object model (DOM), returned as a string.

Version History

Introduced before R2006a

collapse all

R2021b: createSoapMessage has been removed

Consider using the matlab.wsdl.createWSDLClient function instead of createSoapMessage. There is no direct function replacement for the createSoapMessage function, but when you create a WSDL interface, you have access to the Web service functionality.

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

  3. Create the interface to the service located at url.

    matlab.wsdl.createWSDLClient(url)

Note

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