callSoapService
向端点发送 SOAP(简单对象访问协议)消息
callSoapService
已删除。请改用 matlab.wsdl.createWSDLClient
。有关详细信息,请参阅兼容性考虑。
说明
在 response
= callSoapService(endpoint
,soapAction
,message
)endpoint
将 message
发送给 soapAction
服务。
输入参数
endpoint
— 标识内置 HTTP 服务的 URL
字符串
标识内置 HTTP 服务的 URL,指定为字符串。
soapAction
— 服务名称
字符串
服务名称,指定为字符串。
message
— Java® 文档对象模型 (DOM)
字符串
Java 文档对象模型 (DOM),指定为字符串。
输出参数
response
— soapAction
的结果
字符串
soapAction
的结果,以字符串形式返回。
版本历史记录
在 R2006a 之前推出R2021b: callSoapService
已删除
考虑使用 matlab.wsdl.createWSDLClient
函数,而不是 callSoapService
。callSoapService
函数没有直接的取代函数,但当您创建 WSDL 接口时,您可以访问 Web 服务功能。
要开始使用 matlab.wsdl.createWSDLClient
,请执行下列步骤:
下载 Java JDK™ 和 Apache® CXF 程序的受支持版本。有关详细信息,请参阅Set Up WSDL Tools。
设置这些程序的路径:
matlab.wsdl.setWSDLToolPath('JDK',jdk,'CXF',cxf)
其中,
jdk
是 JDK 安装的路径,cxf
是 CXF 程序的路径。为位于
url
的服务创建接口。matlab.wsdl.createWSDLClient(url)
注意
matlab.wsdl.createWSDLClient
不支持 RPC 编码的 WSDL 文档。
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)