Hello,
i'm trying to modify the endpoint reference address using CXF API:

org.apache.cxf.endpoint.Client client = org.apache.cxf.frontend.ClientProxy
                    .getClient(ref);
Conduit conduit = client.getConduit();
EndpointReferenceType endpointRef = conduit.getTarget();
System.err.println("Original addr: "+endpointRef.getAddress().getValue());
EndpointReferenceUtils.setAddress(endpointRef,
                    "http://localhost:8080/Changed";);


But, when the client emits an operation, the messages are still sent
to the original address, and not to
the one that I set manually.
The client is implemented by a set of classes generated by the
codegen-cxf-plugin.
What am I missing?

Thanks a lot,
valerio

--
http://www.linkedin.com/in/vschiavoni
http://jroller.com/vschiavoni

Reply via email to