首页 > 解决方案 > (Wso2 Api Manager 2.6.0)如何使用调解器发送字符串列表作为输入?

问题描述

(Wso2 Api Manager 2.6.0)如何使用调解器发送字符串列表作为输入?

我有一个 Api,我的 api 有一个输入字符串列表。我的 api 是肥皂。我认为中介可以帮助我。我想要这个 api 的中介。

例如这是我的输入:

  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:GetData>
         <!--Optional:-->
         <tem:value>
            <!--Zero or more repetitions:-->
            <arr:string>a</arr:string>
             <arr:string>s</arr:string>
            <arr:string>f</arr:string>

         </tem:value>
      </tem:GetData>
   </soapenv:Body>
</soapenv:Envelope>

这是我的输出

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <GetDataResponse xmlns="http://tempuri.org/">
         <GetDataResult>You entered:   a  s  f</GetDataResult>
      </GetDataResponse>
   </s:Body>
</s:Envelope>

标签: apiwso2mediatorapi-manager

解决方案


推荐阅读