synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SYNAPSE-492) synapse does not add addressing headers to addresing client response
Date Tue, 23 Dec 2008 17:34:44 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amila Chinthaka Suriarachchi updated SYNAPSE-492:
-------------------------------------------------

    Attachment: patch.txt

this patch fix the issue.

Problem:
When axis2 receiving a message it sets the AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES
property to avoid addressing header in the response if request does not have them.  Synapse
uses the same message context object to receive the response from the server and send that
message to original client. 

So axis2 sets this property at the receiving path and hence it ignore the addressing headers
from the client response.

Solution:
set the AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES to the original value after
client message receive.

> synapse does not add addressing headers to addresing client response
> --------------------------------------------------------------------
>
>                 Key: SYNAPSE-492
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-492
>             Project: Synapse
>          Issue Type: Bug
>            Reporter: Amila Chinthaka Suriarachchi
>         Attachments: patch.txt
>
>
> Create a proxy service with the following synapse configuration.
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>     <proxy name="StockQuoteProxy">
>         <target>
>             <inSequence>
>                                 <header name="wsrm:SequenceAcknowledgement" action="remove"
>                                     xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"/>
>                                 <header name="wsrm:Sequence" action="remove"
>                                     xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"/>
>                 <send>
>                     <endpoint>
>                         <address uri="http://localhost:9001/services/SimpleStockQuoteService"/>
>                     </endpoint>
>                 </send>
>             </inSequence>
>                         <outSequence>
>                                 <send/>
>                         </outSequence>
>         </target>
>     </proxy>
> </definitions>
> Note that for proxy service end point addressing is not engaged. 
> Then invoke this proxy service with the following client request.
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>       <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
>          <wsa:To>http://localhost:8281/services/StockQuoteProxy</wsa:To>
>          <wsa:MessageID>urn:uuid:7A24BA37E7FBA1158F1230053211470</wsa:MessageID>
>          <wsa:Action>urn:getQuote</wsa:Action>
>       </soapenv:Header>
>       <soapenv:Body>
>          <m0:getQuote xmlns:m0="http://services.samples">
>             <m0:request>
>                <m0:symbol>IBM</m0:symbol>
>             </m0:request>
>          </m0:getQuote>
>       </soapenv:Body>
>    </soapenv:Envelope>
> Then the response message does not have the addressing headers.

-- 
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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message