Hi..!
I'm in a need to read/get the service's WSDL <wsp:policy> element at the
client's Rampart BindingBuilder class (I'm trying to create a new token
type).
I need this piece of information to be read regardless of the type of client
being used (stub based or policy.xml based or dynamic client).
I tried to do it in the following way:
Map end_points =
rmd.getMsgContext().getServiceContext().getAxisService().getEndpoints();
AxisBinding axis_binding =
((AxisEndpoint)end_points.values().iterator().next()).getBinding();
Policy policy = axis_binding.getEffectivePolicy();
but, this Map end_points is always null.
Is there a way to achieve this task? please can you give me some direction
regarding this.
Thanks,
Suresh..