Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

How to call vsphere SDK in global view screen?

$
0
0

Hello,


I am learning the samples about calling vsphere SDK in global view screen.

Through the samples, I am trying my best to write a program like vsphere-wssdk-provider and I only use this in global view screen.

I met a problem as follow.

According to vsphere-wssdk-provider, I thought I could call vsphere SDK by the following code.

----------------------

ServiceContent serviceContent = null;

      try {

        serviceContent = _vimPort.retrieveServiceContent(svcInstanceRef);

      } catch (RuntimeFaultFaultMsg e) {

        _logger.error("getServiceContent error: " + e);

      }catch (Exception e) {

        _logger.error("getServiceContent error: " + e);

      }

 

 

----------------------

But an exception has occurred in my program when I ran this piece of code

and I couldn't catch any exception.

It caused my calling program can't continue executing.

I don't know the reason and how to solve the problem. Please give me some help.

 

I am looking forward to your reply.

Any help is greatly appreciated!!

Regards,

lily


Viewing all articles
Browse latest Browse all 2218

Trending Articles