incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Incubator Wiki] Update of "Synapse/SynapseXMLFormat" by PaulFremantle
Date Thu, 13 Apr 2006 10:29:55 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Incubator Wiki" for change notification.

The following page has been changed by PaulFremantle:
http://wiki.apache.org/incubator/Synapse/SynapseXMLFormat

New page:
This is an effort to simplify and clarify the synapse.xml format

{{{
<synapse>
  <define name="xxx>
    <mediator>....<mediator>
  </define>

  <registry class="org.some.class.implementing.Registry" location="url"/> <!-- exactly
one to start with -->

  <property name="x">el</property> * <!-- these properties are global to the
environment -->
	
  <rules> <!-- this defines the main mediator -->
	
    <import location="url"/> <!-- this looks up the XML at the location. The XML
must have a <rules> tag. Any children are imported here. -->
    <registryImport key="uri"/> <!-- this looks up the key in the registry and imports
the XML from the registry at this point -->
			
			
    <mediator class="x">
      <property name="x">el</property> ?
      <import /> ?
      <registryProperties key="uri"/> <!-- this looks up Properties in the registry
with the key and sets them onto the mediator -->
    </mediator>
			
    <!-- recommend deprecate service mediator -->
    <!-- recommend deprecate engage-addressing-in -->
			
    <useAddressingOut [version="uri"]/>
			
		<ref name="name"/> <!-- use the mediator defined above -->
			
			
		<in/>
                <out/>
<infault/><outfault/>
			
			<xpath-test expr="xxxx" xmlns:a="uri"/>
				
			</xpath-test>
			
			<xpath-value expr="xxxx" property="pname" xmlns:a="uri"/>
			
			<regexTest [to|from|action|replyto]="pattern"> (how do we check on generic properties)
			</regexTest>
			
			<setProperty="to|from|replyto|action" value="literal" registry="name" lookup="key" source-property="prop"/>
(how do we differentiate to and mc.setProperty("to")??
			
			<addHeader>element</addHeader>
			<removeHeader qname="a:b" xmlns:a="uri"/>
			
			
			
			<xslt location="my.xsl" target="body|envelope"/>  // add xsl extension to make context
properties available
			
			<script [src="xxx" language="yyy"]/>
			[CDATA]
			</script> 
			
			<fault version="soap11|soap12">
			 <code value="literal" | source-property=""/>
			 <reason>
			 <node>
			 <role>
			 <detail>
			</fault>
			
			<drop/> 
			
			<log level="simple|headers|full"/>
			
			<send/>
			
			<terminateRM>
				<predelivery>
				
				
				</predelivery>
				<deliver/>
			</terminateRM>
			
			<initiateRM [version="uri"] [key="xxx"] [terminateTimeout="xxx"] [closeTimeout="yyy"]/>
			
			<checkSignature/>
			<addSignature/>
			<decrypt/>
			<encrypt/>
			
			<authenticate/>
			
	</rules>
	
</synapse>

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message