任何人都可以在下面的XML代码中解释消息中介是如何发生的吗?像主要序列一样,代理服务顺序是什么,头部调解员在这里做什么等等。为什么在某些情况下endpoint
在代理服务中按顺序定义?
什么是代理服务的参数以及如何使用developer Studio调用序列?
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://ws.apache.org/ns/synapse">
<registry provider="org.wso2.carbon.mediation.registry.ESBRegistry">
<parameter name="localRegistry">/</parameter>
<parameter name="cachableDuration">15000</parameter>
</registry>
<proxy name="CreditCardPaymentService"
transports="https http"
startOnLoad="true"
trace="disable">
<description/>
<target>
<inSequence>
<property xmlns:xsd="http://ccps.services.esb.wso2.packt.com/xsd"
xmlns:m0="http://ccps.services.esb.wso2.packt.com"
name="symbol"
expression="//m0:doPayment/m0:paymentInfo/xsd:cardType"
scope="default"
type="STRING"/>
<property xmlns:xsd="http://ccps.services.esb.wso2.packt.com/xsd"
xmlns:m0="http://ccps.services.esb.wso2.packt.com"
name="filepath"
expression="fn:concat('file:./repository/', //m0:doPayment/m0:paymentInfo/xsd:cardType)"/>
<property name="EPR"
expression="get-property('registry',$ctx:filepath)"
type="STRING"
pattern="<value>(.+?)</value>"
group="1"/>
<header name="To" expression="get-property('EPR')"/>
<sequence key="{$ctx:symbol}"/>
<send/>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
<publishWSDL>
...............................
</publishWSDL>
</proxy>
<sequence name="VISA">
<payloadFactory>
<format>
.....
</format>
<args>
.....
</args>
</payloadFactory>
</sequence>
<sequence name="fault">
<log level="full">
<property name="MESSAGE" value="Executing default 'fault' sequence"/>
<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
</log>
<drop/>
</sequence>
<sequence name="AMEX">
<payloadFactory>
<format>
.....
</format>
<args>
......
</args>
</payloadFactory>
</sequence>
<sequence name="main">
<in>
<log level="full"/>
<filter source="get-property('To')" regex="http://localhost:9000.*">
<send/>
</filter>
</in>
<out>
<send/>
</out>
<description>The main sequence for the message mediation</description>
</sequence>
</definitions>
如果有人调用您的CreditCardPaymentService代理服务,代理中的消息流命中inSequence,则: