[
https://issues.apache.org/jira/browse/SYNAPSE-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hiranya Jayathilaka updated SYNAPSE-887:
----------------------------------------
Fix Version/s: (was: FUTURE)
3.0
> [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: 3.0
>
> 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: [email protected]
For additional commands, e-mail: [email protected]