最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

xml - how to set static form-data and x-www-form-urlencoded parameters in body of a request in wso2 api manager - Stack Overflow

programmeradmin0浏览0评论

I want to configure static form-data and x-www-form-urlencoded parameters in the body of a request using wso2 api manager .

I used the following configs but they didn't work .

thank you in advance for your help !

I used the following configs but they didn't work . first :

<sequence xmlns="; name="main">    
    <payloadFactory description="transform" media-type="xml">
      <format>
            client_id=$1&
            client_secret=$2&
            grant_type=$3&
            username=$4&
            password=$5                     
        </format>
      <args>                  
         <arg evaluator="xml" value="client_id"/>
         <arg evaluator="xml" value="client_secret"/>         
         <arg evaluator="xml" value="grant_type"/>
         <arg evaluator="xml" value="username"/>
         <arg evaluator="xml" value="password"/>
      </args>       
    </payloadFactory>           
</sequence>

and second :

<sequence xmlns="; name="main">
    <payloadFactory media-type="xml">
      <format>
          <text xmlns=";>username=username&amp;password=password&amp;grant_type=grant_type</text>
      </format>
      <args/>
    </payloadFactory> 
</sequence>
发布评论

评论列表(0)

  1. 暂无评论