Axis2 as a relay of SOAP messages

"Pietro Romanazzi" <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
Hi
I need Axis2 to elaborate some headers in the SOAP message and relay the message to the final legacy service in my lan.
The SOAP message should not be modified since it can bring WS-Security.
The addressing module is engaged in AXIS2 but there is no addressing header in the message. 
I tried to write an handler to change the To property with the following commands 
EndpointReference er = new EndpointReference(http://localhost:8888/FinalService/services/MyService.MyServiceHttpSoap11Endpoint/); 
ctx.setTo(er); 
I tried to put this handler in the inFlow (tried the transport phase, the addressing phase, the pre-dispatch phase, the dispatch phase) but nothing happens, the soap message is not redirected to the endpoint and it completes on Axis2. 
Debugging the application I see the handler is executed and the To property is set properly. 
Any suggestions?
Thanks and regards.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.