synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNAPSE-887) [Enrich mediator] Source configuration does not get added as child of the specified property
Date Thu, 18 Jul 2013 23:34:50 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13713094#comment-13713094
] 

Hudson commented on SYNAPSE-887:
--------------------------------

SUCCESS: Integrated in Synapse - Trunk #4622 (See [https://builds.apache.org/job/Synapse%20-%20Trunk/4622/])
Applying the patch for SYNAPSE-887 with some modifications. Adding a test case to verify the
fix. (hiranya: rev 1504692)
* /synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/EnrichMediatorFactory.java
* /synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/elementary/Target.java
* /synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/elementary
* /synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/elementary/EnrichMediatorTest.java

                
> [Enrich mediator] Source configuration does not get added as child of the specified property
> --------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-887
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-887
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1
>         Environment: Ubuntu 12.04
>            Reporter: Dushan Sachinda Abeyruwan
>            Assignee: Hiranya Jayathilaka
>            Priority: Critical
>             Fix For: FUTURE
>
>         Attachments: Target.java.patch
>
>
> - Add enrich mediator with following configuration 
> source type : inline 
> target action : child 
> target type : property 
> e.g 
>       <inSequence> 
>          <log level="full" /> 
>          <property xmlns:p="http://ws.apache.org/axis2" name="Action" expression="//p:add"
scope="default" /> 
>          <enrich> 
>             <source type="inline" clone="true"> 
>                <xs:args1 xmlns:xs="http://ws.apache.org/axis2">100</xs:args1>

>             </source> 
>             <target type="property" action="child" property="Action" /> 
>          </enrich> 
>          <log level="full" /> 
>          <send> 
>             <endpoint> 
>                <address uri="http://localhost:8280/services/AdderService" /> 
>             </endpoint> 
>          </send> 
>       </inSequence> 
> - Send a request using Soap UI and check the logs 
> - According to the logs, the specified inline content is not added as a child to the
property 
> [2012-06-20 14:28:20,159] DEBUG - ProxyServiceMessageReceiver Proxy Service enrichSample6
received a new message from : 10.200.2.64 
> [2012-06-20 14:28:20,159] DEBUG - ProxyServiceMessageReceiver Message To: /services/enrichSample6.enrichSample6HttpSoap12Endpoint

> [2012-06-20 14:28:20,160] DEBUG - ProxyServiceMessageReceiver SOAPAction: urn:add 
> [2012-06-20 14:28:20,160] DEBUG - ProxyServiceMessageReceiver WSA-Action: urn:add 
> [2012-06-20 14:28:20,160] DEBUG - ProxyServiceMessageReceiver Using the anonymous in-sequence
of the proxy service for mediation 
> [2012-06-20 14:28:20,160] DEBUG - SequenceMediator Start : Sequence <anonymous>

> [2012-06-20 14:28:20,160] DEBUG - SequenceMediator Sequence <SequenceMediator>
:: mediate() 
> [2012-06-20 14:28:20,160] DEBUG - LogMediator Start : Log mediator 
> [2012-06-20 14:28:20,161] INFO - LogMediator To: /services/enrichSample6.enrichSample6HttpSoap12Endpoint,
WSAction: urn:add, SOAPAction: urn:add, MessageID: urn:uuid:8bf5aaa6-b00e-4f48-9049-a9c679c08507,
Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:axis="http://ws.apache.org/axis2"><soap:Body>

>       <axis:add> 
>          <!--Optional:--> 
>          <axis:args0>10</axis:args0> 
>       </axis:add> 
>    </soap:Body></soap:Envelope> 
> [2012-06-20 14:28:20,163] DEBUG - LogMediator End : Log mediator 
> [2012-06-20 14:28:20,163] DEBUG - PropertyMediator Start : Property mediator 
> [2012-06-20 14:28:20,163] DEBUG - PropertyMediator Setting property : Action at scope
: default to : <axis:add xmlns:axis="http://ws.apache.org/axis2"> 
>          <!--Optional:--> 
>          <axis:args0>10</axis:args0> 
>       </axis:add> (i.e. result of expression : //p:add) 
> [2012-06-20 14:28:20,163] DEBUG - PropertyMediator End : Property mediator 
> [2012-06-20 14:28:20,163] DEBUG - EnrichMediator Start : Enrich mediator 
> [2012-06-20 14:28:20,164] DEBUG - EnrichMediator End : Enrich mediator 
> [2012-06-20 14:28:20,164] DEBUG - LogMediator Start : Log mediator 
> [2012-06-20 14:28:20,164] INFO - LogMediator To: /services/enrichSample6.enrichSample6HttpSoap12Endpoint,
WSAction: urn:add, SOAPAction: urn:add, MessageID: urn:uuid:8bf5aaa6-b00e-4f48-9049-a9c679c08507,
Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:axis="http://ws.apache.org/axis2"><soap:Body>

>       <axis:add> 
>          <!--Optional:--> 
>          <axis:args0>10</axis:args0> 
>       </axis:add> 
>    </soap:Body></soap:Envelope> 
> [2012-06-20 14:28:20,164] DEBUG - LogMediator End : Log mediator 
> [2012-06-20 14:28:20,164] DEBUG - SendMediator Start : Send mediator 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message