如何在wso2 esb(4.6.0)中添加身份验证到我的代理服务(get),请任何人帮助我的过程,我找不到更多关于这一点



以下是代理服务和序列…如果我使用空curl命令运行,则显示get服务的数据,因此我想验证该数据

 <proxy xmlns="http://ws.apache.org/ns/synapse" name="Get_meter_Mobile" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
   <target>
      <inSequence onError="fault">
         <property name="CONTENT_TYPE" value="application/json" scope="axis2" type="STRING"/>
         <property name="HTTP_METHOD" value="POST" scope="axis2" type="STRING"/>
         <payloadFactory>
            <format>
               <mmeter xmlns=""/>
            </format>
         </payloadFactory>
         <send receive="Get_meter_Mobile_seq">
            <endpoint>
               <address uri="http://localhost:9764/services/meter_DataService/" format="soap11"/>
            </endpoint>
         </send>
         <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')" scope="axis2" type="STRING"/>
         <property name="ERROR_CODE" expression="get-property('ERROR_CODE')" scope="axis2" type="STRING"/>
         <log level="full"/>
         <property name="FORCE_ERROR_ON_SOAP_FAULT" value="true" scope="default" type="STRING"/>
      </inSequence>
      <outSequence>
         <property name="CONTENT_TYPE" value="application/json" scope="axis2"/>
         <log level="full"/>
         <send/>
      </outSequence>
   </target>
   <description></description>
</proxy>

您可以通过对代理服务应用POX安全性来实现这一点。博客文章[1]将向您展示要遵循的步骤。

[1]。http://evanthika.blogspot.com/2012/12/pox-security-with-wso2-esb-proxy.html

谢谢你,Dharshana .

最新更新