Could you confirm which version of VSC you're running? The vCloud API's are available only from VSC 4.1.
Can you paste in each of the steps, including both the original code as well as the errors or responses you're receiving from each step? Please ensure that in your code snips you are blanking out the vCD and vCenter password, but in your code ensure you are passing the correct values for each of them.