如何使用Spring调用没有有效负载的SOAP web服务';s Web服务模板

如何使用Spring调用没有有效负载的SOAP web服务';s Web服务模板,spring,soap,spring-ws,Spring,Soap,Spring Ws,我需要调用一个没有有效负载的SOAP服务。在泛型代码中,我在@WebService类中看到了以下内容: @WebMethod(action = "invokeService") @WebResult(name = "MyResponse", targetNamespace = "urn:xyz.com", partName = "parameters") public MyResponse invokeService

我需要调用一个没有有效负载的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调用此服务。谢谢