Hi Sreedhar
You will need to create a new custom action element and implement your java code to consume webservices in the doAction subroutine.
For more information on custom elements, you can refer to the CVP programming guide .
The sample custom elements can be downloaded from developer.cisco.com .
https://developer.cisco.com/site/customer-voice-portal/downloads/custom-elements/java-code-samples/index.gsp
You can then publish the data as ElementData or SessionData and use it in the call flow.
To consume the webservices, you will have to refer to the documents related to the framework that you are using.
I have used Axis1.4 and Axis2 in my CVP projects and it works like charm.
Regards
Birendra Hansda