soap 消息请求中的方法名称

Method name in soap message request

我有一个有趣的问题,我正在使用 SOAP UI 来解析 WSDL。来自 payPal

的 WSDL
https://developer.paypal.com/docs/classic/api/PayPalSOAPAPIArchitecture/

当我尝试在 SOAP UI 中加载它时,所有方法名称都已创建,这很好,但是当我查看消息时,树视图中的方法名称是 BillOutstandingAmount 但是当我打开请求时

 <soapenv:Body>
  <urn:BillOutstandingAmountReq>
   ....
  </urn:BillOutstandingAmountReq>
</soapenv:Body>

如何更改SOAP请求中的方法名。?有没有注释可以这样做?当我查看 WSDL 时,

<wsdl:message name="BillOutstandingAmountRequest">
 <wsdl:part name="BillOutstandingAmountRequest" element="ns:BillOutstandingAmountReq"/>
</wsdl:message>

WSDL的操作部分

<wsdl:operation name="BillOutstandingAmount">
 <wsdl:input message="ns:BillOutstandingAmountRequest"/>
 <wsdl:output message="ns:BillOutstandingAmountResponse"/>
</wsdl:operation>

几个小时后我找到了答案

@RequestWrapper(localName="localRequestName")

无论我们在注释 localName 中给出什么,都将是 SOAP 请求方法名称。