When addressing is enabled on an endpoint, the message sent from Synapse to
Client has more than one </wsa:RelatesTo> tags
--------------------------------------------------------------------------------------------------------------------------
Key: SYNAPSE-83
URL: https://issues.apache.org/jira/browse/SYNAPSE-83
Project: Synapse
Issue Type: Bug
Affects Versions: 1.0-RC1-B2
Environment: Windows XP, j2sdk1.4.2_13
Reporter: Evanthika Amarasiri
Sent a request through the following sequence with addressing engaged.
<definitions xmlns="http://ws.apache.org/ns/synapse">
<localEntry key="div_prop"
src="file:repository/conf/sample/resources/transform/div_response.xslt"/>
<in>
<log level="full" separator=",">
<property name="test"
expression="get-property('transport','To')"/>
</log>
<filter xmlns:ns1="http://div.math.com/xsd" xpath="//ns1:divide">
<send>
<endpoint>
<address
uri="http://localhost:9001/axis2/services/Division"/>
</endpoint>
</send>
</filter>
<filter xmlns:ns1="http://subt.math.com/xsd" xpath="//ns1:subt">
<send>
<endpoint>
<address
uri="http://localhost:9001/axis2/services/Subtraction">
<enableAddressing/>
</address>
</endpoint>
</send>
</filter>
</in>
<out>
<send/>
</out>
</definitions>
When sending the request through TPCMon, the response received from the Synapse
to the client has three <wsa:RelatesTo> tags in the soap header as below.
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsa:Action>urn:subt</wsa:Action>
<wsa:RelatesTo>uuid:urn:uuid:37E88F8DAE84DB18A31174293112954</wsa:RelatesTo>
<wsa:MessageID>uuid:urn:uuid:37E88F8DAE84DB18A31174293112954</wsa:MessageID>
<wsa:RelatesTo>uuid:urn:uuid:37E88F8DAE84DB18A31174293112954</wsa:RelatesTo>
<wsa:RelatesTo>uuid:urn:uuid:37E88F8DAE84DB18A31174293112954</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<ns:subtResponse xmlns:ns="http://subt.math.com/xsd">
<ns:return>4</ns:return>
</ns:subtResponse>
</soapenv:Body>
</soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]