1

这些是下面的代理服务和序列...如果我使用空 curl 命令运行,则显示获取服务的数据,以便我想验证该数据

 <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>
4

1 回答 1

0

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

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

谢谢你,达沙那。

于 2013-03-21T01:03:03.060 回答