BTW, I forgot to mention that I've tried the following without success
(my address gets ignored):
org.apache.cxf.endpoint.Client client =
org.apache.cxf.frontend.ClientProxy.getClient(am);
client.getEndpoint().getEndpointInfo().setAddress(
"http://localhost:1111/myAddress"); <== THIS DOES NOT WORK
Alexandros Karypidis wrote:
Hi,
What is the CXF API/configuration that allows me to set the EPR value
for ReplyTo/FaultTo in WS-RM?
My problem is that the client always connects to the web service
provider using an "anonymous" endpoint reference. I would like to
change that so that the client's EPR is specific and persistent (there
will always be one client instance running, on a specific host).
The header exhanged is shown below, with the anonymous address
highlighted:
<soap:Header>
<Action .../>
<MessageID .../>
<To ../>
<ReplyTo xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">
NEED TO CHANGE THE ADDRESS BELOW
<Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</Address>
</ReplyTo>
</soap:Header>
Thanks for your help.