You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by ru...@apache.org on 2007/03/01 13:35:15 UTC

svn commit: r513295 - in /webservices/synapse/trunk/java: modules/core/src/main/java/org/apache/synapse/config/xml/ modules/core/src/main/java/org/apache/synapse/core/axis2/ repository/conf/sample/ src/site/resources/

Author: ruwan
Date: Thu Mar  1 04:35:14 2007
New Revision: 513295

URL: http://svn.apache.org/viewvc?view=rev&rev=513295
Log:
samples and documents updated acording to the new proxy behaviour and config

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyServiceMessageReceiver.java
    webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml
    webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_101.xml
    webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_102.xml
    webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_103.xml
    webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_104.xml
    webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_105.xml
    webservices/synapse/trunk/java/src/site/resources/Synapse_Configuration_Language.html
    webservices/synapse/trunk/java/src/site/resources/Synapse_Samples.html

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java?view=diff&rev=513295&r1=513294&r2=513295
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java Thu Mar  1 04:35:14 2007
@@ -133,14 +133,17 @@
         OMElement target = elem.getFirstChildWithName(
                 new QName(Constants.SYNAPSE_NAMESPACE, "target"));
         if (target != null) {
+            boolean isTargetOk = false;
             SequenceMediatorFactory mediatorFactory = new SequenceMediatorFactory();
             OMAttribute inSequence = target.getAttribute(new QName(Constants.NULL_NAMESPACE, "inSequence"));
             if (inSequence != null) {
                 proxy.setTargetInSequence(inSequence.getAttributeValue());
+                isTargetOk = true;
             } else {
                 OMElement inSequenceElement = target.getFirstChildWithName(new QName(Constants.SYNAPSE_NAMESPACE, "inSequence"));
                 if (inSequenceElement != null) {
                     proxy.setTargetInLineInSequence(mediatorFactory.createAnonymousSequence(inSequenceElement));
+                    isTargetOk = true;
                 }
             }
             OMAttribute outSequence = target.getAttribute(new QName(Constants.NULL_NAMESPACE, "outSequence"));
@@ -164,12 +167,19 @@
             OMAttribute tgtEndpt = target.getAttribute(new QName(Constants.NULL_NAMESPACE, "endpoint"));
             if (tgtEndpt != null) {
                 proxy.setTargetEndpoint(tgtEndpt.getAttributeValue());
+                isTargetOk = true;
             } else {
                 OMElement endpointElement = target.getFirstChildWithName(new QName(Constants.SYNAPSE_NAMESPACE, "endpoint"));
                 if (endpointElement != null) {
                     proxy.setTargetInLineEndpoint(EndpointFactory.createEndpoint(endpointElement, true));
+                    isTargetOk = true;
                 }
             }
+            if(!isTargetOk) {
+                handleException("Target of the proxy service must declare either an inSequence or endpoint or both");
+            }
+        } else {
+            handleException("Target is required for a Proxy service definition");
         }
 
         // read the WSDL, Schemas and Policies and set to the proxy service

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyServiceMessageReceiver.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyServiceMessageReceiver.java?view=diff&rev=513295&r1=513294&r2=513295
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyServiceMessageReceiver.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyServiceMessageReceiver.java Thu Mar  1 04:35:14 2007
@@ -108,16 +108,6 @@
                 Axis2FlexibleMEPClient.send(proxy.getTargetInLineEndpoint(), synCtx);
             }
 
-            // if neither the in sequence nor endpoint is specified send the message using the implicit parameters
-            if (proxy.getTargetInSequence() == null && proxy.getTargetInLineInSequence() == null
-                    && proxy.getTargetEndpoint() == null && proxy.getTargetInLineEndpoint() == null) {
-
-                org.apache.axis2.context.MessageContext messageContext
-                        = ((Axis2MessageContext) synCtx).getAxis2MessageContext();
-                AxisEngine ae = new AxisEngine(messageContext.getConfigurationContext());
-                ae.send(messageContext);
-
-            }
         } else {
             log.error("Proxy Service with the name " + name + " does not exists - [Message dropped]");
             throw new AxisFault("Proxy Service with the name " + name + " does not exists");

Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml?view=diff&rev=513295&r1=513294&r2=513295
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml Thu Mar  1 04:35:14 2007
@@ -23,25 +23,21 @@
      hosted on Synapse based on the given WSDL and exposed over all available
      transports for Synapse. If a proxy service should be exposed over only a sub set
      of the available transports, use the transports attribute -->
-    <definitions>
-        <set-property name="proxy_wsdl" src="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
-    </definitions>
 
     <proxies>
         <proxy name="StockQuoteProxy">
-            <wsdl key="proxy_wsdl"/>
+            <target>
+                <endpoint address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+            </target>
+            <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
         </proxy>
     </proxies>
 
     <rules>
-        <in>
-            <send>
-                <endpoint address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
-            </send>
-        </in>
-        <out>
-            <send/>
-        </out>
+        <log>
+            <property name="position" value="Main rules In mediator"/>
+        </log>
+        <send/>
     </rules>
 
 </synapse>

Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_101.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_101.xml?view=diff&rev=513295&r1=513294&r2=513295
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_101.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_101.xml Thu Mar  1 04:35:14 2007
@@ -40,7 +40,7 @@
         </proxy>
 
         <proxy name="StockQuoteProxy2">
-            <wsdl key="proxy_wsdl"/>
+            <publishWSDL key="proxy_wsdl"/>
             <target endpoint="proxy_2_endpoint"/>
         </proxy>
     </proxies>

Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_102.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_102.xml?view=diff&rev=513295&r1=513294&r2=513295
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_102.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_102.xml Thu Mar  1 04:35:14 2007
@@ -29,9 +29,17 @@
 
     <proxies>
         <proxy name="StockQuoteProxy">
-            <wsdl key="proxy_wsdl"/>
+            <target>
+                <inSequence>
+                    <header name="wsse:Security" action="remove"
+                            xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
+                    <send>
+                        <endpoint address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+                    </send>
+                </inSequence>
+            </target>
+            <publishWSDL key="proxy_wsdl"/>
             <policy key="sec_policy"/>
-            <enableSec/>
         </proxy>
     </proxies>
 

Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_103.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_103.xml?view=diff&rev=513295&r1=513294&r2=513295
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_103.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_103.xml Thu Mar  1 04:35:14 2007
@@ -29,9 +29,17 @@
 
     <proxies>
         <proxy name="StockQuoteProxy">
-            <wsdl key="proxy_wsdl"/>
+            <target>
+                <inSequence>
+                    <header name="wsse:Security" action="remove"
+                            xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
+                    <send>
+                        <endpoint address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/>
+                    </send>
+                </inSequence>
+            </target>
+            <publishWSDL key="proxy_wsdl"/>
             <policy key="sec_policy"/>
-            <enableSec/>
         </proxy>
     </proxies>
 

Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_104.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_104.xml?view=diff&rev=513295&r1=513294&r2=513295
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_104.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_104.xml Thu Mar  1 04:35:14 2007
@@ -40,7 +40,7 @@
 
     <proxies>
         <proxy name="StockQuoteProxy">
-            <wsdl key="proxy_wsdl"/>
+            <publishWSDL key="proxy_wsdl"/>
             <target inSequence="proxy_in" outSequence="proxy_out"/>
         </proxy>
     </proxies>

Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_105.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_105.xml?view=diff&rev=513295&r1=513294&r2=513295
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_105.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_105.xml Thu Mar  1 04:35:14 2007
@@ -57,11 +57,11 @@
     <proxies>
         <proxy name="JMSFileUploadProxy" transports="jms">
             <target inSequence="mtom_proxy"/>
-            <property name="transport.jms.Wrapper" value="{http://services.samples/xsd}element"/>
+            <parameter name="transport.jms.Wrapper">{http://services.samples/xsd}element</parameter>
         </proxy>
         <proxy name="JMSTextProxy" transports="jms">
             <target inSequence="text_proxy"/>
-            <property name="transport.jms.Wrapper" value="{http://services.samples/xsd}text"/>
+            <parameter name="transport.jms.Wrapper">{http://services.samples/xsd}text</parameter>
         </proxy>
         <proxy name="JMSPoxProxy" transports="jms">
             <target inSequence="pox_proxy"/>

Modified: webservices/synapse/trunk/java/src/site/resources/Synapse_Configuration_Language.html
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/src/site/resources/Synapse_Configuration_Language.html?view=diff&rev=513295&r1=513294&r2=513295
==============================================================================
--- webservices/synapse/trunk/java/src/site/resources/Synapse_Configuration_Language.html (original)
+++ webservices/synapse/trunk/java/src/site/resources/Synapse_Configuration_Language.html Thu Mar  1 04:35:14 2007
@@ -119,7 +119,7 @@
 <pre> &lt;endpoint name="string" [address="url"] [key="string"] [force="soap|pox"] [optimize="mtom|swa"]&gt;
    &lt;enableRM/&gt;?
    &lt;enableSec [policy="key"]/&gt;?
-   &lt;enableAddressing separateListener="true|false"/&gt;?
+   &lt;enableAddressing�separateListener="true|false"/&gt;?
    .. extensibility ..
  &lt;/endpoint&gt;</pre>
 
@@ -145,15 +145,23 @@
 
 <p>A proxyservice token represents a &lt;proxy&gt; element which is used to
 define a Synapse Proxy service.</p>
-<pre> &lt;proxy name="string" [description="string"] [transports="(http |https |jms )+|all"]&gt;
-   &lt;target (inSequence="name" outSequence="name") | endpoint="name"/&gt;? // defaults to the synapse main sequence
-   &lt;wsdl key="string"&gt;?
-   &lt;enableRM/&gt;?
-   &lt;enableSec/&gt;?
-   &lt;policy key="string"&gt;*                       // optional service level policies
-                                                // (e.g. WS-Security and/or WS-RM policies)
-   &lt;property name="string" value="string"/&gt;*    // optional service parameters 
-                                                // (e.g. transport.jms.ConnectionFactory)
+<pre> &lt;proxy name="string" [transports="(http |https |jms )+|all"]&gt;
+   &lt;description&gt;...&lt;/description&gt;?
+   &lt;target [inSequence="name"] [outSequence="name"] [faultSequence="name"] [endpoint="name"]&gt;
+      &lt;inSequence&gt;...&lt;/inSequence&gt;?
+      &lt;outSequence&gt;...&lt;/outSequence&gt;?
+      &lt;faultSequence&gt;...&lt;/faultSequence&gt;?
+      &lt;endpoint&gt;...&lt;/endpoint&gt;?
+   &lt;/target&gt;?
+   &lt;publishWSDL key="string"&gt;
+      &lt;endpoint&gt;...&lt;/endpoint&gt;?
+      &lt;endpoint&gt;...&lt;/endpoint&gt;?
+   &lt;publishWSDL&gt;?
+   &lt;policy key="string"&gt;...&lt;/policy&gt;?       // optional service level policies
+                                                        // (e.g. WS-Security and/or WS-RM policies)
+   &lt;parameter name="string"&gt;    // optional service parameters
+      string | xml                    // (e.g. transport.jms.ConnectionFactory)
+   &lt;/parameter&gt;
  &lt;/proxy&gt;</pre>
 
 <p>A proxy service is created and exposed on the specified transports through

Modified: webservices/synapse/trunk/java/src/site/resources/Synapse_Samples.html
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/src/site/resources/Synapse_Samples.html?view=diff&rev=513295&r1=513294&r2=513295
==============================================================================
--- webservices/synapse/trunk/java/src/site/resources/Synapse_Samples.html (original)
+++ webservices/synapse/trunk/java/src/site/resources/Synapse_Samples.html Thu Mar  1 04:35:14 2007
@@ -1161,19 +1161,16 @@
 
     &lt;proxies&gt;
         &lt;proxy name="StockQuoteProxy"&gt;
-            &lt;wsdl key="proxy_wsdl"/&gt;
+            &lt;endpoint address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/&gt;
+            &lt;publishWSDL key="proxy_wsdl"/&gt;
         &lt;/proxy&gt;
     &lt;/proxies&gt;
 
     &lt;rules&gt;
-        &lt;in&gt;
-            &lt;send&gt;
-                &lt;endpoint address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/&gt;
-            &lt;/send&gt;
-        &lt;/in&gt;
-        &lt;out&gt;
-            &lt;send/&gt;
-        &lt;/out&gt;
+        &lt;send/&gt;
+        &lt;log&gt;
+            &lt;property name="position" value="Inside Main Mediator"/&gt;
+        &lt;/log&gt;
     &lt;/rules&gt;
 
 &lt;/synapse&gt;</pre>
@@ -1189,21 +1186,19 @@
 http://localhost:8080/axis2/services/StockQuoteProxy?wsdl and view the WSDL
 for the proxy service defined in the configuration. This WSDL is based on the
 source WSDL supplied in the proxy service definition, and is updated to
-reflect the proxy service EPR. If a proxy service definition does not specify
-a target for its messages, the Synapse mediation rules are applied to route
-messages.</p>
+reflect the proxy service EPR.</p>
 
 <p>Execute the stock quote client by requesting for a stock quote on the
 proxy service as follows:</p>
 <pre>ant stockquote -Durl=http://localhost:8080/axis2/services/StockQuoteProxy</pre>
 
-<p>You will now notice that the Synapse mediation rules were applied and the
-request was routed to the SimpleStockQuoteService service on the local Axis2
-instance. The response message is mediated using the same rules, as an
-outgoing sequence is not specified in this example either. The client should
-receive a stock quote reply from the proxy service. Also the client could get
-the WSDL for the proxy service by requesting for
-http://localhost:8080/axis2/services/StockQuoteProxy?wsdl</p>
+<p>You will now notice that the message is forwarded to the specified target
+endpoint and the request was routed to the SimpleStockQuoteService service on
+the local Axis2 instance. The response message is forwarded to the client with
+the help of the implicit parameters, as an outgoing sequence is not specified
+in this example either. The client should receive a stock quote reply from the
+proxy service. Also the client could get the WSDL for the proxy service by
+requesting for http://localhost:8080/axis2/services/StockQuoteProxy?wsdl</p>
 
 <h2><a name="Sample101">Sample 101:</a></h2>
 <pre>&lt;synapse xmlns="http://ws.apache.org/ns/synapse"&gt;
@@ -1224,12 +1219,12 @@
 
     &lt;proxies&gt;
         &lt;proxy name="StockQuoteProxy1"&gt;
-            &lt;wsdl key="proxy_wsdl"/&gt;
+            &lt;publishWSDL key="proxy_wsdl"/&gt;
             &lt;target inSequence="proxy_1"/&gt;
         &lt;/proxy&gt;
 
         &lt;proxy name="StockQuoteProxy2"&gt;
-            &lt;wsdl key="proxy_wsdl"/&gt;
+            &lt;publishWSDL key="proxy_wsdl"/&gt;
             &lt;target endpoint="proxy_2_endpoint"/&gt;
         &lt;/proxy&gt;
     &lt;/proxies&gt;
@@ -1272,9 +1267,17 @@
 
     &lt;proxies&gt;
         &lt;proxy name="StockQuoteProxy"&gt;
-            &lt;wsdl key="proxy_wsdl"/&gt;
+            &lt;target&gt;
+                &lt;inSequence&gt;
+                    &lt;header name="wsse:Security" action="remove"
+                            xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/&gt;
+                    &lt;send&gt;
+                        &lt;endpoint address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/&gt;
+                    &lt;/send&gt;
+                &lt;/inSequence&gt;
+            &lt;/target&gt;
+            &lt;publishWSDL key="proxy_wsdl"/&gt;
             &lt;policy key="sec_policy"/&gt;
-            &lt;enableSec/&gt;
         &lt;/proxy&gt;
     &lt;/proxies&gt;
 
@@ -1337,11 +1340,6 @@
 EPR is without any WS-Security headers as can be seen from the log
 messages.</p>
 
-<p>Note: If you wish to engage the default WS-Security policy of Rampart on a
-proxy service, you could use the &lt;enableSec/&gt; option on a proxy service
-alone. This will be similar in function to 'engaging' Rampart on an Axis2
-service.</p>
-
 <h2><a name="Sample103">Sample 103:</a></h2>
 <pre>&lt;synapse xmlns="http://ws.apache.org/ns/synapse"&gt;
 
@@ -1355,9 +1353,17 @@
 
     &lt;proxies&gt;
         &lt;proxy name="StockQuoteProxy"&gt;
-            &lt;wsdl key="proxy_wsdl"/&gt;
+            &lt;target&gt;
+                &lt;inSequence&gt;
+                    &lt;header name="wsse:Security" action="remove"
+                            xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/&gt;
+                    &lt;send&gt;
+                        &lt;endpoint address="http://localhost:9000/axis2/services/SimpleStockQuoteService"/&gt;
+                    &lt;/send&gt;
+                &lt;/inSequence&gt;
+            &lt;/target&gt;
+            &lt;publishWSDL key="proxy_wsdl"/&gt;
             &lt;policy key="sec_policy"/&gt;
-            &lt;enableSec/&gt;
         &lt;/proxy&gt;
     &lt;/proxies&gt;
 
@@ -1380,9 +1386,9 @@
 services through WS-Policy</strong></p>
 
 <p><strong>Pre-Requisites:</strong><br>
-Download and copy the BouncyCastle JAR file into your Synapse lib directory.
-(Note: the exact JAR you need to install depends on your JDK - for JDK 1.4 I
-have used bcprov-jdk13-132.jar)<br>
+Download and copy the BouncyCastle JAR and the Xalan JAR file into your Synapse lib directory.
+(Note: the exact BouncyCastle JAR you need to install depends on your JDK - for JDK 1.4 I
+have used bcprov-jdk13-132.jar and the xalan-2.7.0.jar)<br>
 Start the Synapse configuration numbered 103: i.e. synapse -sample 103<br>
 Copy the Apache Rampart module (e.g. rampart-1.1-SNAPSHOT.mar) into the
 modules directory of the sample Axis2 client
@@ -1416,12 +1422,12 @@
 
 <p>Using TCPMon, a sample request sent from the client to the WS-Security
 enabled proxy service has been captured as follows: <a
-href="sample_103_1.txt">sample_103_1.txt</a></p>
+href="sample_103_1.txt?content-type=text&view=co">sample_103_1.txt</a></p>
 
 <p>Synapse removes the wsse:Security header from this message and forwards it
 to the endpoint. The response received is now signed and encrypted and sent
 back to the client as follows: <a
-href="sample_103_2.txt">sample_103_2.txt</a></p>
+href="sample_103_2.txt?content-type=text&view=co">sample_103_2.txt</a></p>
 
 <h2><a name="Sample104">Sample 104:</a></h2>
 <pre>&lt;synapse xmlns="http://ws.apache.org/ns/synapse"&gt;
@@ -1447,7 +1453,7 @@
 
     &lt;proxies&gt;
         &lt;proxy name="StockQuoteProxy"&gt;
-            &lt;wsdl key="proxy_wsdl"/&gt;
+            &lt;publishWSDL key="proxy_wsdl"/&gt;
             &lt;target inSequence="proxy_in" outSequence="proxy_out"/&gt;
         &lt;/proxy&gt;
     &lt;/proxies&gt;
@@ -1469,10 +1475,7 @@
 <p>This configuration creates a proxy service with the name StockQuoteProxy.
 This proxy service specifies both inSequence and the outSequence for that
 service. This will add a proxy level out sequence to be used for the response
-message mediation of that particular proxy service. You could leave the whole
-target element not specified or one of the sequences of in and out
-unspecified, so that the corresponding message will be mediated using main
-mediator.</p>
+message mediation of that particular proxy service.</p>
 
 <p>You could send a stock quote request to this proxy services and receive
 the reply generated by the actual service hosted on the Axis2 instance. Use
@@ -1528,11 +1531,11 @@
     &lt;proxies&gt;
         &lt;proxy name="JMSFileUploadProxy" transports="jms"&gt;
             &lt;target inSequence="mtom_proxy"/&gt;
-            &lt;property name="transport.jms.Wrapper" value="{http://services.samples/xsd}element"/&gt;
+            &lt;parameter name="transport.jms.Wrapper"&gt;{http://services.samples/xsd}element&lt;/parameter&gt;
         &lt;/proxy&gt;
         &lt;proxy name="JMSTextProxy" transports="jms"&gt;
             &lt;target inSequence="text_proxy"/&gt;
-            &lt;property name="transport.jms.Wrapper" value="{http://services.samples/xsd}text"/&gt;
+            &lt;parameter name="transport.jms.Wrapper"&gt;{http://services.samples/xsd}text&lt;/parameter&gt;
         &lt;/proxy&gt;
         &lt;proxy name="JMSPoxProxy" transports="jms"&gt;
             &lt;target inSequence="pox_proxy"/&gt;



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org