如何使用 Spring 的 WebServiceTemplate 调用没有有效负载的 SOAP Web 服务

问题描述

我需要调用一个没有负载的 SOAP 服务。在生成代码中,我在@WebService 类中看到以下内容

@WebMethod(action = "invokeService")
@WebResult(name = "MyResponse",targetNamespace = "urn:xyz.com",partName = "parameters")
public MyResponse invokeService()

我在 wsdl 中看到了这一点:

<wsdl:message name="myResponse">
<wsdl:part name="parameters" element="xsns:MyResponse" xmlns:xsns="urn:xyz.com"/></wsdl:message>

我没有看到如何使用 webservicetemplate 调用此服务。谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)