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

I want to configure static form-data and x-www-form-urlencoded parameters in the body of a request usin

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>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742384407a4433762.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信